Vendor at Purchase Form

This commit is contained in:
efrilm
2025-09-12 21:54:27 +07:00
parent 20203942d2
commit 0b51b29474
8 changed files with 1247 additions and 9 deletions
+19
View File
@@ -0,0 +1,19 @@
export interface PurchaseOrderRequest {
vendor_id: string // uuid.UUID
po_number: string
transaction_date: string // ISO date string
due_date: string // ISO date string
reference?: string
status?: 'draft' | 'sent' | 'approved' | 'received' | 'cancelled'
message?: string
items: PurchaseOrderItemRequest[]
attachment_file_ids?: string[] // uuid.UUID[]
}
export interface PurchaseOrderItemRequest {
ingredient_id: string // uuid.UUID
description?: string
quantity: number
unit_id: string // uuid.UUID
amount: number
}