Fix: Maintenant que les avoirs sont gérés, il ne faut plus pouvoir valider de facture avec un montant inférieur à 0
This commit is contained in:
parent
f882a35fc2
commit
d007e09039
@ -2553,7 +2553,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Valider
|
// Valider
|
||||||
if ($fac->statut == 0 && $num_lignes > 0)
|
if ($fac->statut == 0 && $num_lignes > 0 && $fac->total_ttc >= 0)
|
||||||
{
|
{
|
||||||
if ($user->rights->facture->valider)
|
if ($user->rights->facture->valider)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user