mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-15 09:52:55 -05:00
v5.0.0 update
This commit is contained in:
@@ -110,7 +110,7 @@ trait GeneratesPdfTrait
|
||||
|
||||
public function getFieldsArray()
|
||||
{
|
||||
$customer = $this->user;
|
||||
$customer = $this->customer;
|
||||
$shippingAddress = $customer->shippingAddress ?? new Address();
|
||||
$billingAddress = $customer->billingAddress ?? new Address();
|
||||
$companyAddress = $this->company->address ?? new Address();
|
||||
@@ -148,7 +148,7 @@ trait GeneratesPdfTrait
|
||||
];
|
||||
|
||||
$customFields = $this->fields;
|
||||
$customerCustomFields = $this->user->fields;
|
||||
$customerCustomFields = $this->customer->fields;
|
||||
|
||||
foreach ($customFields as $customField) {
|
||||
$fields['{'.$customField->customField->slug.'}'] = $customField->defaultAnswer;
|
||||
|
||||
Reference in New Issue
Block a user