mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on QR Codes
This commit is contained in:
parent
716561e22b
commit
90805ca46b
@ -173,9 +173,27 @@ class Design extends BaseDesign
|
|||||||
$this->sharedFooterElements(),
|
$this->sharedFooterElements(),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
// 'swiss-qr' => [
|
||||||
|
// 'id' => 'swiss-qr',
|
||||||
|
// 'elements' => $this->swissQrCodeElement(),
|
||||||
|
// ]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function swissQrCodeElement() :array
|
||||||
|
{
|
||||||
|
if($this->type == self::DELIVERY_NOTE)
|
||||||
|
return [];
|
||||||
|
|
||||||
|
$elements = [];
|
||||||
|
|
||||||
|
if(strlen($this->company->getSetting('qr_iban')) > 5 && strlen($this->company->getSetting('besr_id')) > 1)
|
||||||
|
$elements[] = ['element' => 'qr_code', 'content' => '$swiss_qr', 'show_empty' => false, 'properties' => ['data-ref' => 'swiss-qr-code']];
|
||||||
|
|
||||||
|
return $elements;
|
||||||
|
}
|
||||||
|
|
||||||
public function companyDetails(): array
|
public function companyDetails(): array
|
||||||
{
|
{
|
||||||
$variables = $this->context['pdf_variables']['company_details'];
|
$variables = $this->context['pdf_variables']['company_details'];
|
||||||
|
@ -341,7 +341,7 @@ $entity_images
|
|||||||
'product-table', 'task-table', 'delivery-note-table',
|
'product-table', 'task-table', 'delivery-note-table',
|
||||||
'statement-invoice-table', 'statement-payment-table', 'statement-aging-table-totals',
|
'statement-invoice-table', 'statement-payment-table', 'statement-aging-table-totals',
|
||||||
'statement-invoice-table-totals', 'statement-payment-table-totals', 'statement-aging-table',
|
'statement-invoice-table-totals', 'statement-payment-table-totals', 'statement-aging-table',
|
||||||
'client-details','vendor-details'
|
'client-details','vendor-details', 'swiss-qr'
|
||||||
];
|
];
|
||||||
|
|
||||||
tables.forEach((tableIdentifier) => {
|
tables.forEach((tableIdentifier) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user