mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
If blank exchange rate is sent, force 1
This commit is contained in:
parent
77e1ba1ad2
commit
24d542a023
@ -95,6 +95,9 @@ class StoreInvoiceRequest extends Request
|
||||
if (array_key_exists('tax_rate3', $input) && is_null($input['tax_rate3'])) {
|
||||
$input['tax_rate3'] = 0;
|
||||
}
|
||||
if (array_key_exists('exchange_rate', $input) && is_null($input['exchange_rate'])) {
|
||||
$input['exchange_rate'] = 1;
|
||||
}
|
||||
|
||||
$this->replace($input);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user