tpl/invoice.slim in polish_invoicer-0.0.23 vs tpl/invoice.slim in polish_invoicer-0.0.24
- old
+ new
@@ -81,19 +81,19 @@
| 1 usł.
td.text-center = net_value
td.text-center = net_value
td.text-center = vat
td.text-center = vat_value
- td.text-center = gross_value
+ td.text-center = total_to_pay_value
tr
td colspan="#{pkwiu ? 3 : 2}"
|
th.text-center Razem
td.text-center = net_value
td.text-center = vat
td.text-center = vat_value
- th.text-center = gross_value
+ th.text-center = total_to_pay_value
br
.row
.col-xs-3
@@ -106,20 +106,14 @@
br
| Kurs waluty:
br
| Podatek w PLN:
.col-xs-3
- b = "#{gross_value} #{currency}"
+ b = "#{total_to_pay_value} #{currency}"
br
- - if paid
- = "#{gross_value} #{currency}"
- - else
- = "0,00 #{currency}"
+ = "#{paid_value} #{currency}"
br
- - if paid
- = "0,00 #{currency}"
- - else
- = "#{gross_value} #{currency}"
+ = "#{to_pay_value} #{currency}"
- if currency != 'PLN'
br
= exchange_rate
br
= "#{exchanged_tax} PLN"