Enfore payment_terms to '0' if none is set
This commit is contained in:
parent
37a4c4810d
commit
0634698c5b
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue