Class Variables | id | the id of the sale table
|
| coupon_id | the id generated by the fiscal printer
|
| open_date | the date when the sale was started
|
| confirm_date | the date when the sale was confirmed
|
| close_date | the date when the sale was closed
|
| cancel_date | the date when the sale was cancelled
|
| notes | sale order general notes
|
| status | the sale status
|
| salesperson_name | the salesperson name
|
| client_name | the sale client name
|
| client_id | the if of the client table
|
| subtotal | the sum of all items in the sale
|
| surcharge_value | the sale surcharge value
|
| discount_value | the sale discount value
|
| total | the subtotal - discount + charge
|
| total_quantity | the items total quantity for the sale
|
| invoice_number | the sale invoice number
|