1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

Merge branch 'dev'

This commit is contained in:
Sylvain 2016-04-11 17:17:56 +02:00
commit b8f45da268

View File

@ -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