Todo: prvoir les avoirs pour les factures fournisseurs
This commit is contained in:
parent
59a8af644e
commit
3e0bd42d16
@ -177,7 +177,8 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
$societestatic->id = $obj->socid;
|
$societestatic->id = $obj->socid;
|
||||||
$societestatic->nom = $obj->nom;
|
$societestatic->nom = $obj->nom;
|
||||||
|
|
||||||
if ($obj->fournisseur == 1 && $obj->total_ttc < 0 && $obj->type != 2)
|
// Todo: Ajouter test pour les avoirs fournisseurs
|
||||||
|
if ($obj->fournisseur == 1 && ($obj->total_ttc < 0 && $obj->type != 2))
|
||||||
{
|
{
|
||||||
$facturefournstatic->ref=$obj->facnumber;
|
$facturefournstatic->ref=$obj->facnumber;
|
||||||
$facturefournstatic->id=$obj->facid;
|
$facturefournstatic->id=$obj->facid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user