1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

If blank exchange rate is sent, force 1

This commit is contained in:
David Bomba 2022-09-17 07:56:23 +10:00
parent 77e1ba1ad2
commit 24d542a023

View File

@ -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);
}