feat: Purchase Order Add
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user