some translations added

This commit is contained in:
sigitas 2015-04-13 23:21:01 +03:00
parent 3b427eeae6
commit 28c057ccd9
4 changed files with 27 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@ -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']);

View File

@ -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