Can export BOMs
This commit is contained in:
parent
83a5cfbd1c
commit
afa3ed499f
@ -1036,7 +1036,7 @@ class BOMLine extends CommonObject
|
|||||||
* @var array Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
|
* @var array Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
|
||||||
*/
|
*/
|
||||||
public $fields=array(
|
public $fields=array(
|
||||||
'rowid' => array('type'=>'integer', 'label'=>'TechnicalID', 'enabled'=>1, 'visible'=>-1, 'position'=>1, 'notnull'=>1, 'index'=>1, 'comment'=>"Id",),
|
'rowid' => array('type'=>'integer', 'label'=>'LineID', 'enabled'=>1, 'visible'=>-1, 'position'=>1, 'notnull'=>1, 'index'=>1, 'comment'=>"Id",),
|
||||||
'fk_bom' => array('type'=>'integer:BillOfMaterials:societe/class/bom.class.php', 'label'=>'BillOfMaterials', 'enabled'=>1, 'visible'=>1, 'position'=>10, 'notnull'=>1, 'index'=>1,),
|
'fk_bom' => array('type'=>'integer:BillOfMaterials:societe/class/bom.class.php', 'label'=>'BillOfMaterials', 'enabled'=>1, 'visible'=>1, 'position'=>10, 'notnull'=>1, 'index'=>1,),
|
||||||
'fk_product' => array('type'=>'integer:Product:product/class/product.class.php', 'label'=>'Product', 'enabled'=>1, 'visible'=>1, 'position'=>20, 'notnull'=>1, 'index'=>1,),
|
'fk_product' => array('type'=>'integer:Product:product/class/product.class.php', 'label'=>'Product', 'enabled'=>1, 'visible'=>1, 'position'=>20, 'notnull'=>1, 'index'=>1,),
|
||||||
'description' => array('type'=>'text', 'label'=>'Description', 'enabled'=>1, 'visible'=>-1, 'position'=>60, 'notnull'=>-1,),
|
'description' => array('type'=>'text', 'label'=>'Description', 'enabled'=>1, 'visible'=>-1, 'position'=>60, 'notnull'=>-1,),
|
||||||
|
|||||||
@ -6,6 +6,7 @@ if (empty($keyforclass) || empty($keyforclassfile) || empty($keyforelement))
|
|||||||
dol_print_error('', 'include of file commonfieldsinexport.inc.php was done but var $keyforclass or $keyforclassfile or $keyforelement was not set');
|
dol_print_error('', 'include of file commonfieldsinexport.inc.php was done but var $keyforclass or $keyforclassfile or $keyforelement was not set');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
if (empty($keyforalias)) $keyforalias = 't';
|
||||||
|
|
||||||
dol_include_once($keyforclassfile);
|
dol_include_once($keyforclassfile);
|
||||||
if (class_exists($keyforclass))
|
if (class_exists($keyforclass))
|
||||||
@ -15,7 +16,7 @@ if (class_exists($keyforclass))
|
|||||||
// Add common fields
|
// Add common fields
|
||||||
foreach($tmpobject->fields as $keyfield => $valuefield)
|
foreach($tmpobject->fields as $keyfield => $valuefield)
|
||||||
{
|
{
|
||||||
$fieldname = 't' . '.' . $keyfield;
|
$fieldname = $keyforalias . '.' . $keyfield;
|
||||||
$fieldlabel = ucfirst($valuefield['label']);
|
$fieldlabel = ucfirst($valuefield['label']);
|
||||||
$typeFilter = "Text";
|
$typeFilter = "Text";
|
||||||
$typefield=preg_replace('/\(.*$/', '', $valuefield['type']); // double(24,8) -> double
|
$typefield=preg_replace('/\(.*$/', '', $valuefield['type']); // double(24,8) -> double
|
||||||
|
|||||||
@ -286,21 +286,26 @@ class modBom extends DolibarrModules
|
|||||||
$r=1;
|
$r=1;
|
||||||
|
|
||||||
/* BEGIN MODULEBUILDER EXPORT BILLOFMATERIALS */
|
/* BEGIN MODULEBUILDER EXPORT BILLOFMATERIALS */
|
||||||
/*
|
$langs->load("mrp");
|
||||||
$langs->load("mrp@mrp");
|
|
||||||
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
||||||
$this->export_label[$r]='BomLines'; // Translation key (used only if key ExportDataset_xxx_z not found)
|
$this->export_label[$r]='BomAndBomLines'; // Translation key (used only if key ExportDataset_xxx_z not found)
|
||||||
$this->export_icon[$r]='bom';
|
$this->export_icon[$r]='bom';
|
||||||
$keyforclass = 'Bom'; $keyforclassfile='/mymobule/class/bom.class.php'; $keyforelement='bom';
|
$keyforclass = 'BOM'; $keyforclassfile='/bom/class/bom.class.php'; $keyforelement='bom';
|
||||||
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
||||||
$keyforselect='bom'; $keyforaliasextra='extra'; $keyforelement='bom';
|
$keyforclass = 'BOMLine'; $keyforclassfile='/bom/class/bom.class.php'; $keyforelement='bomline'; $keyforalias='tl';
|
||||||
|
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
||||||
|
unset($this->export_fields_array[$r]['tl.fk_bom']);
|
||||||
|
$keyforselect ='bom_bom'; $keyforaliasextra='extra'; $keyforelement='bom';
|
||||||
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
||||||
//$this->export_dependencies_array[$r]=array('mysubobject'=>'ts.rowid', 't.myfield'=>array('t.myfield2','t.myfield3')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
|
$keyforselect ='bom_bomline'; $keyforaliasextra='extraline'; $keyforelement='bomline';
|
||||||
|
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
||||||
|
$this->export_dependencies_array[$r]=array('bomline'=>'tl.rowid'); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
|
||||||
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
||||||
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'bom as t';
|
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'bom_bom as t';
|
||||||
|
$this->export_sql_end[$r] .=' LEFT JOIN '.MAIN_DB_PREFIX.'bom_bomline as tl ON tl.fk_bom = t.rowid';
|
||||||
$this->export_sql_end[$r] .=' WHERE 1 = 1';
|
$this->export_sql_end[$r] .=' WHERE 1 = 1';
|
||||||
$this->export_sql_end[$r] .=' AND t.entity IN ('.getEntity('bom').')';
|
$this->export_sql_end[$r] .=' AND t.entity IN ('.getEntity('bom').')';
|
||||||
$r++; */
|
$r++;
|
||||||
/* END MODULEBUILDER EXPORT BILLOFMATERIALS */
|
/* END MODULEBUILDER EXPORT BILLOFMATERIALS */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -255,28 +255,6 @@ class modDav extends DolibarrModules
|
|||||||
'target'=>'',
|
'target'=>'',
|
||||||
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
||||||
END MODULEBUILDER LEFTMENU MYOBJECT */
|
END MODULEBUILDER LEFTMENU MYOBJECT */
|
||||||
|
|
||||||
|
|
||||||
// Exports
|
|
||||||
$r=1;
|
|
||||||
|
|
||||||
/* BEGIN MODULEBUILDER EXPORT MYOBJECT */
|
|
||||||
/*
|
|
||||||
$langs->load("dav@dav");
|
|
||||||
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
|
||||||
$this->export_label[$r]='MyObjectLines'; // Translation key (used only if key ExportDataset_xxx_z not found)
|
|
||||||
$this->export_icon[$r]='myobject@dav';
|
|
||||||
$keyforclass = 'MyObject'; $keyforclassfile='/mymobule/class/myobject.class.php'; $keyforelement='myobject';
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
|
||||||
$keyforselect='myobject'; $keyforaliasextra='extra'; $keyforelement='myobject';
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
|
||||||
//$this->export_dependencies_array[$r]=array('mysubobject'=>'ts.rowid', 't.myfield'=>array('t.myfield2','t.myfield3')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
|
|
||||||
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
|
||||||
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'myobject as t';
|
|
||||||
$this->export_sql_end[$r] .=' WHERE 1 = 1';
|
|
||||||
$this->export_sql_end[$r] .=' AND t.entity IN ('.getEntity('myobject').')';
|
|
||||||
$r++; */
|
|
||||||
/* END MODULEBUILDER EXPORT MYOBJECT */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -252,28 +252,6 @@ class modEmailCollector extends DolibarrModules
|
|||||||
'target'=>'',
|
'target'=>'',
|
||||||
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
||||||
END MODULEBUILDER LEFTMENU MYOBJECT */
|
END MODULEBUILDER LEFTMENU MYOBJECT */
|
||||||
|
|
||||||
|
|
||||||
// Exports
|
|
||||||
$r=1;
|
|
||||||
|
|
||||||
/* BEGIN MODULEBUILDER EXPORT MYOBJECT */
|
|
||||||
/*
|
|
||||||
$langs->load("dav@dav");
|
|
||||||
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
|
||||||
$this->export_label[$r]='MyObjectLines'; // Translation key (used only if key ExportDataset_xxx_z not found)
|
|
||||||
$this->export_icon[$r]='myobject@dav';
|
|
||||||
$keyforclass = 'MyObject'; $keyforclassfile='/mymobule/class/myobject.class.php'; $keyforelement='myobject';
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
|
||||||
$keyforselect='myobject'; $keyforaliasextra='extra'; $keyforelement='myobject';
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
|
||||||
//$this->export_dependencies_array[$r]=array('mysubobject'=>'ts.rowid', 't.myfield'=>array('t.myfield2','t.myfield3')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
|
|
||||||
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
|
||||||
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'myobject as t';
|
|
||||||
$this->export_sql_end[$r] .=' WHERE 1 = 1';
|
|
||||||
$this->export_sql_end[$r] .=' AND t.entity IN ('.getEntity('myobject').')';
|
|
||||||
$r++; */
|
|
||||||
/* END MODULEBUILDER EXPORT MYOBJECT */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -253,28 +253,6 @@ class modTakePos extends DolibarrModules
|
|||||||
'target'=>'',
|
'target'=>'',
|
||||||
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
||||||
END MODULEBUILDER LEFTMENU MYOBJECT */
|
END MODULEBUILDER LEFTMENU MYOBJECT */
|
||||||
|
|
||||||
|
|
||||||
// Exports
|
|
||||||
$r=1;
|
|
||||||
|
|
||||||
/* BEGIN MODULEBUILDER EXPORT MYOBJECT */
|
|
||||||
/*
|
|
||||||
$langs->load("cashdesk");
|
|
||||||
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
|
||||||
$this->export_label[$r]='MyObjectLines'; // Translation key (used only if key ExportDataset_xxx_z not found)
|
|
||||||
$this->export_icon[$r]='myobject@takepos';
|
|
||||||
$keyforclass = 'MyObject'; $keyforclassfile='/mymobule/class/myobject.class.php'; $keyforelement='myobject';
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
|
||||||
$keyforselect='myobject'; $keyforaliasextra='extra'; $keyforelement='myobject';
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
|
||||||
//$this->export_dependencies_array[$r]=array('mysubobject'=>'ts.rowid', 't.myfield'=>array('t.myfield2','t.myfield3')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
|
|
||||||
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
|
||||||
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'myobject as t';
|
|
||||||
$this->export_sql_end[$r] .=' WHERE 1 = 1';
|
|
||||||
$this->export_sql_end[$r] .=' AND t.entity IN ('.getEntity('myobject').')';
|
|
||||||
$r++; */
|
|
||||||
/* END MODULEBUILDER EXPORT MYOBJECT */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -134,7 +134,6 @@ class modWebsite extends DolibarrModules
|
|||||||
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
||||||
//$keyforselect='myobject'; $keyforelement='myobject'; $keyforaliasextra='extra';
|
//$keyforselect='myobject'; $keyforelement='myobject'; $keyforaliasextra='extra';
|
||||||
//include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
//include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
||||||
//$this->export_dependencies_array[$r]=array('mysubobject'=>'ts.rowid', 't.myfield'=>array('t.myfield2','t.myfield3')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
|
|
||||||
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
||||||
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'website_page as t, '.MAIN_DB_PREFIX.'website as p';
|
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'website_page as t, '.MAIN_DB_PREFIX.'website as p';
|
||||||
$this->export_sql_end[$r] .=' WHERE t.fk_website = p.rowid';
|
$this->export_sql_end[$r] .=' WHERE t.fk_website = p.rowid';
|
||||||
|
|||||||
@ -316,24 +316,6 @@ class modZapier extends DolibarrModules
|
|||||||
'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
|
'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
|
||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
// Exports
|
|
||||||
$r=1;
|
|
||||||
/* EXPORT */
|
|
||||||
/*
|
|
||||||
$langs->load("zapier@zapier");
|
|
||||||
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
|
||||||
$this->export_label[$r]='MyObjectLines'; // Translation key (used only if key ExportDataset_xxx_z not found)
|
|
||||||
$this->export_icon[$r]='myobject@zapier';
|
|
||||||
$keyforclass = 'MyObject'; $keyforclassfile='/mymobule/class/myobject.class.php'; $keyforelement='myobject';
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
|
||||||
$keyforselect='myobject'; $keyforaliasextra='extra'; $keyforelement='myobject';
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
|
||||||
//$this->export_dependencies_array[$r]=array('mysubobject'=>'ts.rowid', 't.myfield'=>array('t.myfield2','t.myfield3')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
|
|
||||||
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
|
||||||
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'myobject as t';
|
|
||||||
$this->export_sql_end[$r] .=' WHERE 1 = 1';
|
|
||||||
$this->export_sql_end[$r] .=' AND t.entity IN ('.getEntity('myobject').')';
|
|
||||||
$r++; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -73,7 +73,9 @@ $entitytoicon = array(
|
|||||||
'expensereport_line'=> 'trip',
|
'expensereport_line'=> 'trip',
|
||||||
'holiday' => 'holiday',
|
'holiday' => 'holiday',
|
||||||
'contract_line' => 'contract',
|
'contract_line' => 'contract',
|
||||||
'translation' => 'generic'
|
'translation' => 'generic',
|
||||||
|
'bomm' => 'bom',
|
||||||
|
'bomline' => 'bom'
|
||||||
);
|
);
|
||||||
|
|
||||||
// Translation code
|
// Translation code
|
||||||
@ -120,7 +122,9 @@ $entitytolang = array(
|
|||||||
'holiday' => 'TitreRequestCP',
|
'holiday' => 'TitreRequestCP',
|
||||||
'contract' => 'Contract',
|
'contract' => 'Contract',
|
||||||
'contract_line'=> 'ContractLine',
|
'contract_line'=> 'ContractLine',
|
||||||
'translation' => 'Translation'
|
'translation' => 'Translation',
|
||||||
|
'bom' => 'BOM',
|
||||||
|
'bomline' => 'BOMLine'
|
||||||
);
|
);
|
||||||
|
|
||||||
$array_selected=isset($_SESSION["export_selected_fields"])?$_SESSION["export_selected_fields"]:array();
|
$array_selected=isset($_SESSION["export_selected_fields"])?$_SESSION["export_selected_fields"]:array();
|
||||||
|
|||||||
@ -114,6 +114,7 @@ InformationToHelpDiagnose=This information can be useful for diagnostic purposes
|
|||||||
MoreInformation=More information
|
MoreInformation=More information
|
||||||
TechnicalInformation=Technical information
|
TechnicalInformation=Technical information
|
||||||
TechnicalID=Technical ID
|
TechnicalID=Technical ID
|
||||||
|
LineID=Line ID
|
||||||
NotePublic=Note (public)
|
NotePublic=Note (public)
|
||||||
NotePrivate=Note (private)
|
NotePrivate=Note (private)
|
||||||
PrecisionUnitIsLimitedToXDecimals=Dolibarr was setup to limit precision of unit prices to <b>%s</b> decimals.
|
PrecisionUnitIsLimitedToXDecimals=Dolibarr was setup to limit precision of unit prices to <b>%s</b> decimals.
|
||||||
|
|||||||
@ -34,6 +34,9 @@ ConfirmCloseBom=Are you sure you want to cancel this BOM (you won't be able to u
|
|||||||
ConfirmReopenBom=Are you sure you want to re-open this BOM (you will be able to use it to build new Manufacturing Orders)
|
ConfirmReopenBom=Are you sure you want to re-open this BOM (you will be able to use it to build new Manufacturing Orders)
|
||||||
StatusMOProduced=Produced
|
StatusMOProduced=Produced
|
||||||
QtyFrozen=Frozen Qty
|
QtyFrozen=Frozen Qty
|
||||||
|
QuantityFrozen=Frozen Quantity
|
||||||
QuantityConsumedInvariable=When this flag is set, the quantity consumed is always the value defined and is not relative to the quantity produced.
|
QuantityConsumedInvariable=When this flag is set, the quantity consumed is always the value defined and is not relative to the quantity produced.
|
||||||
DisableStockChange=Disable stock change
|
DisableStockChange=Disable stock change
|
||||||
DisableStockChangeHelp=When this flag is set, there is no stock change on this product, whatever is the quantity produced
|
DisableStockChangeHelp=When this flag is set, there is no stock change on this product, whatever is the quantity produced
|
||||||
|
BomAndBomLines=Bills Of Material and lines
|
||||||
|
BOMLine=Line of BOM
|
||||||
@ -336,11 +336,16 @@ class modMyModule extends DolibarrModules
|
|||||||
$this->export_icon[$r]='myobject@mymodule';
|
$this->export_icon[$r]='myobject@mymodule';
|
||||||
$keyforclass = 'MyObject'; $keyforclassfile='/mymobule/class/myobject.class.php'; $keyforelement='myobject';
|
$keyforclass = 'MyObject'; $keyforclassfile='/mymobule/class/myobject.class.php'; $keyforelement='myobject';
|
||||||
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
||||||
|
//$keyforclass = 'MyObjectLine'; $keyforclassfile='/mymodule/class/myobject.class.php'; $keyforelement='myobjectline'; $keyforalias='tl';
|
||||||
|
//include DOL_DOCUMENT_ROOT.'/core/commonfieldsinexport.inc.php';
|
||||||
$keyforselect='myobject'; $keyforaliasextra='extra'; $keyforelement='myobject';
|
$keyforselect='myobject'; $keyforaliasextra='extra'; $keyforelement='myobject';
|
||||||
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
||||||
//$this->export_dependencies_array[$r]=array('mysubobject'=>'ts.rowid', 't.myfield'=>array('t.myfield2','t.myfield3')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
|
//$keyforselect='myobjectline'; $keyforaliasextra='extraline'; $keyforelement='myobjectline';
|
||||||
|
//include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
|
||||||
|
//$this->export_dependencies_array[$r]=array('myobjectline'=>array('tl.rowid','tl.ref')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
|
||||||
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
$this->export_sql_start[$r]='SELECT DISTINCT ';
|
||||||
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'myobject as t';
|
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'myobject as t';
|
||||||
|
//$this->export_sql_end[$r] =' LEFT JOIN '.MAIN_DB_PREFIX.'myobject_line as tl ON tl.fk_myobject = t.rowid';
|
||||||
$this->export_sql_end[$r] .=' WHERE 1 = 1';
|
$this->export_sql_end[$r] .=' WHERE 1 = 1';
|
||||||
$this->export_sql_end[$r] .=' AND t.entity IN ('.getEntity('myobject').')';
|
$this->export_sql_end[$r] .=' AND t.entity IN ('.getEntity('myobject').')';
|
||||||
$r++; */
|
$r++; */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user