Code comment
This commit is contained in:
parent
a063c5a35b
commit
a689f8dc3f
@ -148,8 +148,8 @@ class modStock extends DolibarrModules
|
|||||||
$this->rights[4][4] = 'mouvement';
|
$this->rights[4][4] = 'mouvement';
|
||||||
$this->rights[4][5] = 'creer';
|
$this->rights[4][5] = 'creer';
|
||||||
|
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL >= 2) {
|
if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
|
||||||
|
{
|
||||||
$this->rights[5][0] = 1011;
|
$this->rights[5][0] = 1011;
|
||||||
$this->rights[5][1] = 'inventoryReadPermission'; // Permission label
|
$this->rights[5][1] = 'inventoryReadPermission'; // Permission label
|
||||||
$this->rights[5][3] = 0; // Permission by default for new user (0/1)
|
$this->rights[5][3] = 0; // Permission by default for new user (0/1)
|
||||||
@ -211,7 +211,7 @@ class modStock extends DolibarrModules
|
|||||||
'p.datec'=>'product','p.tms'=>'product','p.pmp'=>'product','p.cost_price'=>'product','ps.reel'=>'stock'
|
'p.datec'=>'product','p.tms'=>'product','p.pmp'=>'product','p.cost_price'=>'product','ps.reel'=>'stock'
|
||||||
);
|
);
|
||||||
$this->export_aggregate_array[$r]=array('ps.reel'=>'SUM'); // TODO Not used yet
|
$this->export_aggregate_array[$r]=array('ps.reel'=>'SUM'); // TODO Not used yet
|
||||||
$this->export_dependencies_array[$r]=array('stock'=>array('p.rowid','e.rowid')); // We must keep this until the aggregate_array is used. To add unique key if we ask a field of a child to avoid the DISTINCT to discard them.
|
$this->export_dependencies_array[$r]=array('stock'=>array('p.rowid','e.rowid')); // We must keep this until the aggregate_array is used. To have a unique key, if we ask a field of a child, to avoid the DISTINCT to discard them.
|
||||||
$keyforselect='product'; $keyforelement='product'; $keyforaliasextra='extra';
|
$keyforselect='product'; $keyforelement='product'; $keyforaliasextra='extra';
|
||||||
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
||||||
$this->export_fields_array[$r]=array_merge($this->export_fields_array[$r],array('ps.reel'=>'Stock'));
|
$this->export_fields_array[$r]=array_merge($this->export_fields_array[$r],array('ps.reel'=>'Stock'));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user