28require
'../../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.
'/product/stock/class/entrepot.class.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/stock.lib.php';
41$langs->loadLangs(array(
'products',
'stocks',
'companies'));
55$help_url =
'EN:Module_Stocks_En|FR:Module_Stock|ES:Módulo_Stocks';
56llxHeader(
"", $langs->trans(
"WarehouseCard"), $help_url,
'', 0, 0,
'',
'',
'',
'mod-product page-stock_fiche_valo');
60 $result = $entrepot->fetch($id);
70 print
'<table class="border centpercent">';
73 print
'<tr><td width="25%">'.$langs->trans(
"Ref").
'</td><td colspan="3">';
74 print $form->showrefnav($entrepot,
'id',
'', 1,
'rowid',
'libelle');
77 print
'<tr><td>'.$langs->trans(
"LocationSummary").
'</td><td colspan="3">'.$entrepot->lieu.
'</td></tr>';
80 print
'<tr><td class="tdtop">'.$langs->trans(
"Description").
'</td><td colspan="3">'.nl2br($entrepot->description).
'</td></tr>';
82 print
'<tr><td>'.$langs->trans(
'Address').
'</td><td colspan="3">';
83 print $entrepot->address;
86 print
'<tr><td width="25%">'.$langs->trans(
'Zip').
'</td><td width="25%">'.$entrepot->zip.
'</td>';
87 print
'<td width="25%">'.$langs->trans(
'Town').
'</td><td width="25%">'.$entrepot->town.
'</td></tr>';
89 print
'<tr><td>'.$langs->trans(
'Country').
'</td><td colspan="3">';
90 print $entrepot->country;
94 print
'<tr><td>'.$langs->trans(
"Status").
'</td><td colspan="3">'.$entrepot->getLibStatut(4).
'</td></tr>';
96 $calcproducts = $entrepot->nb_products();
99 print
'<tr><td class="tdtop">'.$langs->trans(
"NumberOfProducts").
'</td><td colspan="3">';
100 print empty($calcproducts[
'nb']) ?
'0' : $calcproducts[
'nb'];
104 print
'<tr><td class="tdtop">'.$langs->trans(
"EstimatedStockValueShort").
'</td><td colspan="3">';
105 print empty($calcproducts[
'value']) ?
'0' : $calcproducts[
'value'];
118 print
"<div class=\"graph\">\n";
121 $file =
$conf->stock->dir_temp.
'/entrepot-'.$entrepot->id.
'-'.($year).
'.png';
130 if (file_exists($file)) {
131 $url = DOL_URL_ROOT.
'/viewimage.php?modulepart=graph_stock&file=entrepot-'.$entrepot->id.
'-'.$year.
'.png';
132 print
'<img src="'.$url.
'" alt="Valorisation du stock annee '.($year).
'">';
134 if (file_exists(DOL_DATA_ROOT.
'/entrepot/temp/entrepot-'.$entrepot->id.
'-'.((
int) $year - 1).
'.png')) {
135 $url = DOL_URL_ROOT.
'/viewimage.php?modulepart=graph_stock&file=entrepot-'.$entrepot->id.
'-'.((int) $year - 1).
'.png';
136 print
'<br><img src="'.$url.
'" alt="Valorisation du stock annee '.((int) $year - 1).
'">';
139 $langs->load(
"errors");
140 print $langs->trans(
"FeatureNotYetAvailable");
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class to manage warehouses.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
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_now($mode='auto')
Return date for now.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
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.