Fix problem with quote labels on PDF

This commit is contained in:
Hillel Coren 2015-02-09 15:29:11 +02:00
parent 29fc9db9b7
commit 99568e4cee
2 changed files with 2 additions and 2 deletions

View File

@ -32343,7 +32343,7 @@ function displayGrid(doc, invoice, data, x, y, layout, options) {
doc.text(marginLeft, y, value);
doc.setFontType('normal');
if (parseInt(invoice.is_quote)) {
if (invoice.is_quote) {
if (key == 'invoice_number') {
key = 'quote_number';
} else if (key == 'invoice_date') {

View File

@ -820,7 +820,7 @@ function displayGrid(doc, invoice, data, x, y, layout, options) {
doc.text(marginLeft, y, value);
doc.setFontType('normal');
if (parseInt(invoice.is_quote)) {
if (invoice.is_quote) {
if (key == 'invoice_number') {
key = 'quote_number';
} else if (key == 'invoice_date') {