30require_once DOL_DOCUMENT_ROOT.
'/core/class/commonobject.class.php';
41 public $element =
'stock';
46 public $table_element =
'entrepot';
51 public $picto =
'stock';
115 public $warehouse_usage;
160 public $fields = array(
161 'rowid' => array(
'type' =>
'integer',
'label' =>
'ID',
'enabled' => 1,
'visible' => 0,
'notnull' => 1,
'position' => 10),
162 'entity' => array(
'type' =>
'integer',
'label' =>
'Entity',
'enabled' => 1,
'visible' => 0,
'default' =>
'1',
'notnull' => 1,
'index' => 1,
'position' => 15),
163 'ref' => array(
'type' =>
'varchar(255)',
'label' =>
'Ref',
'enabled' => 1,
'visible' => 1,
'showoncombobox' => 1,
'position' => 25,
'searchall' => 1),
164 'description' => array(
'type' =>
'text',
'label' =>
'Description',
'enabled' => 1,
'visible' => -2,
'position' => 35,
'searchall' => 1),
165 'lieu' => array(
'type' =>
'varchar(64)',
'label' =>
'LocationSummary',
'enabled' => 1,
'visible' => 1,
'position' => 40,
'showoncombobox' => 2,
'searchall' => 1),
166 'fk_parent' => array(
'type' =>
'integer:Entrepot:product/stock/class/entrepot.class.php:1:((statut:=:1) AND (entity:IN:__SHARED_ENTITIES__))',
'label' =>
'ParentWarehouse',
'enabled' => 1,
'visible' => -2,
'position' => 41),
167 'fk_project' => array(
'type' =>
'integer:Project:projet/class/project.class.php:1:(fk_statut:=:1)',
'label' =>
'Project',
'enabled' =>
'$conf->project->enabled',
'visible' => -1,
'position' => 42),
168 'address' => array(
'type' =>
'varchar(255)',
'label' =>
'Address',
'enabled' => 1,
'visible' => -2,
'position' => 45,
'searchall' => 1),
169 'zip' => array(
'type' =>
'varchar(10)',
'label' =>
'Zip',
'enabled' => 1,
'visible' => -2,
'position' => 50,
'searchall' => 1),
170 'town' => array(
'type' =>
'varchar(50)',
'label' =>
'Town',
'enabled' => 1,
'visible' => -2,
'position' => 55,
'searchall' => 1),
171 'fk_departement' => array(
'type' =>
'integer',
'label' =>
'State',
'enabled' => 1,
'visible' => 0,
'position' => 60),
172 'fk_pays' => array(
'type' =>
'integer:Ccountry:core/class/ccountry.class.php',
'label' =>
'Country',
'enabled' => 1,
'visible' => -1,
'position' => 65),
173 'phone' => array(
'type' =>
'varchar(20)',
'label' =>
'Phone',
'enabled' => 1,
'visible' => -2,
'position' => 70,
'searchall' => 1),
174 'fax' => array(
'type' =>
'varchar(20)',
'label' =>
'Fax',
'enabled' => 1,
'visible' => -2,
'position' => 75,
'searchall' => 1),
176 'datec' => array(
'type' =>
'datetime',
'label' =>
'DateCreation',
'enabled' => 1,
'visible' => -2,
'position' => 300),
177 'tms' => array(
'type' =>
'timestamp',
'label' =>
'DateModification',
'enabled' => 1,
'visible' => -2,
'notnull' => 1,
'position' => 301),
178 'warehouse_usage' => array(
'type' =>
'integer',
'label' =>
'WarehouseUsage',
'enabled' =>
'getDolGlobalInt("MAIN_FEATURES_LEVEL")',
'visible' => 1,
'position' => 400,
'default' => 1,
'arrayofkeyval' => array(1 =>
'InternalWarehouse', 2 =>
'ExternalWarehouse')),
181 'statut' => array(
'type' =>
'tinyint(4)',
'label' =>
'Status',
'enabled' => 1,
'visible' => 1,
'position' => 500,
'css' =>
'minwidth50'),
217 $this->ismultientitymanaged = 1;
235 public function create($user, $notrigger = 0)
241 $this->label = trim($this->label);
244 if ($this->label ==
'') {
245 $this->error =
"ErrorFieldRequired";
253 $sql =
"INSERT INTO ".$this->db->prefix().
"entrepot (ref, entity, datec, fk_user_author, fk_parent, fk_project)";
254 $sql .=
" VALUES ('".$this->db->escape($this->label).
"', ".((int) $conf->entity).
", '".$this->db->idate($now).
"', ".((int) $user->id).
", ".($this->fk_parent > 0 ? ((int) $this->fk_parent) :
"NULL").
", ".($this->fk_project > 0 ? ((
int) $this->fk_project) :
"NULL").
")";
256 dol_syslog(get_class($this).
"::create", LOG_DEBUG);
257 $result = $this->db->query($sql);
259 $id = $this->db->last_insert_id($this->db->prefix().
"entrepot");
264 $result = $this->
update($id, $user);
278 if (!$error && !$notrigger) {
280 $result = $this->
call_trigger(
'WAREHOUSE_CREATE', $user);
291 dol_syslog(get_class($this).
"::create return -3");
292 $this->db->rollback();
296 $this->error =
"Failed to get insert id";
297 dol_syslog(get_class($this).
"::create return -2");
301 $this->error = $this->db->error();
302 dol_syslog(get_class($this).
"::create Error ".$this->db->error());
303 $this->db->rollback();
316 public function update($id, $user, $notrigger = 0)
325 if (!empty($this->fk_parent)) {
326 $TChildWarehouses = array($id);
328 if (in_array($this->fk_parent, $TChildWarehouses)) {
329 $this->error =
'ErrorCannotAddThisParentWarehouse';
334 $this->label = trim($this->label);
338 $this->lieu = trim($this->lieu);
340 $this->address = trim($this->address);
341 $this->zip = trim($this->zip);
342 $this->town = trim($this->town);
343 $this->country_id = ($this->country_id > 0 ? $this->country_id : 0);
345 $sql =
"UPDATE ".$this->db->prefix().
"entrepot";
346 $sql .=
" SET ref = '".$this->db->escape($this->label).
"'";
347 $sql .=
", fk_parent = ".(($this->fk_parent > 0) ? $this->fk_parent :
"NULL");
348 $sql .=
", fk_project = ".(($this->fk_project > 0) ? $this->fk_project :
"NULL");
349 $sql .=
", description = '".$this->db->escape($this->
description).
"'";
350 $sql .=
", statut = ".((int) $this->
statut);
351 $sql .=
", lieu = '".$this->db->escape($this->lieu).
"'";
352 $sql .=
", address = '".$this->db->escape($this->address).
"'";
353 $sql .=
", zip = '".$this->db->escape($this->zip).
"'";
354 $sql .=
", town = '".$this->db->escape($this->town).
"'";
355 $sql .=
", fk_pays = ".((int) $this->country_id);
356 $sql .=
", phone = '".$this->db->escape($this->phone).
"'";
357 $sql .=
", fax = '".$this->db->escape($this->fax).
"'";
358 $sql .=
" WHERE rowid = ".((int) $id);
362 dol_syslog(get_class($this).
"::update", LOG_DEBUG);
363 $resql = $this->db->query($sql);
367 $this->errors[] =
"Error ".$this->db->lasterror();
377 if (!$error && !$notrigger) {
379 $result = $this->
call_trigger(
'WAREHOUSE_MODIFY', $user);
390 $this->db->rollback();
391 $this->error = $this->db->lasterror();
404 public function delete($user, $notrigger = 0)
410 dol_syslog(get_class($this).
"::delete id=".$this->
id, LOG_DEBUG);
414 if (!$error && empty($notrigger)) {
416 $result = $this->
call_trigger(
'WAREHOUSE_DELETE', $user);
424 $sql =
"DELETE FROM ".$this->db->prefix().
"product_batch";
425 $sql .=
" WHERE fk_product_stock IN (SELECT rowid FROM ".$this->db->prefix().
"product_stock as ps WHERE ps.fk_entrepot = ".((int) $this->
id).
")";
426 $result = $this->db->query($sql);
429 $this->errors[] = $this->db->lasterror();
434 $elements = array(
'stock_mouvement',
'product_stock');
435 foreach ($elements as $table) {
437 $sql =
"DELETE FROM ".$this->db->prefix().$table;
438 $sql .=
" WHERE fk_entrepot = ".((int) $this->
id);
440 $result = $this->db->query($sql);
443 $this->errors[] = $this->db->lasterror();
454 dol_syslog(get_class($this).
"::delete Error ".$this->error, LOG_ERR);
459 $sql =
"DELETE FROM ".$this->db->prefix().
"entrepot";
460 $sql .=
" WHERE rowid = ".((int) $this->
id);
461 $resql1 = $this->db->query($sql);
464 $this->errors[] = $this->db->lasterror();
465 dol_syslog(get_class($this).
"::delete Error ".$this->db->lasterror(), LOG_ERR);
471 $sql =
"UPDATE ".$this->db->prefix().
"product as p SET stock = (SELECT SUM(ps.reel) FROM ".$this->db->prefix().
"product_stock as ps WHERE ps.fk_product = p.rowid)";
472 $resql2 = $this->db->query($sql);
475 $this->errors[] = $this->db->lasterror();
476 dol_syslog(get_class($this).
"::delete Error ".$this->db->lasterror(), LOG_ERR);
484 $this->db->rollback();
497 public function fetch($id, $ref =
'')
501 dol_syslog(get_class($this).
"::fetch id=".$id.
" ref=".$ref);
505 $this->error =
'ErrorWrongParameters';
506 dol_syslog(get_class($this).
"::fetch ".$this->error);
510 $sql =
"SELECT rowid, entity, fk_parent, fk_project, ref as label, description, statut, lieu, address, zip, town, fk_pays as country_id, phone, fax,";
511 $sql .=
" model_pdf, import_key";
512 $sql .=
" FROM ".$this->db->prefix().
"entrepot";
514 $sql .=
" WHERE rowid = ".((int) $id);
516 $sql .=
" WHERE entity IN (".getEntity(
'stock').
")";
518 $sql .=
" AND ref = '".$this->db->escape($ref).
"'";
522 $result = $this->db->query($sql);
524 if ($this->db->num_rows($result) > 0) {
525 $obj = $this->db->fetch_object($result);
527 $this->
id = $obj->rowid;
528 $this->entity = $obj->entity;
529 $this->fk_parent = $obj->fk_parent;
530 $this->fk_project = $obj->fk_project;
531 $this->
ref = $obj->label;
532 $this->label = $obj->label;
534 $this->
statut = $obj->statut;
535 $this->lieu = $obj->lieu;
536 $this->address = $obj->address;
537 $this->zip = $obj->zip;
538 $this->town = $obj->town;
539 $this->country_id = $obj->country_id;
540 $this->phone = $obj->phone;
541 $this->fax = $obj->fax;
543 $this->model_pdf = $obj->model_pdf;
544 $this->import_key = $obj->import_key;
550 include_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
552 $this->country = $tmp[
'label'];
553 $this->country_code = $tmp[
'code'];
557 $this->error =
"Record Not Found";
561 $this->error = $this->db->error();
575 $sql =
"SELECT e.rowid, e.datec, e.tms as datem, e.fk_user_author";
576 $sql .=
" FROM ".$this->db->prefix().
"entrepot as e";
577 $sql .=
" WHERE e.rowid = ".((int) $id);
579 dol_syslog(get_class($this).
"::info", LOG_DEBUG);
580 $result = $this->db->query($sql);
582 if ($this->db->num_rows($result)) {
583 $obj = $this->db->fetch_object($result);
585 $this->
id = $obj->rowid;
587 $this->user_creation_id = $obj->fk_user_author;
588 $this->date_creation = $this->db->jdate($obj->datec);
589 $this->date_modification = empty($obj->datem) ?
'' : $this->db->jdate($obj->datem);
592 $this->db->free($result);
611 $sql =
"SELECT rowid, ref as label";
612 $sql .=
" FROM ".$this->db->prefix().
"entrepot";
613 $sql .=
" WHERE entity IN (".getEntity(
'stock').
")";
614 $sql .=
" AND statut = ".((int) $status);
616 $result = $this->db->query($sql);
618 $num = $this->db->num_rows($result);
621 $row = $this->db->fetch_row($result);
622 $liste[$row[0]] = $row[1];
625 $this->db->free($result);
641 $sql =
"SELECT count(distinct p.rowid) as nb";
642 $sql .=
" FROM ".$this->db->prefix().
"product_stock as ps";
643 $sql .=
", ".$this->db->prefix().
"product as p";
644 $sql .=
" WHERE ps.fk_entrepot = ".((int) $this->
id);
645 $sql .=
" AND ps.fk_product = p.rowid";
648 $result = $this->db->query($sql);
650 $obj = $this->db->fetch_object($result);
651 $ret[
'nb'] = $obj->nb;
652 $this->db->free($result);
654 $this->error = $this->db->lasterror();
674 $separatedPMP =
false;
676 $separatedPMP =
true;
680 $sql =
"SELECT sum(ps.reel) as nb, sum(ps.reel * pa.pmp) as value";
682 $sql =
"SELECT sum(ps.reel) as nb, sum(ps.reel * p.pmp) as value";
684 $sql .=
" FROM ".$this->db->prefix().
"product_stock as ps";
685 $sql .=
", ".$this->db->prefix().
"product as p";
687 $sql .=
", ".$this->db->prefix().
"product_perentity as pa";
689 $sql .=
" WHERE ps.fk_entrepot = ".((int) $this->
id);
691 $sql .=
" AND pa.fk_product = p.rowid AND pa.entity = ". (int) $conf->entity;
693 $sql .=
" AND ps.fk_product = p.rowid";
695 $result = $this->db->query($sql);
697 $obj = $this->db->fetch_object($result);
698 $ret[
'nb'] = $obj->nb;
699 $ret[
'value'] = $obj->value;
700 $this->db->free($result);
702 $this->error = $this->db->lasterror();
733 $statusType =
'status5';
735 $statusType =
'status4';
738 $langs->load(
'stocks');
739 $label = $langs->transnoentitiesnoconv($this->labelStatus[$status]);
740 $labelshort = $langs->transnoentitiesnoconv($this->labelStatus[$status]);
742 return dolGetStatus($label, $labelshort,
'', $statusType, $mode);
754 global $conf, $langs, $user;
756 $langs->load(
'stocks');
760 $option = $params[
'option'] ??
'';
761 $nofetch = !empty($params[
'nofetch']);
764 return [
'optimize' => $langs->trans(
"Warehouse")];
766 $datas[
'picto'] =
img_picto(
'', $this->picto).
' <u class="paddingrightonly">'.$langs->trans(
"Warehouse").
'</u>';
767 if (isset($this->
statut)) {
768 $datas[
'picto'] .=
' '.$this->getLibStatut(5);
770 $datas[
'ref'] =
'<br><b>'.$langs->trans(
'Ref').
':</b> '.(empty($this->
ref) ? $this->label : $this->ref);
771 if (!empty($this->lieu)) {
772 $datas[
'locationsummary'] =
'<br><b>'.$langs->trans(
'LocationSummary').
':</b> '.$this->lieu;
775 if (!$nofetch && isModEnabled(
'category')) {
776 require_once DOL_DOCUMENT_ROOT .
'/categories/class/categorie.class.php';
777 $form =
new Form($this->db);
778 $datas[
'categories_warehouse'] =
'<br>' . $form->showCategories($this->
id, Categorie::TYPE_WAREHOUSE, 1, 1);
795 public function getNomUrl($withpicto = 0, $option =
'', $showfullpath = 0, $notooltip = 0, $morecss =
'', $save_lastsearch_value = -1)
797 global $conf, $langs, $hookmanager;
798 $langs->load(
"stocks");
800 if (!empty($conf->dol_no_mouse_hover)) {
811 'objecttype' => $this->element,
815 $classfortooltip =
'classfortooltip';
818 $classfortooltip =
'classforajaxtooltip';
819 $dataparams =
' data-params="'.dol_escape_htmltag(json_encode($params)).
'"';
820 $label =
'ToComplete';
825 $url = DOL_URL_ROOT.
'/product/stock/card.php?id='.$this->id;
827 if ($option !=
'nolink') {
829 $add_save_lastsearch_values = ($save_lastsearch_value == 1 ? 1 : 0);
830 if ($save_lastsearch_value == -1 && isset($_SERVER[
"PHP_SELF"]) && preg_match(
'/list\.php/', $_SERVER[
"PHP_SELF"])) {
831 $add_save_lastsearch_values = 1;
833 if ($add_save_lastsearch_values) {
834 $url .=
'&save_lastsearch_values=1';
839 if (empty($notooltip)) {
841 $label = $langs->trans(
"Warehouse");
842 $linkclose .=
' alt="'.dol_escape_htmltag($label, 1).
'"';
844 $linkclose .= ($label ?
' title="'.dol_escape_htmltag($label, 1).
'"' :
' title="tocomplete"');
845 $linkclose .= $dataparams.
' class="'.$classfortooltip.
'"';
848 $linkstart =
'<a href="'.$url.
'"';
849 $linkstart .= $linkclose.
'>';
852 $result .= $linkstart;
854 $result .=
img_object(($notooltip ?
'' : $label), ($this->picto ? $this->picto :
'generic'), ($notooltip ? (($withpicto != 2) ?
'class="paddingright"' :
'') :
'class="'.(($withpicto != 2) ?
'paddingright ' :
'').
'"'), 0, 0, $notooltip ? 0 : 1);
856 if ($withpicto != 2) {
862 $hookmanager->initHooks(array(
'warehousedao'));
863 $parameters = array(
'id' => $this->
id,
'getnomurl' => &$result,
'withpicto' => $withpicto,
'option' => $option,
'showfullpath' => $showfullpath,
'notooltip' => $notooltip);
864 $reshook = $hookmanager->executeHooks(
'getNomUrl', $parameters, $this, $action);
866 $result = $hookmanager->resPrint;
868 $result .= $hookmanager->resPrint;
883 global $user, $langs, $conf, $mysoc;
889 $this->label =
'WAREHOUSE SPECIMEN';
890 $this->
description =
'WAREHOUSE SPECIMEN '.dol_print_date($now,
'dayhourlog');
894 $this->lieu =
'Location test';
895 $this->address =
'21 jump street';
896 $this->zip =
'99999';
897 $this->town =
'MyTown';
898 $this->country_id = 1;
899 $this->country_code =
'FR';
913 $TArbo = array($this->label);
917 $warehousetmp =
new Entrepot($this->db);
919 $parentid = $this->fk_parent;
921 while ($parentid > 0 && $i < $protection) {
922 $sql =
"SELECT fk_parent FROM ".$this->db->prefix().
"entrepot";
923 $sql .=
" WHERE rowid = ".((int) $parentid);
925 $resql = $this->db->query($sql);
927 $objarbo = $this->db->fetch_object($resql);
929 $warehousetmp->fetch($parentid);
930 $TArbo[] = $warehousetmp->label;
931 $parentid = $objarbo->fk_parent;
942 return implode(
' >> ', array_reverse($TArbo));
958 FROM ".$this->db->prefix().
"entrepot
959 WHERE fk_parent = ".((int) $id);
961 $resql = $this->db->query($sql);
963 while ($res = $this->db->fetch_object($resql)) {
964 $TChildWarehouses[] = $res->rowid;
969 return $TChildWarehouses;
982 public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
984 global $conf, $user, $langs;
986 $langs->load(
"stocks");
987 $outputlangs->load(
"products");
990 $modele =
'standard';
992 if ($this->model_pdf) {
993 $modele = $this->model_pdf;
999 $modelpath =
"core/modules/stock/doc/";
1001 return $this->
commonGenerateDocument($modelpath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref);
1016 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
1017 return parent::setCategoriesCommon($categories, Categorie::TYPE_WAREHOUSE);
1029 $selected = (empty($arraydata[
'selected']) ? 0 : $arraydata[
'selected']);
1031 $return =
'<div class="box-flex-item box-flex-grow-zero">';
1032 $return .=
'<div class="info-box info-box-sm">';
1033 $return .=
'<div class="info-box-icon bg-infobox-action" >';
1035 $return .=
'</div>';
1036 $return .=
'<div class="info-box-content" >';
1037 $return .=
'<span class="info-box-ref inline-block tdoverflowmax150 valignmiddle">'.(method_exists($this,
'getNomUrl') ? $this->
getNomUrl() : $this->ref).
'</span>';
1038 if ($selected >= 0) {
1039 $return .=
'<input id="cb'.$this->id.
'" class="flat checkforselect fright" type="checkbox" name="toselect[]" value="'.$this->
id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1041 if (property_exists($this,
'lieu') && (!empty($this->lieu))) {
1042 $return .=
'<br><span class="info-box-label opacitymedium">'.$this->lieu.
'</span>';
1044 if (property_exists($this,
'sellvalue') && $this->sellvalue != 0) {
1045 $return .=
'<br><span class="info-box-label amount">'.price($this->sellvalue).
'</span>';
1047 if (method_exists($this,
'getLibStatut')) {
1048 $return .=
'<br><div class="info-box-status">'.$this->getLibStatut(3).
'</div>';
1050 $return .=
'</div>';
1051 $return .=
'</div>';
1052 $return .=
'</div>';
Parent class of all other business classes (invoices, contracts, proposals, orders,...
fetch_optionals($rowid=null, $optionsArray=null)
Function to get extra fields of an object into $this->array_options This method is in most cases call...
commonGenerateDocument($modelspath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref, $moreparams=null)
Common function for all objects extending CommonObject for generating documents.
deleteExtraFields()
Delete all extra fields values for the current object.
insertExtraFields($trigger='', $userused=null)
Add/Update all extra fields values for the current object.
call_trigger($triggerName, $user)
Call trigger based on this instance.
Class to manage warehouses.
const STATUS_OPEN_INTERNAL
Warehouse open and only operations for stock transfers/corrections allowed (not for customer shipping...
nb_different_products()
Return number of unique different product into a warehouse.
fetch($id, $ref='')
Load warehouse data.
get_children_warehouses($id, &$TChildWarehouses)
Return array of children warehouses ids from $id warehouse (recursive function)
getLibStatut($mode=0)
Return label of status of object.
LibStatut($status, $mode=0)
Return label of a given status.
const STATUS_OPENEXT_ALL
Warehouse open and any operations are allowed, but warehouse is not included into calculation of stoc...
generateDocument($modele, $outputlangs, $hidedetails=0, $hidedesc=0, $hideref=0)
Create object on disk.
getNomUrl($withpicto=0, $option='', $showfullpath=0, $notooltip=0, $morecss='', $save_lastsearch_value=-1)
Return clickable name (possibility with the pictogram)
setCategories($categories)
Sets object to supplied categories.
initAsSpecimen()
Initialise an instance with random values.
info($id)
Load warehouse info data.
nb_products()
Return stock and value of warehosue.
const STATUS_OPEN_ALL
Warehouse open and any operations are allowed (customer shipping, supplier dispatch,...
create($user, $notrigger=0)
Creation d'un entrepot en base.
update($id, $user, $notrigger=0)
Update properties of a warehouse.
getTooltipContentArray($params)
getTooltipContentArray
list_array($status=1)
Return list of all warehouses.
get_full_arbo()
Return full path to current warehouse.
__construct($db)
Constructor.
getKanbanView($option='', $arraydata=null)
Return clicable link of object (with eventually picto)
const STATUS_CLOSED
Warehouse closed, inactive.
getCountry($searchkey, $withcode='', $dbtouse=null, $outputlangs=null, $entconv=1, $searchlabel='')
Return country label, code or id from an id, code or label.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
dol_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
publicphonebutton2 phonegreen basiclayout basiclayout TotalHT VATCode TotalVAT TotalLT1 TotalLT2 TotalTTC TotalHT clearboth nowraponall TAKEPOS_SHOW_SUBPRICE right right right takeposterminal SELECT e e e e e statut