From db719dbcbbf179c7583492bbe049dcba1f626dc3 Mon Sep 17 00:00:00 2001 From: IJ Date: Sun, 25 Nov 2018 20:36:25 +0000 Subject: [PATCH] FIX: Display All Types of Payments on Expense Report Card Fixes #9991 - Bug: 7.0.4: Expense Report Payment Type Not Displayed - without this fix, only cash type accounts were shown when payment was made --- htdocs/expensereport/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 4bc41f6fa47..2a09fa2a71e 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1925,7 +1925,7 @@ else print $paymentexpensereportstatic->getNomUrl(1); print ''; print ''.dol_print_date($db->jdate($objp->dp),'day')."\n"; - $labeltype=$langs->trans("PaymentType".$objp->p_code)!=("PaymentType".$objp->p_code)?$langs->trans("PaymentType".$objp->p_code):$objp->fk_typepayment; + $labeltype=$langs->trans("PaymentType".$objp->p_code)!=("PaymentType".$objp->p_code)?$langs->trans("PaymentType".$objp->p_code):$objp->payment_type; print "".$labeltype.' '.$objp->num_payment."\n"; if (! empty($conf->banque->enabled)) {