mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:14:30 -04:00
Fixes for showing shipping details label on invoice pdf
This commit is contained in:
parent
10a83af0af
commit
ba3e7f7a28
@ -254,19 +254,6 @@ class Design extends BaseDesign
|
|||||||
return $elements;
|
return $elements;
|
||||||
}
|
}
|
||||||
|
|
||||||
// $elements = [
|
|
||||||
// ['element' => 'p', 'content' => ctrans('texts.shipping_address'), 'properties' => ['data-ref' => 'shipping_address-label', 'style' => 'font-weight: bold; text-transform: uppercase']],
|
|
||||||
// ['element' => 'p', 'content' => $this->client->name, 'show_empty' => false, 'properties' => ['data-ref' => 'shipping_address-client.name']],
|
|
||||||
// ['element' => 'p', 'content' => $this->client->shipping_address1, 'show_empty' => false, 'properties' => ['data-ref' => 'shipping_address-client.shipping_address1']],
|
|
||||||
// ['element' => 'p', 'content' => $this->client->shipping_address2, 'show_empty' => false, 'properties' => ['data-ref' => 'shipping_address-client.shipping_address2']],
|
|
||||||
// ['element' => 'p', 'show_empty' => false, 'elements' => [
|
|
||||||
// ['element' => 'span', 'content' => "{$this->client->shipping_city} ", 'properties' => ['ref' => 'shipping_address-client.shipping_city']],
|
|
||||||
// ['element' => 'span', 'content' => "{$this->client->shipping_state} ", 'properties' => ['ref' => 'shipping_address-client.shipping_state']],
|
|
||||||
// ['element' => 'span', 'content' => "{$this->client->shipping_postal_code} ", 'properties' => ['ref' => 'shipping_address-client.shipping_postal_code']],
|
|
||||||
// ]],
|
|
||||||
// ['element' => 'p', 'content' => optional($this->client->shipping_country)->name, 'show_empty' => false],
|
|
||||||
// ];
|
|
||||||
|
|
||||||
$address_variables = [
|
$address_variables = [
|
||||||
'$client.address1',
|
'$client.address1',
|
||||||
'$client.address2',
|
'$client.address2',
|
||||||
@ -287,7 +274,11 @@ class Design extends BaseDesign
|
|||||||
|
|
||||||
})->toArray();
|
})->toArray();
|
||||||
|
|
||||||
return $elements;
|
$header = [];
|
||||||
|
$header[] = ['element' => 'p', 'content' => ctrans('texts.shipping_address'), 'properties' => ['data-ref' => 'shipping_address-label', 'style' => 'font-weight: bold; text-transform: uppercase']];
|
||||||
|
return array_merge($header, $elements);
|
||||||
|
|
||||||
|
// return $elements;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user