mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 21:41:57 +00:00
refactor(FE-208): enhance PurchaseRequestForm to fetch and display supplier-specific products
This commit is contained in:
+12
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user