Merge pull request 'Fix: deleted code in sales' (!781) from FixSales into dev
Reviewed-on: #781 Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
commit
ea7c799909
|
@ -425,7 +425,6 @@ const setTransferParams = async () => {
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
stateStore.rightDrawer = true;
|
stateStore.rightDrawer = true;
|
||||||
getConfig();
|
getConfig();
|
||||||
getItems();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(() => (stateStore.rightDrawer = false));
|
onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
|
@ -433,11 +432,6 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
const items = ref([]);
|
const items = ref([]);
|
||||||
const newRow = ref({});
|
const newRow = ref({});
|
||||||
|
|
||||||
async function getItems() {
|
|
||||||
const { data } = await axios.get(`Items/withName`);
|
|
||||||
items.value = data;
|
|
||||||
}
|
|
||||||
|
|
||||||
const updateItem = (row) => {
|
const updateItem = (row) => {
|
||||||
const selectedItem = items.value.find((item) => item.id === row.itemFk);
|
const selectedItem = items.value.find((item) => item.id === row.itemFk);
|
||||||
if (selectedItem) {
|
if (selectedItem) {
|
||||||
|
|
Loading…
Reference in New Issue