26require
'../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.
'/product/stock/class/entrepot.class.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/lib/stock.lib.php';
31$langs->loadLangs(array(
'products',
'stocks',
'companies'));
45$help_url =
'EN:Module_Stocks_En|FR:Module_Stock|ES:Módulo_Stocks';
46llxHeader(
"", $langs->trans(
"WarehouseCard"), $help_url);
50 $result = $entrepot->fetch($id);
60 print
'<table class="border centpercent">';
63 print
'<tr><td width="25%">'.$langs->trans(
"Ref").
'</td><td colspan="3">';
64 print $form->showrefnav($entrepot,
'id',
'', 1,
'rowid',
'libelle');
67 print
'<tr><td>'.$langs->trans(
"LocationSummary").
'</td><td colspan="3">'.$entrepot->lieu.
'</td></tr>';
70 print
'<tr><td class="tdtop">'.$langs->trans(
"Description").
'</td><td colspan="3">'.nl2br($entrepot->description).
'</td></tr>';
72 print
'<tr><td>'.$langs->trans(
'Address').
'</td><td colspan="3">';
73 print $entrepot->address;
76 print
'<tr><td width="25%">'.$langs->trans(
'Zip').
'</td><td width="25%">'.$entrepot->zip.
'</td>';
77 print
'<td width="25%">'.$langs->trans(
'Town').
'</td><td width="25%">'.$entrepot->town.
'</td></tr>';
79 print
'<tr><td>'.$langs->trans(
'Country').
'</td><td colspan="3">';
80 print $entrepot->country;
84 print
'<tr><td>'.$langs->trans(
"Status").
'</td><td colspan="3">'.$entrepot->getLibStatut(4).
'</td></tr>';
86 $calcproducts = $entrepot->nb_products();
89 print
'<tr><td class="tdtop">'.$langs->trans(
"NumberOfProducts").
'</td><td colspan="3">';
90 print empty($calcproducts[
'nb']) ?
'0' : $calcproducts[
'nb'];
94 print
'<tr><td class="tdtop">'.$langs->trans(
"EstimatedStockValueShort").
'</td><td colspan="3">';
95 print empty($calcproducts[
'value']) ?
'0' : $calcproducts[
'value'];
108 print
"<div class=\"graph\">\n";
111 $file = $conf->stock->dir_temp.
'/entrepot-'.$entrepot->id.
'-'.($year).
'.png';
120 if (file_exists($file)) {
121 $url = DOL_URL_ROOT.
'/viewimage.php?modulepart=graph_stock&file=entrepot-'.$entrepot->id.
'-'.$year.
'.png';
122 print
'<img src="'.$url.
'" alt="Valorisation du stock annee '.($year).
'">';
124 if (file_exists(DOL_DATA_ROOT.
'/entrepot/temp/entrepot-'.$entrepot->id.
'-'.($year - 1).
'.png')) {
125 $url = DOL_URL_ROOT.
'/viewimage.php?modulepart=graph_stock&file=entrepot-'.$entrepot->id.
'-'.($year - 1).
'.png';
126 print
'<br><img src="'.$url.
'" alt="Valorisation du stock annee '.($year - 1).
'">';
129 $langs->load(
"errors");
130 print $langs->trans(
"FeatureNotYetAvailable");
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Class to manage warehouses.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
dol_now($mode='auto')
Return date for now.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.
stock_prepare_head($object)
Prepare array with list of tabs.