feat: refs #7301 add exclude inventory supplier from list #982

Merged
pablone merged 8 commits from 7301-itemLastEntries into dev 2024-12-12 13:23:30 +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) {
console.log('entra');
where.supplierFk = { neq: inventorySupplierFk };
console.log('where: ', where.supplierFk);
}
const arrayData = useArrayData('ItemLastEntries', {
pablone marked this conversation as resolved Outdated
Outdated
Review

Quitar

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