Retrieve line item sales tax from included_tax rather than tax amount

This commit is contained in:
Rohan Mitchell
2015-03-24 10:40:54 +11:00
parent daa30ed518
commit d489e06009
2 changed files with 6 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ module OpenFoodNetwork
end
def tax_included_in(line_item)
line_item.adjustments.included_tax.sum &:amount
line_item.adjustments.sum &:included_tax
end
def shipment_inc_vat