Check we're using the shipping address with the delivery note
This commit is contained in:
parent
62ba989043
commit
e9a55aec94
1 changed files with 6 additions and 0 deletions
|
|
@ -603,6 +603,12 @@ class InvoiceController extends BaseController
|
|||
];
|
||||
$invoice->invoice_type_id = intval($invoice->invoice_type_id);
|
||||
|
||||
if ($invoice->client->shipping_address1) {
|
||||
foreach (['address1', 'address2', 'city', 'state', 'postal_code', 'country_id'] as $field) {
|
||||
$invoice->client->$field = $invoice->client->{'shipping_' . $field};
|
||||
}
|
||||
}
|
||||
|
||||
$data = [
|
||||
'invoice' => $invoice,
|
||||
'invoiceDesigns' => InvoiceDesign::getDesigns(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue