tpl/invoice-en.slim in polish_invoicer-0.0.25 vs tpl/invoice-en.slim in polish_invoicer-0.0.26
- old
+ new
@@ -1,10 +1,10 @@
doctype html
html
head
meta charset="utf-8"
- title = "Faktura nr #{number}"
+ title = "Invoice number #{number}"
css:
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
@@ -14,129 +14,75 @@
.small { margin-top: -5px; font-weight: normal; }
body
.container
- h3 = "Faktura nr #{number}"
- h6.small
- em = "Invoice number #{number}"
+ h3 = "Invoice number #{number}"
.row
.col-xs-6
- h4 Sprzedawca
- h6.small
- em Seller
+ h4 Seller
- seller.each do |line|
= line
br
- = "VAT no: #{seller_nip}"
+ = "TAX ID: #{seller_nip}"
.col-xs-6
- h4 Nabywca
- h6.small
- em Buyer
+ h4 Buyer
- buyer.each do |line|
= line
br
- if buyer_nip.to_s.strip != ''
- = "VAT no: #{buyer_nip}"
+ = "TAX ID: #{buyer_nip}"
- if recipient.any?
- h4 Odbiorca
- h6.small
- em Recipient
+ h4 Recipient
- recipient.each do |line|
= line
br
br
br
.row
- .col-xs-3
- | Data wystawienia:
- .small
- em Date of issue:
- .col-xs-3
- = create_date
- .col-xs-3
- | Termin płatności:
- .small
- em Payment deadline:
- .col-xs-3
- = payment_date
+ .col-xs-3 Date of issue:
+ .col-xs-3 = create_date
+ .col-xs-3 Payment deadline:
+ .col-xs-3 = payment_date
.row
- .col-xs-3
- | Data sprzedaży:
- .small
- em Date of sale:
- .col-xs-3
- = trade_date
- .col-xs-3
- | Sposób zapłaty:
- .small
- em Method of payment:
- .col-xs-3
- = payment_type
- .small
- em = payment_type.to_s.downcase == 'przelew' ? 'bank transfer' : 'cash'
+ .col-xs-3 Date of sale:
+ .col-xs-3 = trade_date
+ .col-xs-3 Method of payment:
+ .col-xs-3 = payment_type.to_s.downcase == 'przelew' ? 'bank transfer' : 'cash'
br
br
table.table.table-condensed
tr
- th width="40%"
- | Usługa
- .small
- em Service
+ th width="40%" Service
- if pkwiu
th.text-center width="1%" PKWiU
- th.text-center width="7%"
- | Ilość
- .small
- em Qty
- th.text-center width="7%"
- | Cena netto
- .small
- em Unit price
- th.text-center width="7%"
- | Wart. netto
- .small
- em Net amount
+ th.text-center width="7%" Qty
+ th.text-center width="7%" Unit price
+ th.text-center width="7%" 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
+ th.text-center width="1%" VAT
+ th.text-center width="7%" VAT amount
+ th.text-center width="7%" Gross amount
tr
td = item_name
- if pkwiu
td.text-center = pkwiu
- td.text-center
- | 1 usł.
- .small
- em 1 service
+ td.text-center 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 = total_to_pay_value
tr
- td colspan="#{pkwiu ? 3 : 2}"
- |
- th.text-center
- | Razem
- .small
- em Total
+ td colspan="#{pkwiu ? 3 : 2}"
+ th.text-center Total
td.text-center = net_value
- unless reverse_charge
td.text-center = vat
td.text-center = vat_value
th.text-center = total_to_pay_value
@@ -145,55 +91,27 @@
.row
.col-xs-6
.row
.col-xs-6
- b Razem do zapłaty:
- .small
- em Total to pay:
+ b Total to pay:
.col-xs-6
b = "#{total_to_pay_value} #{currency}"
.row
- .col-xs-6
- | Zapłacono:
- .small
- em Amount paid:
+ .col-xs-6 Amount paid:
.col-xs-6 = "#{paid_value} #{currency}"
.row
- .col-xs-6
- | Zostało do zapłaty:
- .small
- em Left to pay:
+ .col-xs-6 Left to pay:
.col-xs-6 = "#{to_pay_value} #{currency}"
- - if currency != 'PLN'
- .row
- .col-xs-6
- | Kurs waluty:
- .small
- em Exchange rate:
- .col-xs-6
- = exchange_rate
- - unless reverse_charge
- .row
- .col-xs-6
- | Podatek w PLN:
- .small
- em Exchanged tax amount:
- .col-xs-6
- = "#{exchanged_tax} PLN"
-
.col-xs-6
- if comments.any?
- b Uwagi:
- .small
- em Remarks:
+ b Remarks:
+ br
- comments.each do |line|
= line
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 Levy of VAT reverse charged to recipient of service (reverse charge)