1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix issue with hipster design with quotes

This commit is contained in:
Hillel Coren 2016-09-19 14:08:21 +03:00
parent cb44f8e9a6
commit 73781e88d5
5 changed files with 10 additions and 4 deletions

View File

@ -184,6 +184,7 @@ trait PresentsInvoice
'quote_to',
'details',
'invoice_no',
'quote_no',
'valid_until',
'client_name',
'address1',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -210,7 +210,11 @@ NINJA.decodeJavascript = function(invoice, javascript)
if (invoice.partial > 0 && field == 'balance_due') {
field = 'partial_due';
} else if (invoice.is_quote) {
field = field.replace('invoice', 'quote');
if (field == 'due_date') {
field = 'valid_until';
} else {
field = field.replace('invoice', 'quote');
}
}
var label = invoiceLabels[field];
if (match.indexOf('UC') >= 0) {

View File

@ -643,6 +643,7 @@ $LANG = array(
'custom' => 'Custom',
'invoice_to' => 'Invoice to',
'invoice_no' => 'Invoice No.',
'quote_no' => 'Quote No.',
'recent_payments' => 'Recent Payments',
'outstanding' => 'Outstanding',
'manage_companies' => 'Manage Companies',