Bug fixes
This commit is contained in:
parent
f515d57669
commit
af5f659d24
2 changed files with 4 additions and 2 deletions
|
|
@ -112,7 +112,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();
|
||||
$invoice->is_pro = $client->account->isPro();
|
||||
|
||||
$data = array(
|
||||
'hideHeader' => true,
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
$(function() {
|
||||
window.invoice = {{ $invoice->toJson() }};
|
||||
window.logoImages = {};
|
||||
|
||||
|
||||
logoImages.imageLogo1 = "{{ HTML::image_data('images/report_logo1.jpg') }}";
|
||||
logoImages.imageLogoWidth1 =120;
|
||||
logoImages.imageLogoHeight1 = 40
|
||||
|
|
@ -68,6 +68,8 @@
|
|||
invoice.imageHeight = {{ $invoice->client->account->getLogoHeight() }};
|
||||
@endif
|
||||
|
||||
invoice.is_quote = {{ $invoice->is_quote ? 'true' : 'false' }};
|
||||
|
||||
var NINJA = NINJA || {};
|
||||
NINJA.primaryColor = "{{ $invoice->client->account->primary_color }}";
|
||||
NINJA.secondaryColor = "{{ $invoice->client->account->secondary_color }}";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue