From 7a588e357ea9b33301c7cc51636a67a9d00074b7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 8 Dec 2007 00:05:48 +0000 Subject: [PATCH] =?UTF-8?q?Todo:=20pr=E9voir=20les=20avoirs=20pour=20les?= =?UTF-8?q?=20factures=20fournisseurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/bank/treso.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/bank/treso.php b/htdocs/compta/bank/treso.php index 28e9370a408..f79f226fd6f 100644 --- a/htdocs/compta/bank/treso.php +++ b/htdocs/compta/bank/treso.php @@ -177,8 +177,8 @@ if ($_REQUEST["account"] || $_REQUEST["ref"]) $societestatic->id = $obj->socid; $societestatic->nom = $obj->nom; - // Todo: Ajouter test pour les avoirs fournisseurs - if ($obj->fournisseur == 1 && ($obj->total_ttc < 0 && $obj->type != 2)) + // Todo: Ajouter gestion des avoirs fournisseurs, champ ff.type = 2 + if ($obj->fournisseur == 1 && ($obj->total_ttc < 0 && $obj->type != 2) || ($obj->total_ttc > 0 && $obj->type == 2)) { $facturefournstatic->ref=$obj->facnumber; $facturefournstatic->id=$obj->facid;