update shift

This commit is contained in:
Nweni
2017-06-30 13:10:28 +06:30
parent 063d561f3e
commit 5e3935f176
7 changed files with 21 additions and 12 deletions

View File

@@ -437,6 +437,15 @@ end
return other
end
def get_commerical_tax
tax = 0.0
self.sale_taxes.each do |tax|
if tax.tax_name == "Commerical Tax"
tax += tax.tax_payable_amount
end
end
end
private
def generate_custom_id