mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 22:35:45 +00:00
feat(FE-33): create suppliers table and forms
This commit is contained in:
+53
@@ -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;
|
||||
Reference in New Issue
Block a user