|
id
|
bigint(20) unsigned
|
|
|
|
|
quotation_number
|
varchar(100)
|
|
|
|
|
customer_id
|
bigint(20) unsigned
|
|
|
|
|
status
|
enum
|
-- |
|
draft
|
|
quotation_date
|
date
|
|
|
|
|
expiry_date
|
date
|
|
|
|
|
warehouse_id
|
bigint(20) unsigned
|
|
|
|
|
vat_enabled
|
tinyint(1)
|
|
|
1
|
|
vat_rate
|
decimal(5,2)
|
|
|
15.00
|
|
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)
|
|
|
|
|
converted_sales_invoice_id
|
bigint(20) unsigned
|
|
|
|
|
created_by
|
bigint(20) unsigned
|
|
|
|
|
approved_by
|
bigint(20) unsigned
|
|
|
|
|
approved_at
|
timestamp
|
|
|
|
|
sent_at
|
timestamp
|
|
|
|
|
created_at
|
timestamp
|
|
|
current_timestamp()
|
|
updated_at
|
timestamp
|
|
|
current_timestamp()
|