|
id
|
bigint(20) unsigned
|
|
|
|
|
order_number
|
varchar(50)
|
|
|
|
|
po_number
|
varchar(100)
|
|
|
|
|
supplier_id
|
bigint(20) unsigned
|
|
|
استعرض القيم الغريبة
|
|
status
|
enum
|
-- |
|
draft
|
|
warehouse_id
|
bigint(20) unsigned
|
|
|
|
|
order_date
|
date
|
|
|
|
|
expected_date
|
date
|
|
|
|
|
subtotal
|
decimal(15,2)
|
|
|
0.00
|
|
discount_amount
|
decimal(15,2)
|
|
|
0.00
|
|
tax_amount
|
decimal(15,2)
|
|
|
0.00
|
|
total_amount
|
decimal(15,2)
|
|
|
0.00
|
|
currency
|
varchar(10)
|
|
|
SAR
|
|
notes
|
text
|
|
|
|
|
template_code
|
varchar(100)
|
|
|
|
|
created_by
|
bigint(20) unsigned
|
|
|
|
|
approved_by
|
bigint(20) unsigned
|
|
|
|
|
approved_at
|
timestamp
|
|
|
|
|
created_at
|
timestamp
|
|
|
current_timestamp()
|
|
updated_at
|
timestamp
|
|
|
current_timestamp()
|