FIX: deposit payment terms: correctly store default deposit percent value if not defined

This commit is contained in:
Marc de Lima Lucio 2021-10-28 16:54:47 +02:00
parent 5057ba29b2
commit 15455ed470

View File

@ -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) {