From 00b49dba180cec2c9f23dc8e89fce6188c4d4418 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Oct 2020 10:26:30 +0100 Subject: [PATCH] Fix label --- htdocs/compta/cashcontrol/report.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/cashcontrol/report.php b/htdocs/compta/cashcontrol/report.php index 1ea06eba9e9..ef1d20c5efc 100644 --- a/htdocs/compta/cashcontrol/report.php +++ b/htdocs/compta/cashcontrol/report.php @@ -127,8 +127,10 @@ if ($resql) $num = $db->num_rows($resql); $i = 0; + print ""; print "

"; - if ($cashcontrol->status == 2) print $langs->trans("CashControl")." ".$cashcontrol->id; + var_dump($cashcontrol->status); + if ($cashcontrol->status != $cashcontrol::STATUS_DRAFT) print $langs->trans("CashControl")." ".$cashcontrol->id; else print $langs->trans("CashControl")." - ".$langs->trans("Draft"); print "
".$langs->trans("DateCreationShort").": ".dol_print_date($cashcontrol->date_creation, 'dayhour')."

";