From 08df783c2e88b23450fc4fd6dc41d660da52c832 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 28 Dec 2008 13:21:37 +0000 Subject: [PATCH] FIX impression -> poste : show the lib from the account table if no qcode --- include/class_acc_operation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class_acc_operation.php b/include/class_acc_operation.php index 60da78700..1222d83d9 100644 --- a/include/class_acc_operation.php +++ b/include/class_acc_operation.php @@ -204,7 +204,8 @@ function get_internal() { $r.=''; $r.=''; - $a=($l['vw_name']=="")?$l['j_qcode']:$l['pcm_lib']; + // $a=($l['vw_name']=="")?$l['j_qcode']:$l['pcm_lib']; + $a=(strlen(trim($l['j_qcode']))==0)?$l['pcm_lib']:$l['vw_name']; $r_notable.=$a; $r.=h($a); $csv.='"'.$a.'";';