feat(FE-33): create suppliers table and forms

This commit is contained in:
randy-ar
2025-10-09 12:27:59 +07:00
parent 21cc01fe68
commit a83452a0e4
17 changed files with 1194 additions and 25 deletions
+53
View File
@@ -0,0 +1,53 @@
// {
// // "name": "PT CHAROEN POKPHAND INDONESIA Tbk",
// "name": "BOP Vendor",
// // "alias": "CPI",
// "alias": "BOP",
// "pic": "Super Admin",
// "type": "BISNIS", // "BISNIS" | "INDIVIDUAL"
// // "category": "SAPRONAK", // "BOP" | "SAPRONAK"
// "category": "BOP", // "BOP" | "SAPRONAK"
// "hatchery": "Kopo,Tasik", // Comma Separated // nullable
// "phone": "086172527361",
// "email": "abdulazis@gmail.com",
// "address": "Banten",
// "npwp": "0197239080712", // nullable
// "account_number": "192039801283", // nullable
// "due_date": 1 // day
// }
import { BaseMetadata, CreatedUser } from "@/types/api/api-general";
export type BaseSupplier = {
id: number;
name: string;
alias: string;
pic: string;
type: string;
category: string;
hatchery: string;
phone: string;
email: string;
address: string;
npwp: string;
account_number: string;
due_date: number;
}
export type Supplier = BaseMetadata & BaseSupplier;
export type CreateSupplierPayload = {
name: string;
alias: string;
pic: string;
type: string;
category: string;
hatchery: string;
phone: string;
email: string;
address: string;
npwp: string;
account_number: string;
due_date: number;
}
export type UpdateSupplierPayload = CreateSupplierPayload;