mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Only add shipping address to einvoice if country is set.
This commit is contained in:
parent
3ac6f4c2a7
commit
bf93589607
@ -75,7 +75,7 @@ class ZugferdEInvoice extends AbstractService
|
||||
} else {
|
||||
$this->xrechnung->setDocumentBuyerReference($client->routing_id);
|
||||
}
|
||||
if (!empty($client->shipping_address1)){
|
||||
if (!empty($client->shipping_address1) && $client->shipping_country->exists()){
|
||||
$this->xrechnung->setDocumentShipToAddress($client->shipping_address1, $client->shipping_address2, "", $client->shipping_postal_code, $client->shipping_city, $client->shipping_country->iso_3166_2, $client->shipping_state);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user