mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Debug v21
This commit is contained in:
parent
2388da4e31
commit
f5ef2eee49
|
|
@ -269,6 +269,7 @@ class modTakePos extends DolibarrModules
|
|||
public function init($options = '')
|
||||
{
|
||||
global $conf, $langs, $user, $mysoc;
|
||||
|
||||
$langs->load("cashdesk");
|
||||
|
||||
dolibarr_set_const($this->db, "TAKEPOS_PRINT_METHOD", "browser", 'chaine', 0, '', $conf->entity);
|
||||
|
|
@ -301,7 +302,7 @@ class modTakePos extends DolibarrModules
|
|||
$categories = new Categorie($this->db);
|
||||
$cate_arbo = $categories->get_full_arbo('product', 0, 1);
|
||||
if (is_array($cate_arbo)) {
|
||||
if (!count($cate_arbo) || !getDolGlobalString('TAKEPOS_ROOT_CATEGORY_ID')) {
|
||||
if (!count($cate_arbo) || (!getDolGlobalString('TAKEPOS_ROOT_CATEGORY_ID') || getDolGlobalString('TAKEPOS_ROOT_CATEGORY_ID') == '-1')) {
|
||||
$category = new Categorie($this->db);
|
||||
|
||||
$category->label = $langs->trans("DefaultPOSCatLabel");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user