Add comments
This commit is contained in:
parent
b4977cd542
commit
0d03f13777
@ -210,7 +210,7 @@ if ($id > 0 || $ref)
|
||||
$product = new Product($db);
|
||||
$result = $product->fetch($id,$ref);
|
||||
$product->load_stock();
|
||||
|
||||
|
||||
$help_url='EN:Module_Stocks_En|FR:Module_Stock|ES:Módulo_Stocks';
|
||||
llxHeader("",$langs->trans("CardProduct".$product->type),$help_url);
|
||||
|
||||
@ -263,7 +263,7 @@ if ($id > 0 || $ref)
|
||||
print '<tr><td>'.$form->editfieldkey("StockLimit",'stocklimit',$product->seuil_stock_alerte,$product,$user->rights->produit->creer).'</td><td colspan="2">';
|
||||
print $form->editfieldval("StockLimit",'stocklimit',$product->seuil_stock_alerte,$product,$user->rights->produit->creer);
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
// Desired stock
|
||||
print '<tr><td>'.$form->editfieldkey("DesiredStock",'desiredstock',$product->desiredstock,$product,$user->rights->produit->creer).'</td><td colspan="2">';
|
||||
print $form->editfieldval("DesiredStock",'desiredstock',$product->desiredstock,$product,$user->rights->produit->creer);
|
||||
@ -277,7 +277,9 @@ if ($id > 0 || $ref)
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
// Calculating a theorical value of stock if stock increment is done on real sending
|
||||
// Calculating a theorical value
|
||||
|
||||
// If stock if stock increment is done on real sending
|
||||
if (! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT))
|
||||
{
|
||||
$stock_commande_client=$stock_commande_fournisseur=0;
|
||||
@ -339,6 +341,12 @@ if ($id > 0 || $ref)
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
// If stock if stock increment is done on
|
||||
// TODO Add information when stock increment is done on other option
|
||||
|
||||
// TODO Add also information on possible decrease stock accroding to stock decrease option
|
||||
|
||||
|
||||
// Last movement
|
||||
$sql = "SELECT max(m.datem) as datem";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."stock_mouvement as m";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user