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:
rstubryan
2025-10-09 16:33:31 +07:00
30 changed files with 2354 additions and 36 deletions
+27
View File
@@ -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
View File
@@ -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;