|
id
|
int(10) unsigned
|
|
|
|
|
purchase_number
|
varchar(30)
|
|
|
|
|
supplier_id
|
int(10) unsigned
|
|
|
|
|
supplier_invoice
|
varchar(80)
|
|
|
|
|
purchase_date
|
date
|
|
|
|
|
subtotal
|
decimal(12,2)
|
|
|
0.00
|
|
discount
|
decimal(12,2)
|
|
|
0.00
|
|
extra_costs
|
decimal(12,2)
|
|
|
0.00
|
|
total
|
decimal(12,2)
|
|
|
0.00
|
|
paid
|
decimal(12,2)
|
|
|
0.00
|
|
returned_total
|
decimal(12,2)
|
|
|
0.00
|
|
notes
|
text
|
|
|
|
|
created_by
|
varchar(120)
|
|
|
|
|
created_at
|
datetime
|
|
|
current_timestamp()
|