diff --git a/resources/views/accounts/customize_design.blade.php b/resources/views/accounts/customize_design.blade.php index f4049aee5b56..80108eabb2ee 100644 --- a/resources/views/accounts/customize_design.blade.php +++ b/resources/views/accounts/customize_design.blade.php @@ -45,6 +45,7 @@ var customDesign = origCustomDesign = {!! $customDesign ?: 'JSON.parse(invoiceDesigns[0].javascript);' !!}; function getPDFString(cb, force) { + invoice.invoice_design_id = $('#invoice_design_id').val(); invoice.features = { customize_invoice_design:{{ Auth::user()->hasFeature(FEATURE_CUSTOMIZE_INVOICE_DESIGN) ? 'true' : 'false' }}, remove_created_by:{{ Auth::user()->hasFeature(FEATURE_REMOVE_CREATED_BY) ? 'true' : 'false' }}, @@ -52,8 +53,6 @@ }; invoice.account.hide_quantity = {!! Auth::user()->account->hide_quantity ? 'true' : 'false' !!}; invoice.account.hide_paid_to_date = {!! Auth::user()->account->hide_paid_to_date ? 'true' : 'false' !!}; - invoice.invoice_design_id = {!! Auth::user()->account->invoice_design_id !!}; - NINJA.primaryColor = '{!! Auth::user()->account->primary_color !!}'; NINJA.secondaryColor = '{!! Auth::user()->account->secondary_color !!}'; NINJA.fontSize = {!! Auth::user()->account->font_size !!};