This commit is contained in:
Laurent Destailleur 2026-01-02 19:42:15 +01:00
parent 4c7f6d5949
commit 489dfba69f
3 changed files with 4 additions and 2 deletions

View file

@ -119,6 +119,7 @@ $permissiontodelete = ($user->hasRight("cashdesk", "run") || $user->hasRight("ta
/*
* Actions
*/
$error = 0;
if (empty($backtopage)) {

View file

@ -58,7 +58,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
* @var User $user
*/
$langs->loadLangs(array("bills", "banks"));
$langs->loadLangs(array("bills", "banks", "cashdesk"));
$id = GETPOSTINT('id');
$summaryonly = GETPOSTINT('summaryonly'); // May be used for ticket Z
@ -175,7 +175,7 @@ if ($resql) {
$nameterminal = getDolGlobalString("TAKEPOS_TERMINAL_NAME_".$object->posnumber);
print $langs->trans("CashControl")." #".$object->id.(($nameterminal != "TAKEPOS_TERMINAL_NAME_".$object->posnumber) ? '<br>'.$nameterminal : '');
if ($object->status == $object::STATUS_DRAFT) {
print '<br><span class="opacitymedium small">('.$langs->trans("Draft").")</span>";
print '<br><span class="opacitymedium small">('.$langs->trans("Draft")." - ".$langs->trans("TheoricalView").")</span>";
}
print "</h2>";
print $mysoc->name;

View file

@ -178,3 +178,4 @@ CashRegisterAlertFR2=Every cash control is recorded into the Unalterable Log.
KitchenPrinter=Kitchen printer
CashControlEndDateMustBeBeforeNow=It is not possible to make a monthly or yearly cash control when the period is not yet complete. Select a past period or add a day in the selection.
CashControlEndDayMustNotBeInPast=It is not possible to make a daily cash control on a day in the future.
TheoricalView=Theorical view