mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Enfore payment_terms to '0' if none is set
This commit is contained in:
parent
37a4c4810d
commit
0634698c5b
@ -471,8 +471,9 @@ class Import implements ShouldQueue
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($key == 'payment_terms' && $key = '') {
|
/* changes $key = '' to $value == '' and changed the return value from -1 to "0" 06/01/2022 */
|
||||||
$value = -1;
|
if ($key == 'payment_terms' && $value == '') {
|
||||||
|
$value = "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
$company_settings->{$key} = $value;
|
$company_settings->{$key} = $value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user