From fb2aee7cc5437dbcd0cd27cda1a583435badce83 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 11 Apr 2016 17:17:33 +0200 Subject: [PATCH] [bug] fix VAT row and HT total row on invoices --- app/pdfs/pdf/invoice.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pdfs/pdf/invoice.rb b/app/pdfs/pdf/invoice.rb index ce890dad0..6e2120159 100644 --- a/app/pdfs/pdf/invoice.rb +++ b/app/pdfs/pdf/invoice.rb @@ -139,8 +139,8 @@ module PDF vat_rate = Setting.find_by({name: 'invoice_VAT-rate'}).value.to_f vat = total / (vat_rate / 100 + 1) - data += [ [I18n.t('invoices.including_VAT_RATE', RATE: vat_rate), number_to_currency(vat)] ] - data += [ [I18n.t('invoices.including_total_excluding_taxes'), number_to_currency(total-vat)] ] + data += [ [I18n.t('invoices.including_VAT_RATE', RATE: vat_rate), number_to_currency(total-vat)] ] + data += [ [I18n.t('invoices.including_total_excluding_taxes'), number_to_currency(vat)] ] data += [ [I18n.t('invoices.including_amount_payed_on_ordering'), number_to_currency(total)] ] # checking the round number