mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 21:41:57 +00:00
Merge branch 'feat/FE/US-33/TASK-40-slicing-ui-for-master-data-forms' of gitlab.com:mbugroup/lti-web-client into feat/FE/US-35/stock-transfer
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
import { BaseMetadata, CreatedUser } from "@/types/api/api-general";
|
||||
|
||||
export type BaseCustomer = {
|
||||
id: number;
|
||||
name: string;
|
||||
pic_id: number;
|
||||
pic: CreatedUser;
|
||||
type: string;
|
||||
address: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
account_number: string;
|
||||
}
|
||||
|
||||
export type Customer = BaseMetadata & BaseCustomer;
|
||||
|
||||
export type CreateCustomerPayload = {
|
||||
name: string;
|
||||
pic_id: number;
|
||||
type: string;
|
||||
address: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
account_number: string;
|
||||
}
|
||||
|
||||
export type UpdateCustomerPayload = CreateCustomerPayload;
|
||||
+10
-6
@@ -4,31 +4,35 @@ export type BaseSupplier = {
|
||||
id: number;
|
||||
name: string;
|
||||
alias: string;
|
||||
category: string;
|
||||
pic: string;
|
||||
type: string;
|
||||
category: string;
|
||||
hatchery: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
address: string;
|
||||
npwp: string;
|
||||
account_number: string;
|
||||
balance: number;
|
||||
due_date: number;
|
||||
};
|
||||
balance?: number;
|
||||
}
|
||||
|
||||
export type Supplier = BaseMetadata & BaseSupplier;
|
||||
|
||||
export type CreateSupplierPayload = {
|
||||
name: string;
|
||||
alias: string;
|
||||
category: string;
|
||||
pic: string;
|
||||
type: string;
|
||||
category: string;
|
||||
hatchery: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
address: string;
|
||||
npwp: string;
|
||||
account_number: string;
|
||||
balance: number;
|
||||
due_date: number;
|
||||
};
|
||||
balance?: number;
|
||||
}
|
||||
|
||||
export type UpdateSupplierPayload = CreateSupplierPayload;
|
||||
Reference in New Issue
Block a user