refactor(FE-208): enhance PurchaseRequestForm to fetch and display supplier-specific products

This commit is contained in:
rstubryan
2025-11-21 18:54:17 +07:00
parent 95a7afdaa6
commit b9990e0253
2 changed files with 59 additions and 31 deletions
+12
View File
@@ -1,4 +1,5 @@
import { BaseMetadata } from '@/types/api/api-general';
import { Uom } from '@/types/api/master-data/uom';
export type BaseSupplier = {
id: number;
@@ -19,6 +20,17 @@ export type BaseSupplier = {
export type Supplier = BaseMetadata & BaseSupplier;
export type SupplierProducts = Supplier & {
products?: Array<{
id: number;
name: string;
ProductPrice: number;
SellingPrice?: number;
uom: Uom;
flags: string[];
}>;
};
export type CreateSupplierPayload = {
name: string;
alias: string;