mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
feat(FE-43): add Supplier API and data types for supplier management
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
|
||||
export type BaseSupplier = {
|
||||
id: number;
|
||||
name: string;
|
||||
alias: string;
|
||||
category: string;
|
||||
pic: string;
|
||||
type: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
address: string;
|
||||
account_number: string;
|
||||
balance: number;
|
||||
due_date: number;
|
||||
};
|
||||
|
||||
export type Supplier = BaseMetadata & BaseSupplier;
|
||||
|
||||
export type CreateSupplierPayload = {
|
||||
name: string;
|
||||
alias: string;
|
||||
category: string;
|
||||
pic: string;
|
||||
type: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
address: string;
|
||||
account_number: string;
|
||||
balance: number;
|
||||
due_date: number;
|
||||
};
|
||||
|
||||
export type UpdateSupplierPayload = CreateSupplierPayload;
|
||||
Reference in New Issue
Block a user