Avoid AutoPrint in TakePOS history

This commit is contained in:
andreubisquerra 2022-05-31 08:39:48 +02:00 committed by GitHub
parent 70500745f5
commit 0489e51cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -913,7 +913,7 @@ if (empty($reshook)) {
$sectionwithinvoicelink .= ' <button id="buttonsend" type="button" onclick="SendTicket('.$placeid.');">'.$langs->trans('SendTicket').'</button>';
}
if ($remaintopay <= 0 && getDolGlobalString('TAKEPOS_AUTO_PRINT_TICKETS')) {
if ($remaintopay <= 0 && getDolGlobalString('TAKEPOS_AUTO_PRINT_TICKETS') && $action != "history") {
$sectionwithinvoicelink .= '<script type="text/javascript">$("#buttonprint").click();</script>';
}
}