Add some font awesome icons on buttons
This commit is contained in:
parent
80f7cef0a8
commit
1818e22be9
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/takepos/customers.php
|
* \file htdocs/takepos/customers.php
|
||||||
* \ingroup societe
|
* \ingroup takepos
|
||||||
* \brief Page to show list of third parties. TODO Merge with societe/list.php
|
* \brief Page to show list of third parties. TODO Merge with societe/list.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -15,6 +15,12 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file htdocs/takepos/floors.php
|
||||||
|
* \ingroup takepos
|
||||||
|
* \brief Page to edit floors and tables.
|
||||||
|
*/
|
||||||
|
|
||||||
//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language
|
//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language
|
||||||
//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled cause need to load personalized language
|
//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled cause need to load personalized language
|
||||||
//if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
//if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||||
|
|||||||
@ -15,6 +15,12 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file htdocs/takepos/floors.php
|
||||||
|
* \ingroup takepos
|
||||||
|
* \brief Popup to enter a free line
|
||||||
|
*/
|
||||||
|
|
||||||
//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language
|
//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language
|
||||||
//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled cause need to load personalized language
|
//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled cause need to load personalized language
|
||||||
//if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
//if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||||
@ -33,7 +39,8 @@ $place = (GETPOST('place', 'int') > 0 ? GETPOST('place', 'int') : 0); // $plac
|
|||||||
$posnb = (GETPOST('posnb', 'int') > 0 ? GETPOST('posnb', 'int') : 0); // $posnb is id of POS
|
$posnb = (GETPOST('posnb', 'int') > 0 ? GETPOST('posnb', 'int') : 0); // $posnb is id of POS
|
||||||
|
|
||||||
$idline = GETPOST('idline', 'int');
|
$idline = GETPOST('idline', 'int');
|
||||||
$action = GETPOST('action');
|
$action = GETPOST('action', 'alpha');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
|
|||||||
@ -16,6 +16,12 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file htdocs/takepos/invoice.php
|
||||||
|
* \ingroup takepos
|
||||||
|
* \brief Page to generate section with list of lines
|
||||||
|
*/
|
||||||
|
|
||||||
// if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER', '1'); // Not disabled cause need to load personalized language
|
// if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER', '1'); // Not disabled cause need to load personalized language
|
||||||
// if (! defined('NOREQUIREDB')) define('NOREQUIREDB', '1'); // Not disabled cause need to load personalized language
|
// if (! defined('NOREQUIREDB')) define('NOREQUIREDB', '1'); // Not disabled cause need to load personalized language
|
||||||
// if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC', '1');
|
// if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC', '1');
|
||||||
@ -48,8 +54,8 @@ $amountofpayment = price2num(GETPOST('amount', 'alpha'));
|
|||||||
$invoiceid = GETPOST('invoiceid', 'int');
|
$invoiceid = GETPOST('invoiceid', 'int');
|
||||||
|
|
||||||
$paycode = $pay;
|
$paycode = $pay;
|
||||||
if ($pay == 'cash') $paycode = 'LIQ'; // For backward compatibility
|
if ($pay == 'cash') $paycode = 'LIQ'; // For backward compatibility
|
||||||
if ($pay == 'card') $paycode = 'CB'; // For backward compatibility
|
if ($pay == 'card') $paycode = 'CB'; // For backward compatibility
|
||||||
if ($pay == 'cheque') $paycode = 'CHQ'; // For backward compatibility
|
if ($pay == 'cheque') $paycode = 'CHQ'; // For backward compatibility
|
||||||
|
|
||||||
// Retrieve paiementid
|
// Retrieve paiementid
|
||||||
@ -477,9 +483,11 @@ if ($placeid > 0)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<tr class="drag drop oddeven"><td class="left"><span class="opacitymedium">'.$langs->trans("Empty").'</span></td><td></td><td></td><td></td></tr>';
|
print '<tr class="drag drop oddeven"><td class="left"><span class="opacitymedium">'.$langs->trans("Empty").'</span></td><td></td><td></td><td></td></tr>';
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else { // No invoice generated yet
|
||||||
|
print '<tr class="drag drop oddeven"><td class="left"><span class="opacitymedium">'.$langs->trans("Empty").'</span></td><td></td><td></td><td></td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,12 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file htdocs/takepos/floors.php
|
||||||
|
* \ingroup takepos
|
||||||
|
* \brief Page to show a receipt.
|
||||||
|
*/
|
||||||
|
|
||||||
require '../main.inc.php'; // Load $user and permissions
|
require '../main.inc.php'; // Load $user and permissions
|
||||||
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,12 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file htdocs/takepos/floors.php
|
||||||
|
* \ingroup takepos
|
||||||
|
* \brief Main TakePOS screen
|
||||||
|
*/
|
||||||
|
|
||||||
//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language
|
//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language
|
||||||
//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled cause need to load personalized language
|
//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled cause need to load personalized language
|
||||||
//if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
//if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||||
@ -493,17 +499,17 @@ if (count($maincategories)==0) {
|
|||||||
// User menu and external TakePOS modules
|
// User menu and external TakePOS modules
|
||||||
$menus = array();
|
$menus = array();
|
||||||
$r=0;
|
$r=0;
|
||||||
$menus[$r++]=array('title'=>$langs->trans("SearchProduct"),
|
$menus[$r++]=array('title'=>'<span class="fas fa-search paddingrightonly"></span>'.$langs->trans("SearchProduct"),
|
||||||
'action'=>'Search();');
|
'action'=>'Search();');
|
||||||
$menus[$r++]=array('title'=>$langs->trans("FreeZone"),
|
$menus[$r++]=array('title'=>$langs->trans("FreeZone"),
|
||||||
'action'=>'FreeZone();');
|
'action'=>'FreeZone();');
|
||||||
$menus[$r++]=array('title'=>$langs->trans("Customer"),
|
$menus[$r++]=array('title'=>'<span class="far fa-building paddingrightonly"></span>'.$langs->trans("Customer"),
|
||||||
'action'=>'Customer();');
|
'action'=>'Customer();');
|
||||||
$menus[$r++]=array('title'=>$langs->trans("BackOffice"),
|
$menus[$r++]=array('title'=>'<span class="fa fa-home paddingrightonly"></span>'.$langs->trans("BackOffice"),
|
||||||
'action'=>'window.open(\''.(DOL_URL_ROOT ? DOL_URL_ROOT : '/').'\', \'_backoffice\');');
|
'action'=>'window.open(\''.(DOL_URL_ROOT ? DOL_URL_ROOT : '/').'\', \'_backoffice\');');
|
||||||
$menus[$r++]=array('title'=>$langs->trans("DoPayment"),
|
$menus[$r++]=array('title'=>$langs->trans("DoPayment"),
|
||||||
'action'=>'CloseBill();');
|
'action'=>'CloseBill();');
|
||||||
$menus[$r++]=array('title'=>$langs->trans("Logout"),
|
$menus[$r++]=array('title'=>'<span class="fa fa-sign-out-alt paddingrightonly"></span>'.$langs->trans("Logout"),
|
||||||
'action'=>'window.location.href=\''.DOL_URL_ROOT.'/user/logout.php\';');
|
'action'=>'window.location.href=\''.DOL_URL_ROOT.'/user/logout.php\';');
|
||||||
|
|
||||||
// BAR RESTAURANT specific menu
|
// BAR RESTAURANT specific menu
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user