8315-devToTest #1094

Merged
alexm merged 253 commits from 8315-devToTest into test 2024-12-18 10:31:55 +00:00
1 changed files with 0 additions and 5 deletions
Showing only changes of commit 8bccb959ed - Show all commits

View File

@ -50,9 +50,7 @@ const where = {
}; };
if (hideInventory.value) { if (hideInventory.value) {
console.log('entra');
where.supplierFk = { neq: inventorySupplierFk }; where.supplierFk = { neq: inventorySupplierFk };
console.log('where: ', where.supplierFk);
} }
const arrayData = useArrayData('ItemLastEntries', { const arrayData = useArrayData('ItemLastEntries', {
@ -176,8 +174,6 @@ const getDate = (date, type) => {
}; };
const updateFilter = async () => { const updateFilter = async () => {
console.log('updateFilter: ');
let filter; let filter;
if (!from.value && to.value) filter = { lte: to.value }; if (!from.value && to.value) filter = { lte: to.value };
else if (from.value && !to.value) filter = { gte: from.value }; else if (from.value && !to.value) filter = { gte: from.value };
@ -188,7 +184,6 @@ const updateFilter = async () => {
userFilter.landed = filter; userFilter.landed = filter;
if (hideInventory.value) userFilter.supplierFk = { neq: inventorySupplierFk }; if (hideInventory.value) userFilter.supplierFk = { neq: inventorySupplierFk };
else delete userFilter.supplierFk; else delete userFilter.supplierFk;
console.log('userFilter: ', userFilter);
await fetchItemLastEntries(); await fetchItemLastEntries();
}; };