refactor(FE-363): Send joined filter params to logistic report API

This commit is contained in:
rstubryan
2025-12-18 13:35:40 +07:00
parent 87adbf8547
commit 915e68f755
2 changed files with 16 additions and 25 deletions
@@ -211,19 +211,19 @@ const PurchasesPerSupplierTab = () => {
const params = {
area_id:
tableFilterState.area_id.length > 0
? tableFilterState.area_id
? tableFilterState.area_id.join(',')
: undefined,
supplier_id:
tableFilterState.supplier_id.length > 0
? tableFilterState.supplier_id
? tableFilterState.supplier_id.join(',')
: undefined,
product_id:
tableFilterState.product_id.length > 0
? tableFilterState.product_id
? tableFilterState.product_id.join(',')
: undefined,
product_category_id:
tableFilterState.product_category_id.length > 0
? tableFilterState.product_category_id
? tableFilterState.product_category_id.join(',')
: undefined,
received_date:
tableFilterState.filter_by === 'received_date'
@@ -281,19 +281,19 @@ const PurchasesPerSupplierTab = () => {
const params = {
area_id:
tableFilterState.area_id.length > 0
? tableFilterState.area_id
? tableFilterState.area_id.join(',')
: undefined,
supplier_id:
tableFilterState.supplier_id.length > 0
? tableFilterState.supplier_id
? tableFilterState.supplier_id.join(',')
: undefined,
product_id:
tableFilterState.product_id.length > 0
? tableFilterState.product_id
? tableFilterState.product_id.join(',')
: undefined,
product_category_id:
tableFilterState.product_category_id.length > 0
? tableFilterState.product_category_id
? tableFilterState.product_category_id.join(',')
: undefined,
received_date:
tableFilterState.filter_by === 'received_date'