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 def get_commerical_tax
tax = 0.0 tax = 0.0
self.sale_taxes.each do |tax| self.sale_taxes.each do |taxobj|
if tax.tax_name == "Commerical Tax" if taxobj.tax_name == "Commerical Tax"
tax += tax.tax_payable_amount tax += taxobj.tax_payable_amount
end end
end end
end end