Fix translation on ticket
This commit is contained in:
parent
20a35147d4
commit
0aa7e7df88
@ -48,7 +48,7 @@ if (!isset($action)) {
|
|||||||
}
|
}
|
||||||
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||||
|
|
||||||
$langs->loadLangs(array("main", "cashdesk", "companies"));
|
$langs->loadLangs(array("main", "bills", "cashdesk", "companies"));
|
||||||
|
|
||||||
$place = (GETPOST('place', 'aZ09') ? GETPOST('place', 'aZ09') : 0); // $place is id of table for Bar or Restaurant
|
$place = (GETPOST('place', 'aZ09') ? GETPOST('place', 'aZ09') : 0); // $place is id of table for Bar or Restaurant
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ if (empty($user->rights->takepos->run)) {
|
|||||||
top_httphead('text/html');
|
top_httphead('text/html');
|
||||||
|
|
||||||
if ($place > 0) {
|
if ($place > 0) {
|
||||||
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."facture where ref='(PROV-POS".$_SESSION["takeposterminal"]."-".$place.")'";
|
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."facture where ref='(PROV-POS".$db->escape($_SESSION["takeposterminal"]."-".$place).")'";
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
if ($obj) {
|
if ($obj) {
|
||||||
@ -79,6 +79,7 @@ $object = new Facture($db);
|
|||||||
$object->fetch($facid);
|
$object->fetch($facid);
|
||||||
|
|
||||||
// Call to external receipt modules if exist
|
// Call to external receipt modules if exist
|
||||||
|
$parameters = array();
|
||||||
$hookmanager->initHooks(array('takeposfrontend'), $facid);
|
$hookmanager->initHooks(array('takeposfrontend'), $facid);
|
||||||
$reshook = $hookmanager->executeHooks('TakeposReceipt', $parameters, $object);
|
$reshook = $hookmanager->executeHooks('TakeposReceipt', $parameters, $object);
|
||||||
if (!empty($hookmanager->resPrint)) {
|
if (!empty($hookmanager->resPrint)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user