BIG-3: add filtering non-zero items.

This commit is contained in:
elforjani13
2021-09-24 19:41:23 +02:00
parent a3f1857e91
commit 4e99607b06
25 changed files with 273 additions and 73 deletions

View File

@@ -33,12 +33,14 @@ function InventoryValuationHeader({
// Default values.
const defaultValues = {
...pageFilter,
asDate: moment().toDate(),
itemsIds: [],
};
// Initial values.
const initialValues = transformToForm({
...pageFilter,
...defaultValues,
asDate: moment(pageFilter.asDate).toDate(),
}, defaultValues);