update taxobj in sale
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user