mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:04:41 -04:00
some translations added
This commit is contained in:
parent
3b427eeae6
commit
28c057ccd9
File diff suppressed because one or more lines are too long
@ -9,12 +9,12 @@ function GetPdfMake(invoice, javascript, callback) {
|
||||
|
||||
function invoiceLines(invoice) {
|
||||
var grid =
|
||||
[[{text: 'Item', style: 'tableHeader'},
|
||||
{text: 'Description', style: 'tableHeader'},
|
||||
{text: 'Unit Cost', style: 'tableHeader'},
|
||||
{text: 'Quantity', style: 'tableHeader'},
|
||||
{text: invoice.has_taxes?'Tax':'', style: 'tableHeader'},
|
||||
{text: 'Line Total', style: 'tableHeader'}]];
|
||||
[[{text: invoiceLabels.item, style: 'tableHeader'},
|
||||
{text: invoiceLabels.description, style: 'tableHeader'},
|
||||
{text: invoiceLabels.unit_cost, style: 'tableHeader'},
|
||||
{text: invoiceLabels.quantity, style: 'tableHeader'},
|
||||
{text: invoice.has_taxes?invoiceLabels.tax:'', style: 'tableHeader'},
|
||||
{text: invoiceLabels.line_total, style: 'tableHeader'}]];
|
||||
//grid.push(['Sample value 1', 'Sample value 2', 'Sample value 3', 'Sample value 2', invoice.has_taxes?'Sample value 2':'','Sample value 3']);
|
||||
//grid.push(['Sample value 1', 'Sample value 2', 'Sample value 3', 'Sample value 2', invoice.has_taxes?'Sample value 2':'','Sample value 3']);
|
||||
|
||||
|
@ -26,16 +26,16 @@ var dd = {
|
||||
}
|
||||
]
|
||||
},
|
||||
'INVOICE',
|
||||
(invoice.is_quote ? invoiceLabels.quote : invoiceLabels.invoice).toUpperCase(),
|
||||
{
|
||||
style: 'tableExample',
|
||||
table: {
|
||||
headerRows: 1,
|
||||
widths: ['auto', 'auto', '*'],
|
||||
body: [
|
||||
['Invoice Number', {style: 'bold', text: invoice.invoice_number}, ""],
|
||||
['Invoice Date', invoice.invoice_date, ""],
|
||||
['Balance Due', formatMoney(invoice.balance_amount, invoice.client.currency_id), ""],
|
||||
[invoice.is_quote ? invoiceLabels.quote_number:invoiceLabels.invoice_number, {style: 'bold', text: invoice.invoice_number}, ""],
|
||||
[invoice.is_quote ? invoiceLabels.quote_date:invoiceLabels.invoice_date, invoice.invoice_date, ""],
|
||||
[invoice.is_quote ? invoiceLabels.total : invoiceLabels.balance_due, formatMoney(invoice.balance_amount, invoice.client.currency_id), ""],
|
||||
]
|
||||
},
|
||||
layout: {
|
||||
@ -105,6 +105,15 @@ var dd = {
|
||||
},
|
||||
cost: {
|
||||
alignment: 'right'
|
||||
},
|
||||
quantity: {
|
||||
alignment: 'right'
|
||||
},
|
||||
tax: {
|
||||
alignment: 'right'
|
||||
},
|
||||
lineTotal: {
|
||||
alignment: 'right'
|
||||
}
|
||||
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user