FIX: deposit payment terms: correctly store default deposit percent value if not defined
This commit is contained in:
parent
5057ba29b2
commit
15455ed470
@ -2566,7 +2566,7 @@ abstract class CommonObject
|
||||
}
|
||||
|
||||
if (empty($deposit_percent) || $deposit_percent < 0) {
|
||||
$deposit_percent = null;
|
||||
$deposit_percent = getDictionaryValue(MAIN_DB_PREFIX . 'c_payment_term', 'deposit_percent', $id);
|
||||
}
|
||||
|
||||
if ($deposit_percent > 100) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user