29require_once DOL_DOCUMENT_ROOT.
'/core/class/commonobject.class.php';
40 public $element =
'stock';
45 public $table_element =
'entrepot';
50 public $picto =
'stock';
55 public $ismultientitymanaged = 1;
119 public $labelStatus = array();
124 public $fields = array(
125 'rowid' =>array(
'type'=>
'integer',
'label'=>
'ID',
'enabled'=>1,
'visible'=>0,
'notnull'=>1,
'position'=>10),
126 'entity' =>array(
'type'=>
'integer',
'label'=>
'Entity',
'enabled'=>1,
'visible'=>0,
'default'=>1,
'notnull'=>1,
'index'=>1,
'position'=>15),
127 'ref' =>array(
'type'=>
'varchar(255)',
'label'=>
'Ref',
'enabled'=>1,
'visible'=>1,
'showoncombobox'=>1,
'position'=>25,
'searchall'=>1),
128 'description' =>array(
'type'=>
'text',
'label'=>
'Description',
'enabled'=>1,
'visible'=>-2,
'position'=>35,
'searchall'=>1),
129 'lieu' =>array(
'type'=>
'varchar(64)',
'label'=>
'LocationSummary',
'enabled'=>1,
'visible'=>1,
'position'=>40,
'showoncombobox'=>2,
'searchall'=>1),
130 '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),
131 'fk_project' =>array(
'type'=>
'integer:Project:projet/class/project.class.php:1:(fk_statut:=:1)',
'label'=>
'Project',
'enabled'=>
'$conf->project->enabled',
'visible'=>-1,
'position'=>25),
132 'address' =>array(
'type'=>
'varchar(255)',
'label'=>
'Address',
'enabled'=>1,
'visible'=>-2,
'position'=>45,
'searchall'=>1),
133 'zip' =>array(
'type'=>
'varchar(10)',
'label'=>
'Zip',
'enabled'=>1,
'visible'=>-2,
'position'=>50,
'searchall'=>1),
134 'town' =>array(
'type'=>
'varchar(50)',
'label'=>
'Town',
'enabled'=>1,
'visible'=>-2,
'position'=>55,
'searchall'=>1),
135 'fk_departement' =>array(
'type'=>
'integer',
'label'=>
'State',
'enabled'=>1,
'visible'=>0,
'position'=>60),
136 'fk_pays' =>array(
'type'=>
'integer:Ccountry:core/class/ccountry.class.php',
'label'=>
'Country',
'enabled'=>1,
'visible'=>-1,
'position'=>65),
137 'phone' =>array(
'type'=>
'varchar(20)',
'label'=>
'Phone',
'enabled'=>1,
'visible'=>-2,
'position'=>70,
'searchall'=>1),
138 'fax' =>array(
'type'=>
'varchar(20)',
'label'=>
'Fax',
'enabled'=>1,
'visible'=>-2,
'position'=>75,
'searchall'=>1),
140 'datec' =>array(
'type'=>
'datetime',
'label'=>
'DateCreation',
'enabled'=>1,
'visible'=>-2,
'position'=>300),
141 'tms' =>array(
'type'=>
'timestamp',
'label'=>
'DateModification',
'enabled'=>1,
'visible'=>-2,
'notnull'=>1,
'position'=>301),
142 'warehouse_usage' => array(
'type'=>
'integer',
'label' =>
'WarehouseUsage',
'enabled'=>
'getDolGlobalInt("MAIN_FEATURES_LEVEL")',
'visible'=>1,
'position'=>400,
'arrayofkeyval'=>array(1=>
'InternalWarehouse', 2=>
'ExternalWarehouse')),
145 'statut' =>array(
'type'=>
'tinyint(4)',
'label'=>
'Status',
'enabled'=>1,
'visible'=>1,
'position'=>500,
'css'=>
'minwidth50'),
196 public function create($user, $notrigger =
false)
202 $this->label = trim($this->label);
205 if ($this->label ==
'') {
206 $this->error =
"ErrorFieldRequired";
214 $sql =
"INSERT INTO ".$this->db->prefix().
"entrepot (ref, entity, datec, fk_user_author, fk_parent, fk_project)";
215 $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").
")";
217 dol_syslog(get_class($this).
"::create", LOG_DEBUG);
218 $result = $this->db->query($sql);
220 $id = $this->db->last_insert_id($this->db->prefix().
"entrepot");
225 $result = $this->
update($id, $user);
239 if (!$error && !$notrigger) {
241 $result = $this->
call_trigger(
'WAREHOUSE_CREATE', $user);
252 dol_syslog(get_class($this).
"::create return -3");
253 $this->db->rollback();
257 $this->error =
"Failed to get insert id";
258 dol_syslog(get_class($this).
"::create return -2");
262 $this->error = $this->db->error();
263 dol_syslog(get_class($this).
"::create Error ".$this->db->error());
264 $this->db->rollback();
277 public function update($id, $user, $notrigger =
false)
288 if (!empty($this->fk_parent)) {
289 $TChildWarehouses = array($id);
291 if (in_array($this->fk_parent, $TChildWarehouses)) {
292 $this->error =
'ErrorCannotAddThisParentWarehouse';
297 $this->label = trim($this->label);
301 $this->lieu = trim($this->lieu);
303 $this->address = trim($this->address);
304 $this->zip = trim($this->zip);
305 $this->town = trim($this->town);
306 $this->country_id = ($this->country_id > 0 ? $this->country_id : 0);
308 $sql =
"UPDATE ".$this->db->prefix().
"entrepot";
309 $sql .=
" SET ref = '".$this->db->escape($this->label).
"'";
310 $sql .=
", fk_parent = ".(($this->fk_parent > 0) ? $this->fk_parent :
"NULL");
311 $sql .=
", fk_project = ".(($this->fk_project > 0) ? $this->fk_project :
"NULL");
312 $sql .=
", description = '".$this->db->escape($this->
description).
"'";
313 $sql .=
", statut = ".((int) $this->
statut);
314 $sql .=
", lieu = '".$this->db->escape($this->lieu).
"'";
315 $sql .=
", address = '".$this->db->escape($this->address).
"'";
316 $sql .=
", zip = '".$this->db->escape($this->zip).
"'";
317 $sql .=
", town = '".$this->db->escape($this->town).
"'";
318 $sql .=
", fk_pays = ".((int) $this->country_id);
319 $sql .=
", phone = '".$this->db->escape($this->phone).
"'";
320 $sql .=
", fax = '".$this->db->escape($this->fax).
"'";
321 $sql .=
" WHERE rowid = ".((int) $id);
325 dol_syslog(get_class($this).
"::update", LOG_DEBUG);
326 $resql = $this->db->query($sql);
330 $this->errors[] =
"Error ".$this->db->lasterror();
340 if (!$error && !$notrigger) {
342 $result = $this->
call_trigger(
'WAREHOUSE_MODIFY', $user);
353 $this->db->rollback();
354 $this->error = $this->db->lasterror();
367 public function delete($user, $notrigger = 0)
373 dol_syslog(get_class($this).
"::delete id=".$this->
id, LOG_DEBUG);
377 if (!$error && empty($notrigger)) {
379 $result = $this->
call_trigger(
'WAREHOUSE_DELETE', $user);
387 $sql =
"DELETE FROM ".$this->db->prefix().
"product_batch";
388 $sql .=
" WHERE fk_product_stock IN (SELECT rowid FROM ".$this->db->prefix().
"product_stock as ps WHERE ps.fk_entrepot = ".((int) $this->
id).
")";
389 $result = $this->db->query($sql);
392 $this->errors[] = $this->db->lasterror();
397 $elements = array(
'stock_mouvement',
'product_stock');
398 foreach ($elements as $table) {
400 $sql =
"DELETE FROM ".$this->db->prefix().$table;
401 $sql .=
" WHERE fk_entrepot = ".((int) $this->
id);
403 $result = $this->db->query($sql);
406 $this->errors[] = $this->db->lasterror();
418 dol_syslog(get_class($this).
"::delete Error ".$this->error, LOG_ERR);
424 $sql =
"DELETE FROM ".$this->db->prefix().
"entrepot";
425 $sql .=
" WHERE rowid = ".((int) $this->
id);
426 $resql1 = $this->db->query($sql);
429 $this->errors[] = $this->db->lasterror();
430 dol_syslog(get_class($this).
"::delete Error ".$this->db->lasterror(), LOG_ERR);
436 $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)";
437 $resql2 = $this->db->query($sql);
440 $this->errors[] = $this->db->lasterror();
441 dol_syslog(get_class($this).
"::delete Error ".$this->db->lasterror(), LOG_ERR);
449 $this->db->rollback();
462 public function fetch($id, $ref =
'')
466 dol_syslog(get_class($this).
"::fetch id=".$id.
" ref=".$ref);
470 $this->error =
'ErrorWrongParameters';
471 dol_syslog(get_class($this).
"::fetch ".$this->error);
475 $sql =
"SELECT rowid, entity, fk_parent, fk_project, ref as label, description, statut, lieu, address, zip, town, fk_pays as country_id, phone, fax,";
476 $sql .=
" model_pdf, import_key";
477 $sql .=
" FROM ".$this->db->prefix().
"entrepot";
479 $sql .=
" WHERE rowid = ".((int) $id);
481 $sql .=
" WHERE entity IN (".getEntity(
'stock').
")";
483 $sql .=
" AND ref = '".$this->db->escape($ref).
"'";
487 $result = $this->db->query($sql);
489 if ($this->db->num_rows($result) > 0) {
490 $obj = $this->db->fetch_object($result);
492 $this->
id = $obj->rowid;
493 $this->entity = $obj->entity;
494 $this->fk_parent = $obj->fk_parent;
495 $this->fk_project = $obj->fk_project;
496 $this->
ref = $obj->label;
497 $this->label = $obj->label;
499 $this->
statut = $obj->statut;
500 $this->lieu = $obj->lieu;
501 $this->address = $obj->address;
502 $this->zip = $obj->zip;
503 $this->town = $obj->town;
504 $this->country_id = $obj->country_id;
505 $this->phone = $obj->phone;
506 $this->fax = $obj->fax;
508 $this->model_pdf = $obj->model_pdf;
509 $this->import_key = $obj->import_key;
515 include_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
517 $this->country = $tmp[
'label'];
518 $this->country_code = $tmp[
'code'];
522 $this->error =
"Record Not Found";
526 $this->error = $this->db->error();
540 $sql =
"SELECT e.rowid, e.datec, e.tms as datem, e.fk_user_author";
541 $sql .=
" FROM ".$this->db->prefix().
"entrepot as e";
542 $sql .=
" WHERE e.rowid = ".((int) $id);
544 dol_syslog(get_class($this).
"::info", LOG_DEBUG);
545 $result = $this->db->query($sql);
547 if ($this->db->num_rows($result)) {
548 $obj = $this->db->fetch_object($result);
550 $this->
id = $obj->rowid;
552 $this->user_creation_id = $obj->fk_user_author;
553 $this->date_creation = $this->db->jdate($obj->datec);
554 $this->date_modification = empty($obj->datem) ?
'' : $this->db->jdate($obj->datem);
557 $this->db->free($result);
576 $sql =
"SELECT rowid, ref as label";
577 $sql .=
" FROM ".$this->db->prefix().
"entrepot";
578 $sql .=
" WHERE entity IN (".getEntity(
'stock').
")";
579 $sql .=
" AND statut = ".((int) $status);
581 $result = $this->db->query($sql);
583 $num = $this->db->num_rows($result);
586 $row = $this->db->fetch_row($result);
587 $liste[$row[0]] = $row[1];
590 $this->db->free($result);
606 $sql =
"SELECT count(distinct p.rowid) as nb";
607 $sql .=
" FROM ".$this->db->prefix().
"product_stock as ps";
608 $sql .=
", ".$this->db->prefix().
"product as p";
609 $sql .=
" WHERE ps.fk_entrepot = ".((int) $this->
id);
610 $sql .=
" AND ps.fk_product = p.rowid";
613 $result = $this->db->query($sql);
615 $obj = $this->db->fetch_object($result);
616 $ret[
'nb'] = $obj->nb;
617 $this->db->free($result);
619 $this->error = $this->db->lasterror();
639 $separatedPMP =
false;
641 $separatedPMP =
true;
645 $sql =
"SELECT sum(ps.reel) as nb, sum(ps.reel * pa.pmp) as value";
647 $sql =
"SELECT sum(ps.reel) as nb, sum(ps.reel * p.pmp) as value";
649 $sql .=
" FROM ".$this->db->prefix().
"product_stock as ps";
650 $sql .=
", ".$this->db->prefix().
"product as p";
652 $sql .=
", ".$this->db->prefix().
"product_perentity as pa";
654 $sql .=
" WHERE ps.fk_entrepot = ".((int) $this->
id);
656 $sql .=
" AND pa.fk_product = p.rowid AND pa.entity = ". (int) $conf->entity;
658 $sql .=
" AND ps.fk_product = p.rowid";
660 $result = $this->db->query($sql);
662 $obj = $this->db->fetch_object($result);
663 $ret[
'nb'] = $obj->nb;
664 $ret[
'value'] = $obj->value;
665 $this->db->free($result);
667 $this->error = $this->db->lasterror();
698 $statusType =
'status5';
700 $statusType =
'status4';
703 $langs->load(
'stocks');
704 $label = $langs->transnoentitiesnoconv($this->labelStatus[$status]);
705 $labelshort = $langs->transnoentitiesnoconv($this->labelStatus[$status]);
707 return dolGetStatus($label, $labelshort,
'', $statusType, $mode);
719 global $conf, $langs, $user;
721 $langs->load(
'stocks');
725 $option = $params[
'option'] ??
'';
726 $nofetch = !empty($params[
'nofetch']);
729 return [
'optimize' => $langs->trans(
"Warehouse")];
731 $datas[
'picto'] =
img_picto(
'', $this->picto).
' <u class="paddingrightonly">'.$langs->trans(
"Warehouse").
'</u>';
732 if (isset($this->
statut)) {
733 $datas[
'picto'] .=
' '.$this->getLibStatut(5);
735 $datas[
'ref'] =
'<br><b>'.$langs->trans(
'Ref').
':</b> '.(empty($this->
ref) ? $this->label : $this->ref);
736 if (!empty($this->lieu)) {
737 $datas[
'locationsummary'] =
'<br><b>'.$langs->trans(
'LocationSummary').
':</b> '.$this->lieu;
740 if (!$nofetch && isModEnabled(
'categorie')) {
741 require_once DOL_DOCUMENT_ROOT .
'/categories/class/categorie.class.php';
742 $form =
new Form($this->db);
743 $datas[
'categories_warehouse'] =
'<br>' . $form->showCategories($this->
id, Categorie::TYPE_WAREHOUSE, 1, 1);
760 public function getNomUrl($withpicto = 0, $option =
'', $showfullpath = 0, $notooltip = 0, $morecss =
'', $save_lastsearch_value = -1)
762 global $conf, $langs, $hookmanager;
763 $langs->load(
"stocks");
765 if (!empty($conf->dol_no_mouse_hover)) {
776 'objecttype' => $this->element,
780 $classfortooltip =
'classfortooltip';
783 $classfortooltip =
'classforajaxtooltip';
784 $dataparams =
' data-params="'.dol_escape_htmltag(json_encode($params)).
'"';
785 $label =
'ToComplete';
790 $url = DOL_URL_ROOT.
'/product/stock/card.php?id='.$this->id;
792 if ($option !=
'nolink') {
794 $add_save_lastsearch_values = ($save_lastsearch_value == 1 ? 1 : 0);
795 if ($save_lastsearch_value == -1 && isset($_SERVER[
"PHP_SELF"]) && preg_match(
'/list\.php/', $_SERVER[
"PHP_SELF"])) {
796 $add_save_lastsearch_values = 1;
798 if ($add_save_lastsearch_values) {
799 $url .=
'&save_lastsearch_values=1';
804 if (empty($notooltip)) {
806 $label = $langs->trans(
"Warehouse");
807 $linkclose .=
' alt="'.dol_escape_htmltag($label, 1).
'"';
809 $linkclose .= ($label ?
' title="'.dol_escape_htmltag($label, 1).
'"' :
' title="tocomplete"');
810 $linkclose .= $dataparams.
' class="'.$classfortooltip.
'"';
813 $linkstart =
'<a href="'.$url.
'"';
814 $linkstart .= $linkclose.
'>';
817 $result .= $linkstart;
819 $result .=
img_object(($notooltip ?
'' : $label), ($this->picto ? $this->picto :
'generic'), ($notooltip ? (($withpicto != 2) ?
'class="paddingright"' :
'') :
'class="'.(($withpicto != 2) ?
'paddingright ' :
'').
'"'), 0, 0, $notooltip ? 0 : 1);
821 if ($withpicto != 2) {
827 $hookmanager->initHooks(array(
'warehousedao'));
828 $parameters = array(
'id'=>$this->
id,
'getnomurl' => &$result,
'withpicto' => $withpicto,
'option' => $option,
'showfullpath' => $showfullpath,
'notooltip'=> $notooltip);
829 $reshook = $hookmanager->executeHooks(
'getNomUrl', $parameters, $this, $action);
831 $result = $hookmanager->resPrint;
833 $result .= $hookmanager->resPrint;
848 global $user, $langs, $conf, $mysoc;
854 $this->label =
'WAREHOUSE SPECIMEN';
855 $this->
description =
'WAREHOUSE SPECIMEN '.dol_print_date($now,
'dayhourlog');
859 $this->lieu =
'Location test';
860 $this->address =
'21 jump street';
861 $this->zip =
'99999';
862 $this->town =
'MyTown';
863 $this->country_id = 1;
864 $this->country_code =
'FR';
876 global $user, $langs, $conf;
878 $TArbo = array($this->label);
882 $warehousetmp =
new Entrepot($this->db);
884 $parentid = $this->fk_parent;
886 while ($parentid > 0 && $i < $protection) {
887 $sql =
"SELECT fk_parent FROM ".$this->db->prefix().
"entrepot WHERE rowid = ".((int) $parentid);
888 $resql = $this->db->query($sql);
890 $objarbo = $this->db->fetch_object($resql);
892 $warehousetmp->fetch($parentid);
893 $TArbo[] = $warehousetmp->label;
894 $parentid = $objarbo->fk_parent;
905 return implode(
' >> ', array_reverse($TArbo));
921 FROM ".$this->db->prefix().
"entrepot
922 WHERE fk_parent = ".((int) $id);
924 $resql = $this->db->query($sql);
926 while ($res = $this->db->fetch_object($resql)) {
927 $TChildWarehouses[] = $res->rowid;
932 return $TChildWarehouses;
945 public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
947 global $conf, $user, $langs;
949 $langs->load(
"stocks");
950 $outputlangs->load(
"products");
953 $modele =
'standard';
955 if ($this->model_pdf) {
956 $modele = $this->model_pdf;
958 $modele = $conf->global->STOCK_ADDON_PDF;
962 $modelpath =
"core/modules/stock/doc/";
964 return $this->
commonGenerateDocument($modelpath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref);
979 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
980 return parent::setCategoriesCommon($categories, Categorie::TYPE_WAREHOUSE);
992 $selected = (empty($arraydata[
'selected']) ? 0 : $arraydata[
'selected']);
994 $return =
'<div class="box-flex-item box-flex-grow-zero">';
995 $return .=
'<div class="info-box info-box-sm">';
996 $return .=
'<div class="info-box-icon bg-infobox-action" >';
999 $return .=
'<div class="info-box-content" >';
1000 $return .=
'<span class="info-box-ref inline-block tdoverflowmax150 valignmiddle">'.(method_exists($this,
'getNomUrl') ? $this->
getNomUrl() : $this->ref).
'</span>';
1001 if ($selected >= 0) {
1002 $return .=
'<input id="cb'.$this->id.
'" class="flat checkforselect fright" type="checkbox" name="toselect[]" value="'.$this->
id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1004 if (property_exists($this,
'lieu') && (!empty($this->lieu))) {
1005 $return .=
'<br><span class="info-box-label opacitymedium">'.$this->lieu.
'</span>';
1007 if (property_exists($this,
'sellvalue') && $this->sellvalue != 0) {
1008 $return .=
'<br><span class="info-box-label amount">'.price($this->sellvalue).
'</span>';
1010 if (method_exists($this,
'getLibStatut')) {
1011 $return .=
'<br><div class="info-box-status">'.$this->getLibStatut(3).
'</div>';
1013 $return .=
'</div>';
1014 $return .=
'</div>';
1015 $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...
create($user, $notrigger=false)
Creation d'un entrepot en base.
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.
update($id, $user, $notrigger=false)
Update properties of a warehouse.
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,...
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=0, $outputlangs='', $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.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0)
Show a picto called object_picto (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.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
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 right right takeposterminal SELECT e e e e e statut