1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Add ability to set country_id by country code and currency_id by currency code

This commit is contained in:
David Bomba 2020-07-02 20:56:10 +10:00
parent bd0c523b59
commit 20078c6e31

View File

@ -138,6 +138,10 @@ class StoreClientRequest extends Request
$input['country_id'] = $this->getCountryCode($input['country_code']);
}
if(isset($input['shipping_country_code'])) {
$input['shipping_country_id'] = $this->getCountryCode($input['shipping_country_code']);
}
$this->replace($input);
}