FIX Create and clone negative social contribution

This commit is contained in:
Laurent Destailleur 2021-12-13 18:11:17 +01:00
parent 6d94c6150b
commit d0bc32047d

View File

@ -198,7 +198,7 @@ class ChargeSociales extends CommonObject
$newamount = price2num($this->amount, 'MT');
// Validation of parameters
if (!($newamount > 0) || empty($this->date_ech) || empty($this->periode)) {
if ($newamount == 0 || empty($this->date_ech) || empty($this->periode)) {
return false;
}