Enfore payment_terms to '0' if none is set

This commit is contained in:
David Bomba 2022-01-06 13:08:19 +11:00
parent 37a4c4810d
commit 0634698c5b

View File

@ -471,8 +471,9 @@ class Import implements ShouldQueue
}
if ($key == 'payment_terms' && $key = '') {
$value = -1;
/* changes $key = '' to $value == '' and changed the return value from -1 to "0" 06/01/2022 */
if ($key == 'payment_terms' && $value == '') {
$value = "0";
}
$company_settings->{$key} = $value;