mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Bug fixes
This commit is contained in:
parent
9d858f4bfc
commit
bbbcca2768
@ -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,
|
||||
|
@ -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',
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user