refactor(FE-363): Rename SupplierWithItems type for clarity

This commit is contained in:
rstubryan
2025-12-13 10:57:56 +07:00
parent bd4c51cb04
commit 0983f154d2
2 changed files with 5 additions and 5 deletions
@@ -15,7 +15,7 @@ import Table from '@/components/Table';
import { ColumnDef } from '@tanstack/react-table';
import { formatCurrency, formatDate } from '@/lib/helper';
import {
SupplierWithItems,
LogisticPurchasePerSupplier,
LogisticPurchasePerSupplierItems,
} from '@/types/api/report/logistic-stock';
import { isResponseSuccess } from '@/lib/api-helper';
@@ -149,8 +149,8 @@ const PurchasesPerSupplierTab = () => {
LogisticService.getAllFetcher
);
const data: SupplierWithItems[] = isResponseSuccess(response)
? (response?.data as unknown as SupplierWithItems[])
const data: LogisticPurchasePerSupplier[] = isResponseSuccess(response)
? (response?.data as unknown as LogisticPurchasePerSupplier[])
: [];
const getTableColumns = (