27require
'../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
'/product/stock/class/entrepot.class.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/lib/stock.lib.php';
32$langs->loadLangs(array(
'products',
'stocks',
'companies'));
46$help_url =
'EN:Module_Stocks_En|FR:Module_Stock|ES:Módulo_Stocks';
47llxHeader(
"", $langs->trans(
"WarehouseCard"), $help_url,
'', 0, 0,
'',
'',
'',
'mod-product page-stock_fiche_valo');
51 $result = $entrepot->fetch($id);
61 print
'<table class="border centpercent">';
64 print
'<tr><td width="25%">'.$langs->trans(
"Ref").
'</td><td colspan="3">';
65 print $form->showrefnav($entrepot,
'id',
'', 1,
'rowid',
'libelle');
68 print
'<tr><td>'.$langs->trans(
"LocationSummary").
'</td><td colspan="3">'.$entrepot->lieu.
'</td></tr>';
71 print
'<tr><td class="tdtop">'.$langs->trans(
"Description").
'</td><td colspan="3">'.nl2br($entrepot->description).
'</td></tr>';
73 print
'<tr><td>'.$langs->trans(
'Address').
'</td><td colspan="3">';
74 print $entrepot->address;
77 print
'<tr><td width="25%">'.$langs->trans(
'Zip').
'</td><td width="25%">'.$entrepot->zip.
'</td>';
78 print
'<td width="25%">'.$langs->trans(
'Town').
'</td><td width="25%">'.$entrepot->town.
'</td></tr>';
80 print
'<tr><td>'.$langs->trans(
'Country').
'</td><td colspan="3">';
81 print $entrepot->country;
85 print
'<tr><td>'.$langs->trans(
"Status").
'</td><td colspan="3">'.$entrepot->getLibStatut(4).
'</td></tr>';
87 $calcproducts = $entrepot->nb_products();
90 print
'<tr><td class="tdtop">'.$langs->trans(
"NumberOfProducts").
'</td><td colspan="3">';
91 print empty($calcproducts[
'nb']) ?
'0' : $calcproducts[
'nb'];
95 print
'<tr><td class="tdtop">'.$langs->trans(
"EstimatedStockValueShort").
'</td><td colspan="3">';
96 print empty($calcproducts[
'value']) ?
'0' : $calcproducts[
'value'];
109 print
"<div class=\"graph\">\n";
112 $file = $conf->stock->dir_temp.
'/entrepot-'.$entrepot->id.
'-'.($year).
'.png';
121 if (file_exists($file)) {
122 $url = DOL_URL_ROOT.
'/viewimage.php?modulepart=graph_stock&file=entrepot-'.$entrepot->id.
'-'.$year.
'.png';
123 print
'<img src="'.$url.
'" alt="Valorisation du stock annee '.($year).
'">';
125 if (file_exists(DOL_DATA_ROOT.
'/entrepot/temp/entrepot-'.$entrepot->id.
'-'.((
int) $year - 1).
'.png')) {
126 $url = DOL_URL_ROOT.
'/viewimage.php?modulepart=graph_stock&file=entrepot-'.$entrepot->id.
'-'.((int) $year - 1).
'.png';
127 print
'<br><img src="'.$url.
'" alt="Valorisation du stock annee '.((int) $year - 1).
'">';
130 $langs->load(
"errors");
131 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...
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.