From 3ddd6cceba09907aa69ed6b44a538c6ca7dde397 Mon Sep 17 00:00:00 2001 From: atm-jonathan <146709163+atm-jonathan@users.noreply.github.com> Date: Wed, 3 Jul 2024 03:22:42 +0200 Subject: [PATCH] New box comm card (#30220) * hook retour completeListOfReferent * box comm card.php * commit --- htdocs/comm/card.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index 162425c8037..fc5a015e820 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -1210,7 +1210,9 @@ if ($object->id > 0) { // print $formfile->getDocumentsLink($contrat->element, $filename, $filedir); print $late; print "\n"; - print '
| '.$langs->trans("LastCustomersBills", ($num <= $MAXLIST ? "" : $MAXLIST)).' | '.$langs->trans("AllBills").''.$num.' | '; print ''.img_picto($langs->trans("Statistics"), 'stats').' | '; @@ -1466,6 +1471,7 @@ if ($object->id > 0) { $facturestatic->id = $objp->facid; $facturestatic->ref = $objp->ref; + $facturestatic->ref_client = $objp->ref_client; $facturestatic->type = $objp->type; $facturestatic->total_ht = $objp->total_ht; $facturestatic->total_tva = $objp->total_tva; @@ -1511,6 +1517,11 @@ if ($object->id > 0) { // $urlsource = '/compta/facture/card.php?id='.$objp->cid; //print $formfile->getDocumentsLink($facturestatic->element, $filename, $filedir); print ''; + if (getDolGlobalString('MAIN_SHOW_REF_CUSTOMER_INVOICES')) { + print ''; + print $objp->ref_client; + print ' | '; + } if ($objp->df > 0) { print ''.dol_print_date($db->jdate($objp->df), 'day').' | '; } else { @@ -1521,6 +1532,7 @@ if ($object->id > 0) { } else { print '!!! | '; } + print ''; print price($objp->total_ht); print ' | ';