update for req bill by cashier

This commit is contained in:
Yan
2017-06-27 15:28:48 +06:30
parent 464e72012b
commit 950fff469f

View File

@@ -47,7 +47,7 @@ class Sale < ApplicationRecord
end end
end end
def generate_invoice_from_order (order_id, sale_id, booking, requested_by, cashier) def generate_invoice_from_order (order_id, sale_id, booking, requested_by, cashier = nil)
taxable = true taxable = true
#if sale_id is exsit and validate #if sale_id is exsit and validate
#add order to that invoice #add order to that invoice