Add total waste and spoil in close cashier and Closing Balance မွာ Character ေတြ ရိုက္လို႕ရေန
This commit is contained in:
@@ -1092,6 +1092,14 @@ end
|
||||
return sale_arr
|
||||
end
|
||||
|
||||
def self.get_total_waste(shift_id)
|
||||
query = Sale.where("sale_status = 'waste' and shift_sale_id = ?", shift_id)
|
||||
end
|
||||
|
||||
def self.get_total_spoile(shift_id)
|
||||
query = Sale.where("sale_status = 'spoile' and shift_sale_id = ?", shift_id)
|
||||
end
|
||||
|
||||
def self.get_separate_tax(shift_sale_range=nil,shift,from,to,payment_type)
|
||||
|
||||
# wrong amount tax for service and commercial tax
|
||||
|
||||
Reference in New Issue
Block a user