feat(FE-33): create customers forms

This commit is contained in:
sweetpotet
2025-10-08 16:40:30 +07:00
parent af60e682ee
commit 21b9396323
12 changed files with 1008 additions and 9 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: 'INDIVIDUAL' | 'BISNIS';
address: string;
phone: string;
email: string;
account_number: string;
}
export type Customer = BaseMetadata & BaseCustomer;
export type CreateCustomerPayload = {
name: string;
pic_id: number;
type: 'INDIVIDUAL' | 'BISNIS';
address: string;
phone: string;
email: string;
account_number: string;
}
export type UpdateCustomerPayload = CreateCustomerPayload;