Class Sale
Sale class
- CI_Model
-
Sale
public
|
|
public
|
|
public
|
|
public
|
#
get_payments_summary( $search, $filters )
Get the payment summary for the takings (sales/manage) view |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
save( & $sale_status, & $items, $customer_id, $employee_id, $comment, $invoice_number, $quote_number, $payments, $dinner_table, & $sales_taxes, $sale_id = FALSE )
Save the sale information after the sales is complete but before the final document is printed The sales_taxes variable needs to be initialized to an empty array before calling |
public
|
#
save_sales_item_tax( & $customer, & $sale_id, & $item, $tax_basis, & $sales_taxes, & $sequence, $tax_category_id )
Apply customer sales tax if the customer sales tax is enabledl The original tax is still supported if the user configures it, but it won't make sense unless it's used exclusively for the purpose of VAT tax which becomes a price component. VAT taxes must still be reported as a separate tax entry on the invoice. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
create_temp_table( array $inputs )
Creates sales temporary dimentional table We create a temp table that allows us to do easy report/sales queries |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
delete_suspended_sale( $sale_id )
Removes a selected sale from the sales table. This function should only be called for suspended sales that are being restored to the current cart |
public
|