tpl/invoice-en.slim in polish_invoicer-0.0.10 vs tpl/invoice-en.slim in polish_invoicer-0.0.11

- old
+ new

@@ -99,28 +99,49 @@ em Unit price th.text-center width="7%" | Wart. netto .small em Net amount + - unless reverse_charge + th.text-center width="1%" + | VAT + .small + em VAT + th.text-center width="7%" + | Kwota VAT + .small + em VAT amount + th.text-center width="7%" + | Wart. brutto + .small + em Gross amount tr td = item_name - if pkwiu td.text-center = pkwiu td.text-center | 1 usł. .small em 1 service td.text-center = net_value td.text-center = net_value + - unless reverse_charge + td.text-center = vat + td.text-center = vat_value + td.text-center = gross_value tr td colspan="#{pkwiu ? 3 : 2}" |   th.text-center | Razem .small em Total td.text-center = net_value + - unless reverse_charge + td.text-center = vat + td.text-center = vat_value + th.text-center = gross_value br .row .col-xs-6 @@ -128,19 +149,19 @@ .col-xs-6 b Razem do zapłaty: .small em Total to pay: .col-xs-6 - b = "#{net_value} PLN" + b = "#{reverse_charge == true ? net_value : gross_value} PLN" .row .col-xs-6 | Zapłacono: .small em Amount paid: .col-xs-6 - if paid - = "#{net_value} PLN" + = "#{reverse_charge == true ? net_value : gross_value} PLN" - else | 0,00 PLN .row .col-xs-6 | Zostało do zapłaty: @@ -148,22 +169,23 @@ em Left to pay: .col-xs-6 - if paid | 0,00 PLN - else - = "#{net_value} PLN" + = "#{reverse_charge == true ? net_value : gross_value} PLN" .col-xs-6 - if comments.any? b Uwagi: .small em Remarks: - comments.each do |line| = line br - br - br + - if reverse_charge + br + br - b Do rozliczenia podatku VAT zobowiązany jest nabywca usługi (odwrotne obciążenie) - .small - em Levy of VAT reverse charged to recipient of service (reverse charge) + b Do rozliczenia podatku VAT zobowiązany jest nabywca usługi (odwrotne obciążenie) + .small + em Levy of VAT reverse charged to recipient of service (reverse charge)