feat: Purchase Order Add

This commit is contained in:
efrilm
2025-09-09 22:47:05 +07:00
parent dfa8218017
commit 4c4579f009
9 changed files with 1534 additions and 3 deletions
+55
View File
@@ -9,3 +9,58 @@ export type PurchaseOrderType = {
status: string
total: number
}
export interface IngredientItem {
id: number
ingredient: { label: string; value: string } | null
deskripsi: string
kuantitas: number
satuan: { label: string; value: string } | null
discount: string
harga: number
pajak: { label: string; value: string } | null
waste: { label: string; value: string } | null
total: number
}
export interface PurchaseOrderFormData {
vendor: { label: string; value: string } | null
nomor: string
tglTransaksi: string
tglJatuhTempo: string
referensi: string
termin: { label: string; value: string } | null
hargaTermasukPajak: boolean
showShippingInfo: boolean
tanggalPengiriman: string
ekspedisi: { label: string; value: string } | null
noResi: string
showPesan: boolean
showAttachment: boolean
showTambahDiskon: boolean
showBiayaPengiriman: boolean
showBiayaTransaksi: boolean
showUangMuka: boolean
pesan: string
ingredientItems: IngredientItem[]
transactionCosts?: TransactionCost[]
subtotal?: number
discountType?: 'percentage' | 'fixed'
downPaymentType?: 'percentage' | 'fixed'
discountValue?: string
shippingCost?: string
transactionCost?: string
downPayment?: string
}
export interface TransactionCost {
id: string
type: string
name: string
amount: string
}
export interface DropdownOption {
label: string
value: string
}