update taxobj in sale

This commit is contained in:
Yan
2017-06-30 19:27:46 +06:30
parent f7341c7855
commit a851f6de70

View File

@@ -598,9 +598,9 @@ 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
self.sale_taxes.each do |taxobj|
if taxobj.tax_name == "Commerical Tax"
tax += taxobj.tax_payable_amount
end
end
end