mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Fixes for white labels
This commit is contained in:
parent
635a7484aa
commit
946e3e9ba3
@ -1 +1 @@
|
|||||||
5.7.34
|
5.7.35
|
@ -652,7 +652,7 @@ class PdfBuilder
|
|||||||
/**
|
/**
|
||||||
* Formats the line items for display.
|
* Formats the line items for display.
|
||||||
*
|
*
|
||||||
* @param array<\App\DataMapper\InvoiceItem> $items
|
* @param array $items
|
||||||
* @param string $table_type
|
* @param string $table_type
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
@ -663,9 +663,9 @@ class PdfBuilder
|
|||||||
|
|
||||||
$locale_info = localeconv();
|
$locale_info = localeconv();
|
||||||
|
|
||||||
// $this->service->config->entity_currency = $this->service->config->currency;
|
|
||||||
|
|
||||||
foreach ($items as $key => $item) {
|
foreach ($items as $key => $item) {
|
||||||
|
/** @var \App\DataMapper\InvoiceItem $item */
|
||||||
|
|
||||||
if ($table_type == '$product' && $item->type_id != 1) {
|
if ($table_type == '$product' && $item->type_id != 1) {
|
||||||
if ($item->type_id != 4 && $item->type_id != 6 && $item->type_id != 5) {
|
if ($item->type_id != 4 && $item->type_id != 6 && $item->type_id != 5) {
|
||||||
continue;
|
continue;
|
||||||
@ -980,7 +980,7 @@ class PdfBuilder
|
|||||||
return [
|
return [
|
||||||
['element' => 'div', 'properties' => ['style' => 'display: flex; flex-direction: column;'], 'elements' => [
|
['element' => 'div', 'properties' => ['style' => 'display: flex; flex-direction: column;'], 'elements' => [
|
||||||
['element' => 'div', 'properties' => ['style' => 'margin-top: 1.5rem; display: block; align-items: flex-start; page-break-inside: avoid; visible !important;'], 'elements' => [
|
['element' => 'div', 'properties' => ['style' => 'margin-top: 1.5rem; display: block; align-items: flex-start; page-break-inside: avoid; visible !important;'], 'elements' => [
|
||||||
['element' => 'img', 'properties' => ['src' => '$invoiceninja.whitelabel', 'style' => 'height: 2.5rem;', 'hidden' => 'false', 'id' => 'invoiceninja-whitelabel-logo']],
|
['element' => 'img', 'properties' => ['src' => '$invoiceninja.whitelabel', 'style' => 'height: 2.5rem;', 'hidden' => $this->service->company->account->isPaid() ? 'true' : 'false', 'id' => 'invoiceninja-whitelabel-logo']],
|
||||||
]],
|
]],
|
||||||
]],
|
]],
|
||||||
];
|
];
|
||||||
@ -1052,7 +1052,7 @@ class PdfBuilder
|
|||||||
]],
|
]],
|
||||||
['element' => 'img', 'properties' => ['style' => 'max-width: 50%; height: auto;', 'src' => '$contact.signature', 'id' => 'contact-signature']],
|
['element' => 'img', 'properties' => ['style' => 'max-width: 50%; height: auto;', 'src' => '$contact.signature', 'id' => 'contact-signature']],
|
||||||
['element' => 'div', 'properties' => ['style' => 'margin-top: 1.5rem; display: flex; align-items: flex-start; page-break-inside: auto;'], 'elements' => [
|
['element' => 'div', 'properties' => ['style' => 'margin-top: 1.5rem; display: flex; align-items: flex-start; page-break-inside: auto;'], 'elements' => [
|
||||||
['element' => 'img', 'properties' => ['src' => '$invoiceninja.whitelabel', 'style' => 'height: 2.5rem;', 'hidden' => 'false', 'id' => 'invoiceninja-whitelabel-logo']],
|
['element' => 'img', 'properties' => ['src' => '$invoiceninja.whitelabel', 'style' => 'height: 2.5rem;', 'hidden' => $this->service->company->account->isPaid() ? 'true' : 'false', 'id' => 'invoiceninja-whitelabel-logo']],
|
||||||
]],
|
]],
|
||||||
]],
|
]],
|
||||||
['element' => 'div', 'properties' => ['class' => 'totals-table-right-side', 'dir' => '$dir'], 'elements' => []],
|
['element' => 'div', 'properties' => ['class' => 'totals-table-right-side', 'dir' => '$dir'], 'elements' => []],
|
||||||
|
@ -15,8 +15,8 @@ return [
|
|||||||
'require_https' => env('REQUIRE_HTTPS', true),
|
'require_https' => env('REQUIRE_HTTPS', true),
|
||||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||||
'app_version' => env('APP_VERSION','5.7.34'),
|
'app_version' => env('APP_VERSION','5.7.35'),
|
||||||
'app_tag' => env('APP_TAG','5.7.34'),
|
'app_tag' => env('APP_TAG','5.7.35'),
|
||||||
'minimum_client_version' => '5.0.16',
|
'minimum_client_version' => '5.0.16',
|
||||||
'terms_version' => '1.0.1',
|
'terms_version' => '1.0.1',
|
||||||
'api_secret' => env('API_SECRET', ''),
|
'api_secret' => env('API_SECRET', ''),
|
||||||
|
Loading…
Reference in New Issue
Block a user