diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php
index 0a748ee32d8..ed3f133b2d4 100644
--- a/htdocs/takepos/invoice.php
+++ b/htdocs/takepos/invoice.php
@@ -274,6 +274,28 @@ if ($action == "order" and $placeid != 0) {
$invoice->fetch($placeid);
}
+$sectionwithinvoicelink='';
+if ($action=="valid")
+{
+ $sectionwithinvoicelink.=''."\n";
+ $sectionwithinvoicelink.='';
+ $sectionwithinvoicelink.='';
+ $sectionwithinvoicelink.=$invoice->getNomUrl(1, '', 0, 0, '', 0, 0, -1, '_backoffice')." - ";
+ if ($invoice->getRemainToPay() > 0)
+ {
+ $sectionwithinvoicelink.=$langs->trans('Generated');
+ }
+ else
+ {
+ if ($invoice->paye) $sectionwithinvoicelink.=$langs->trans("Payed");
+ else $sectionwithinvoicelink.=$langs->trans('BillShortStatusValidated');
+ }
+ $sectionwithinvoicelink.='';
+ if ($conf->global->TAKEPOSCONNECTOR) $sectionwithinvoicelink.=' ';
+ else $sectionwithinvoicelink.=' ';
+ if ($conf->global->TAKEPOS_AUTO_PRINT_TICKETS) $sectionwithinvoicelink.='';
+}
+
/*
* View
@@ -406,6 +428,7 @@ if ($conf->global->TAKEPOS_BAR_RESTAURANT)
}
print $langs->trans('TotalTTC');
print ' : '.price($invoice->total_ttc, 1, '', 1, - 1, - 1, $conf->currency).'';
+print '
'.$sectionwithinvoicelink;
print '';
print '
'; - print $invoice->getNomUrl(1, '', 0, 0, '', 0, 0, -1, '_backoffice')." - "; - if ($invoice->getRemainToPay() > 0) - { - print $langs->trans('Generated'); - } - else - { - if ($invoice->paye) print $langs->trans("Payed"); - else print $langs->trans('BillShortStatusValidated'); - } - print '
'; - if ($conf->global->TAKEPOSCONNECTOR) print '