From c599c114fe18ce4cf6a577b67302bfaf2b42fe2a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 1 Nov 2025 13:32:45 +0100 Subject: [PATCH] WIP LNE --- htdocs/takepos/receipt.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/htdocs/takepos/receipt.php b/htdocs/takepos/receipt.php index a95eedcb287..34a3d90184e 100644 --- a/htdocs/takepos/receipt.php +++ b/htdocs/takepos/receipt.php @@ -245,7 +245,7 @@ if (getDolGlobalString('TAKEPOS_SHOW_CUSTOMER')) { print "
".$langs->trans("Customer").': '.$soc->name; } } -if (!getDolGlobalString('TAKEPOS_HIDE_DATE_OF_PRINTING')) { +if (isALNERunningVersion() || !getDolGlobalString('TAKEPOS_HIDE_DATE_OF_PRINTING')) { print "
".$langs->trans("DateOfPrinting").': '.dol_print_date(dol_now(), 'dayhour', 'tzuserrel').'
'; } @@ -485,9 +485,24 @@ if (getDolGlobalString('TAKEPOS_FOOTER') || getDolGlobalString($constFreeText)) print $newfreetext; } -if (isALNEQualifiedVersion()) { // If necessary, we could replace with "if isALNERunningVersion()" +if (isALNEQualifiedVersion() || isALNERunningVersion()) { $langs->load("blockedlog"); - print '
'.$langs->trans("LNECertifiedPOSSystem")."

\n"; + print '
'; + print $langs->trans("LNECertifiedPOSSystem")."
"; + if ($mysoc->idprof2) { + $labelidprof = $langs->transcountry("ProfId2Short", $mysoc->country_code); + print $labelidprof.': '.$mysoc->idprof2; + } elseif ($mysoc->ifprod1) { + $labelidprof = $langs->transcountry("ProfId1Short", $mysoc->country_code); + print $labelidprof.': '.$mysoc->idprof1; + } else { + print 'ERROR: SIREN/SIRET not defined. Ticket not valid !!!'; + } + if ($mysoc->tva_intra) { + $labelidprof = $langs->trans("VATIntra"); + print ' - '.$labelidprof.': '.$mysoc->tva_intra; + } + print "

\n"; }