diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php
index 9f22cc20b40..586cdcfcd56 100644
--- a/htdocs/takepos/invoice.php
+++ b/htdocs/takepos/invoice.php
@@ -913,7 +913,7 @@ if (empty($reshook)) {
$sectionwithinvoicelink .= ' ';
}
- if ($remaintopay <= 0 && getDolGlobalString('TAKEPOS_AUTO_PRINT_TICKETS')) {
+ if ($remaintopay <= 0 && getDolGlobalString('TAKEPOS_AUTO_PRINT_TICKETS') && $action != "history") {
$sectionwithinvoicelink .= '';
}
}