1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Bug fixes

This commit is contained in:
Hillel Coren 2014-05-04 20:11:27 +03:00
parent 9d858f4bfc
commit bbbcca2768
4 changed files with 7 additions and 6 deletions

View File

@ -143,7 +143,7 @@ class InvoiceController extends \BaseController {
$invoice->invoice_date = Utils::fromSqlDate($invoice->invoice_date);
$invoice->due_date = Utils::fromSqlDate($invoice->due_date);
$invoice->is_pro = $client->account->isPro();
$data = array(
'hideHeader' => true,
'showBreadcrumbs' => false,

View File

@ -74,7 +74,8 @@ class Invoice extends EntityModel
'tax_name',
'tax_rate',
'account',
'invoice_design_id']);
'invoice_design_id',
'is_pro']);
$this->client->setVisible([
'name',

View File

@ -37107,9 +37107,9 @@ function displayInvoiceItems(doc, invoice, layout) {
y += 4;
if (invoice.invoice_design_id == 1) {
SetPdfColor('LightBlue', doc);
SetPdfColor('LightBlue', doc, 'primary');
} else if (invoice.invoice_design_id == 2) {
SetPdfColor('SomeGreen', doc);
SetPdfColor('SomeGreen', doc, 'primary');
} else if (invoice.invoice_design_id == 3) {
doc.setFontType('bold');
} else {

View File

@ -1640,9 +1640,9 @@ function displayInvoiceItems(doc, invoice, layout) {
y += 4;
if (invoice.invoice_design_id == 1) {
SetPdfColor('LightBlue', doc);
SetPdfColor('LightBlue', doc, 'primary');
} else if (invoice.invoice_design_id == 2) {
SetPdfColor('SomeGreen', doc);
SetPdfColor('SomeGreen', doc, 'primary');
} else if (invoice.invoice_design_id == 3) {
doc.setFontType('bold');
} else {