fix(webapp): change the default from/to date values of reports

This commit is contained in:
Ahmed Bouhuolia
2023-08-27 16:00:54 +02:00
parent c7a3bac44c
commit 4df63561cf
17 changed files with 30 additions and 32 deletions

View File

@@ -19,7 +19,7 @@ export default function InventoryValuationTable({
}) {
// inventory valuation context.
const {
inventoryValuation: { tableRows },
inventoryValuation: { tableRows, query },
isLoading,
} = useInventoryValuationContext();
@@ -30,7 +30,7 @@ export default function InventoryValuationTable({
<InventoryValuationSheet
companyName={companyName}
sheetType={intl.get('inventory_valuation')}
asDate={new Date()}
asDate={query.as_date}
loading={isLoading}
>
<InventoryValuationDataTable