Fix keep the standard behaviour

This commit is contained in:
phf 2017-02-09 17:41:06 +01:00
parent 6b20bad847
commit 579d350599

View File

@ -1063,7 +1063,9 @@ if (empty($reshook))
}
if ($totalamount != 0) {
$amountdeposit[] = ($totalamount * $valuedeposit) / 100;
$amountdeposit[$lines[$i]->tva] = ($totalamount * $valuedeposit) / 100;
} else {
$amountdeposit[] = 0;
}
} else {
setEventMessages($srcobject->error, $srcobject->errors, 'errors');