|
id
|
int(11)
|
|
|
|
|
po_number
|
varchar(50)
|
|
|
|
|
supplier_id
|
int(11)
|
|
|
|
|
warehouse_id
|
int(11)
|
|
|
|
|
department_id
|
int(11)
|
|
|
|
|
order_date
|
date
|
|
|
|
|
expected_delivery
|
date
|
|
|
|
|
actual_delivery
|
date
|
|
|
|
|
total_amount
|
decimal(14,2)
|
|
|
0.00
|
|
status
|
enum
|
-- |
|
draft
|
|
notes
|
text
|
|
|
|
|
tender_id
|
int(11)
|
|
|
|
|
invoice_id
|
int(11)
|
|
|
|
|
created_by
|
int(11)
|
|
|
|
|
approved_by
|
int(11)
|
|
|
|
|
approved_at
|
timestamp
|
|
|
|
|
created_at
|
timestamp
|
|
|
current_timestamp()
|
|
updated_at
|
timestamp
|
|
|
current_timestamp()
|
|
budget_id
|
int(11)
|
|
|
|
|
journal_entry_id
|
int(11)
|
|
|
|
|
payment_entry_id
|
int(11)
|
|
|
|
|
item_type
|
enum
|
-- |
|
consumable
|
|
received_amount
|
decimal(14,2)
|
|
|
0.00
|
|
paid_amount
|
decimal(14,2)
|
|
|
0.00
|