mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes
This commit is contained in:
parent
52d037ae07
commit
42b29fe89f
@ -144,7 +144,7 @@ class StoreRecurringInvoiceRequest extends Request
|
||||
unset($input['number']);
|
||||
}
|
||||
|
||||
if (array_key_exists('exchange_rate', $input) && is_null($input['exchange_rate'])) {
|
||||
if (array_key_exists('exchange_rate', $input) && (is_null($input['exchange_rate']) || $input['exchange_rate'] == 0)) {
|
||||
$input['exchange_rate'] = 1;
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ class UpdateRecurringInvoiceRequest extends Request
|
||||
unset($input['documents']);
|
||||
}
|
||||
|
||||
if (array_key_exists('exchange_rate', $input) && is_null($input['exchange_rate'])) {
|
||||
if (array_key_exists('exchange_rate', $input) && (is_null($input['exchange_rate']) || $input['exchange_rate'] == 0)) {
|
||||
$input['exchange_rate'] = 1;
|
||||
}
|
||||
|
||||
|
@ -765,7 +765,8 @@ class BaseImport
|
||||
{
|
||||
$keys = array_shift($data);
|
||||
ksort($keys);
|
||||
|
||||
// nlog($data);
|
||||
// nlog($keys);
|
||||
return array_map(function ($values) use ($keys) {
|
||||
return array_combine($keys, $values);
|
||||
}, $data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user