mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix(webapp): change the default from/to date values of reports
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -20,7 +20,7 @@ export const getInventoryValuationQuerySchema = () => {
|
||||
* Retrieves the inventory valuation sheet default query.
|
||||
*/
|
||||
export const getInventoryValuationQuery = () => ({
|
||||
asDate: moment().endOf('day').format('YYYY-MM-DD'),
|
||||
asDate: moment().format('YYYY-MM-DD'),
|
||||
filterByOption: 'with-transactions',
|
||||
itemsIds: [],
|
||||
branchesIds: [],
|
||||
|
||||
Reference in New Issue
Block a user