From 808eaa8cfc53de76a901e92625f9657c3c0f1a66 Mon Sep 17 00:00:00 2001 From: MDW Date: Sat, 1 Nov 2025 21:57:34 +0100 Subject: [PATCH] Fix: Correct fields (takepos/receipt) (#36056) # Fix: Correct fields (takepos/receipt) - Use invoice date (not unavailable date_c); - Correct ifprod1 to idprof1. --- htdocs/takepos/receipt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/takepos/receipt.php b/htdocs/takepos/receipt.php index 4ff7900ff21..70b7a4b291f 100644 --- a/htdocs/takepos/receipt.php +++ b/htdocs/takepos/receipt.php @@ -5,7 +5,7 @@ * Copyright (C) 2018 Andreu Bisquerra * Copyright (C) 2019 Josep Lluís Amador * Copyright (C) 2021 Nicolas ZABOURI - * Copyright (C) 2024 MDW + * Copyright (C) 2024-2025 MDW * Copyright (C) 2024-2025 Frédéric France * Copyright (C) 202 Ferran Marcet * @@ -252,7 +252,7 @@ if (isALNERunningVersion()) { print "
".$langs->trans("TransactionID").': '.$unalterablelogid.'
'; } // Date -print $langs->trans('Date')." ".dol_print_date($object->date_c ? $object->date_c : dol_now(), 'day'); +print $langs->trans('Date')." ".dol_print_date($object->date ? $object->date : dol_now(), 'day'); // Date of printing if (isALNERunningVersion() || !getDolGlobalString('TAKEPOS_HIDE_DATE_OF_PRINTING')) { print "
".$langs->trans("DateOfPrinting").': '.dol_print_date(dol_now(), 'dayhour', 'tzuserrel').'
'; @@ -501,7 +501,7 @@ if (isALNEQualifiedVersion() || isALNERunningVersion()) { if ($mysoc->idprof2) { $labelidprof = $langs->transcountry("ProfId2Short", $mysoc->country_code); print $labelidprof.': '.$mysoc->idprof2; - } elseif ($mysoc->ifprod1) { + } elseif ($mysoc->idprof1) { $labelidprof = $langs->transcountry("ProfId1Short", $mysoc->country_code); print $labelidprof.': '.$mysoc->idprof1; } else {