mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check we're using the shipping address with the delivery note
This commit is contained in:
parent
62ba989043
commit
e9a55aec94
@ -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…
x
Reference in New Issue
Block a user