Fix add of a table in floor for Bar and Restaurant
This commit is contained in:
parent
ef182e4155
commit
8998e4c6a3
@ -59,4 +59,5 @@ OrderNotes=Order Notes
|
|||||||
CashDeskBankAccountFor=Default account to use for payments in
|
CashDeskBankAccountFor=Default account to use for payments in
|
||||||
NoPaimementModesDefined=No paiment mode defined in TakePOS configuration
|
NoPaimementModesDefined=No paiment mode defined in TakePOS configuration
|
||||||
TicketVatGrouped=Group VAT by rate in tickets
|
TicketVatGrouped=Group VAT by rate in tickets
|
||||||
AutoPrintTickets=Automatically print tickets
|
AutoPrintTickets=Automatically print tickets
|
||||||
|
EnableBarOrRestaurantFeatures=Enable features for Bar or Restaurant
|
||||||
@ -64,7 +64,7 @@ if (GETPOST('action', 'alpha') == 'set')
|
|||||||
if (GETPOST('socid', 'int') < 0) $_POST["socid"]='';
|
if (GETPOST('socid', 'int') < 0) $_POST["socid"]='';
|
||||||
|
|
||||||
$res = dolibarr_set_const($db, "CASHDESK_ID_THIRDPARTY", (GETPOST('socid', 'int') > 0 ? GETPOST('socid', 'int') : ''), 'chaine', 0, '', $conf->entity);
|
$res = dolibarr_set_const($db, "CASHDESK_ID_THIRDPARTY", (GETPOST('socid', 'int') > 0 ? GETPOST('socid', 'int') : ''), 'chaine', 0, '', $conf->entity);
|
||||||
|
|
||||||
$res = dolibarr_set_const($db, "CASHDESK_ID_BANKACCOUNT_CASH", (GETPOST('CASHDESK_ID_BANKACCOUNT_CASH', 'alpha') > 0 ? GETPOST('CASHDESK_ID_BANKACCOUNT_CASH', 'alpha') : ''), 'chaine', 0, '', $conf->entity);
|
$res = dolibarr_set_const($db, "CASHDESK_ID_BANKACCOUNT_CASH", (GETPOST('CASHDESK_ID_BANKACCOUNT_CASH', 'alpha') > 0 ? GETPOST('CASHDESK_ID_BANKACCOUNT_CASH', 'alpha') : ''), 'chaine', 0, '', $conf->entity);
|
||||||
$res = dolibarr_set_const($db, "CASHDESK_ID_BANKACCOUNT_CHEQUE", (GETPOST('CASHDESK_ID_BANKACCOUNT_CHEQUE', 'alpha') > 0 ? GETPOST('CASHDESK_ID_BANKACCOUNT_CHEQUE', 'alpha') : ''), 'chaine', 0, '', $conf->entity);
|
$res = dolibarr_set_const($db, "CASHDESK_ID_BANKACCOUNT_CHEQUE", (GETPOST('CASHDESK_ID_BANKACCOUNT_CHEQUE', 'alpha') > 0 ? GETPOST('CASHDESK_ID_BANKACCOUNT_CHEQUE', 'alpha') : ''), 'chaine', 0, '', $conf->entity);
|
||||||
$res = dolibarr_set_const($db, "CASHDESK_ID_BANKACCOUNT_CB", (GETPOST('CASHDESK_ID_BANKACCOUNT_CB', 'alpha') > 0 ? GETPOST('CASHDESK_ID_BANKACCOUNT_CB', 'alpha') : ''), 'chaine', 0, '', $conf->entity);
|
$res = dolibarr_set_const($db, "CASHDESK_ID_BANKACCOUNT_CB", (GETPOST('CASHDESK_ID_BANKACCOUNT_CB', 'alpha') > 0 ? GETPOST('CASHDESK_ID_BANKACCOUNT_CB', 'alpha') : ''), 'chaine', 0, '', $conf->entity);
|
||||||
@ -177,7 +177,8 @@ if ($conf->global->TAKEPOSCONNECTOR){
|
|||||||
|
|
||||||
// Bar Restaurant mode
|
// Bar Restaurant mode
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print 'Bar Restaurant';
|
print $langs->trans("EnableBarOrRestaurantFeatures");
|
||||||
|
print '</td>';
|
||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
print $form->selectyesno("TAKEPOS_BAR_RESTAURANT", $conf->global->TAKEPOS_BAR_RESTAURANT, 1);
|
print $form->selectyesno("TAKEPOS_BAR_RESTAURANT", $conf->global->TAKEPOS_BAR_RESTAURANT, 1);
|
||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
@ -276,7 +277,7 @@ if (! empty($conf->banque->enabled))
|
|||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
$form->select_comptes($conf->global->CASHDESK_ID_BANKACCOUNT_CB, 'CASHDESK_ID_BANKACCOUNT_CB', 0, "courant=1", 1);
|
$form->select_comptes($conf->global->CASHDESK_ID_BANKACCOUNT_CB, 'CASHDESK_ID_BANKACCOUNT_CB', 0, "courant=1", 1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
foreach($paiements as $modep) {
|
foreach($paiements as $modep) {
|
||||||
if (in_array($modep->code, array('LIQ', 'CB', 'CHQ'))) continue;
|
if (in_array($modep->code, array('LIQ', 'CB', 'CHQ'))) continue;
|
||||||
$name="CASHDESK_ID_BANKACCOUNT_".$modep->code;
|
$name="CASHDESK_ID_BANKACCOUNT_".$modep->code;
|
||||||
|
|||||||
@ -25,8 +25,6 @@ if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1');
|
|||||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
|
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
|
||||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
||||||
|
|
||||||
$_GET['theme']="md"; // Force theme. MD theme provides better look and feel to TakePOS
|
|
||||||
|
|
||||||
require '../main.inc.php'; // Load $user and permissions
|
require '../main.inc.php'; // Load $user and permissions
|
||||||
|
|
||||||
$langs->loadLangs(array("bills","orders","commercial","cashdesk"));
|
$langs->loadLangs(array("bills","orders","commercial","cashdesk"));
|
||||||
@ -69,7 +67,8 @@ if ($action=="updatename")
|
|||||||
|
|
||||||
if ($action=="add")
|
if ($action=="add")
|
||||||
{
|
{
|
||||||
$asdf=$db->query("insert into ".MAIN_DB_PREFIX."takepos_floor_tables values ('', '', '', '45', '45', $floor)");
|
$sql="INSERT INTO ".MAIN_DB_PREFIX."takepos_floor_tables(entity, label, leftpos, toppos, floor) VALUES (".$conf->entity.", '', '45', '45', ".$floor.")";
|
||||||
|
$asdf=$db->query($sql);
|
||||||
$db->query("update ".MAIN_DB_PREFIX."takepos_floor_tables set label=rowid where label=''"); // No empty table names
|
$db->query("update ".MAIN_DB_PREFIX."takepos_floor_tables set label=rowid where label=''"); // No empty table names
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +170,13 @@ $( document ).ready(function() {
|
|||||||
|
|
||||||
<div style="position: absolute; left: 25%; bottom: 8%; width:50%; height:3%;">
|
<div style="position: absolute; left: 25%; bottom: 8%; width:50%; height:3%;">
|
||||||
<center>
|
<center>
|
||||||
<h1><img src="./img/arrow-prev.png" width="5%" onclick="location.href='floors.php?floor=<?php if ($floor>1) { $floor--; echo $floor; $floor++;} else echo "1"; ?>';"><?php echo $langs->trans("Floor")." ".$floor; ?><img src="./img/arrow-next.png" width="5%" onclick="location.href='floors.php?floor=<?php $floor++; echo $floor; ?>';"></h1>
|
<h1>
|
||||||
|
<?php if ($floor>1) { ?>
|
||||||
|
<img class="valignmiddle" src="./img/arrow-prev.png" width="5%" onclick="location.href='floors.php?floor=<?php if ($floor>1) { $floor--; echo $floor; $floor++;} else echo "1"; ?>';">
|
||||||
|
<?php } ?>
|
||||||
|
<span class="valignmiddle"><?php echo $langs->trans("Floor")." ".$floor; ?></span>
|
||||||
|
<img src="./img/arrow-next.png" class="valignmiddle" width="5%" onclick="location.href='floors.php?floor=<?php $floor++; echo $floor; ?>';">
|
||||||
|
</h1>
|
||||||
</center>
|
</center>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@ -31,8 +31,6 @@ if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1');
|
|||||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
|
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
|
||||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
||||||
|
|
||||||
//$_GET['theme']="md"; // Force theme. MD theme provides better look and feel to TakePOS
|
|
||||||
|
|
||||||
require '../main.inc.php'; // Load $user and permissions
|
require '../main.inc.php'; // Load $user and permissions
|
||||||
require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
|
||||||
|
|
||||||
|
|||||||
@ -26,8 +26,6 @@ if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1');
|
|||||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
|
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
|
||||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
||||||
|
|
||||||
//$_GET['theme']="md"; // Force theme. MD theme provides better look and feel to TakePOS
|
|
||||||
|
|
||||||
require '../main.inc.php'; // Load $user and permissions
|
require '../main.inc.php'; // Load $user and permissions
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user