Fix VAT rate

#623
This commit is contained in:
Artur Beljajev 2018-03-13 09:02:08 +02:00
parent 6dfd57ee2e
commit a73a8a0b89
5 changed files with 17 additions and 12 deletions

View file

@ -24,7 +24,7 @@
%td= currency(@invoice.sum_without_vat)
%tr
%th.no-border{colspan: 3}
%th= t('vat', rate: (@invoice.vat_rate * 100).round)
%th= t('vat', rate: number_to_percentage(@invoice.vat_rate, precision: 1))
%td= currency(@invoice.vat)
%tr
%th.no-border{colspan: 3}

View file

@ -242,7 +242,7 @@
%td= "#{currency(@invoice.sum_without_vat)} #{@invoice.currency}"
%tr
%th.no-border{colspan: 3}
%th= t('vat', rate: (@invoice.vat_rate * 100).round)
%th= t('vat', rate: number_to_percentage(@invoice.vat_rate, precision: 1))
%td= "#{currency(@invoice.vat)} #{@invoice.currency}"
%tr
%th.no-border{colspan: 3}