docs/LIBRARY.md in invoice_printer-1.2.0 vs docs/LIBRARY.md in invoice_printer-1.3.0

- old
+ new

@@ -71,10 +71,14 @@ items: [item], note: 'A note...' ) ``` +**Note**: There is `variable` field that can be used for any +extra column. `tax2` and `tax3` for more complex taxes are +available as well. + ### Ruby on Rails If you want to use InvoicePrinter for printing PDF documents directly from Rails actions, you can: @@ -168,10 +172,11 @@ swift: 'SWIFT', iban: 'IBAN', issue_date: 'Issue date', due_date: 'Due date', item: 'Item', + variable: '', quantity: 'Quantity', unit: 'Unit', price_per_item: 'Price per item', amount: 'Amount', tax: 'Tax', @@ -179,10 +184,11 @@ tax3: 'Tax 3', subtotal: 'Subtotal', total: 'Total' } ``` +**Note:** `variable` fields lack default label. You should provide one. You can also use sublabels feature to provide the document in two languages: ```ruby labels = { @@ -199,10 +205,11 @@ payment_by_transfer: 'Platba na následující účet:', account_number: 'Číslo účtu', issue_date: 'Datum vydání', due_date: 'Datum splatnosti', item: 'Položka', + variable: '', quantity: 'Počet', unit: 'MJ', price_per_item: 'Cena za položku', amount: 'Celkem bez daně', subtotal: 'Cena bez daně', @@ -213,10 +220,10 @@ labels.merge!({ sublabels: sublabels }) ... ``` -Now the document will have a little sublabels next to the original labels in Czech. +Now the document will have little sublabels next to the original labels in Czech. ### Font To support specific characters you might need to specify a TTF font to be used: