forked from Wavyzz/dolibarr
Fix position of fields
This commit is contained in:
@@ -174,36 +174,36 @@ $checkedprofid6 = 0;
|
|||||||
$checkprospectlevel = (in_array($contextpage, array('prospectlist')) ? 1 : 0);
|
$checkprospectlevel = (in_array($contextpage, array('prospectlist')) ? 1 : 0);
|
||||||
$checkstcomm = (in_array($contextpage, array('prospectlist')) ? 1 : 0);
|
$checkstcomm = (in_array($contextpage, array('prospectlist')) ? 1 : 0);
|
||||||
$arrayfields = array(
|
$arrayfields = array(
|
||||||
's.rowid'=>array('label'=>"TechnicalID", 'checked'=>($conf->global->MAIN_SHOW_TECHNICAL_ID ? 1 : 0), 'enabled'=>($conf->global->MAIN_SHOW_TECHNICAL_ID ? 1 : 0)),
|
's.rowid'=>array('label'=>"TechnicalID", 'position'=>1, 'checked'=>($conf->global->MAIN_SHOW_TECHNICAL_ID ? 1 : 0), 'enabled'=>($conf->global->MAIN_SHOW_TECHNICAL_ID ? 1 : 0)),
|
||||||
's.nom'=>array('label'=>"ThirdPartyName", 'checked'=>1),
|
's.nom'=>array('label'=>"ThirdPartyName", 'position'=>2, 'checked'=>1),
|
||||||
's.name_alias'=>array('label'=>"AliasNameShort", 'checked'=>1),
|
's.name_alias'=>array('label'=>"AliasNameShort", 'position'=>3, 'checked'=>1),
|
||||||
's.barcode'=>array('label'=>"Gencod", 'checked'=>1, 'enabled'=>(!empty($conf->barcode->enabled))),
|
's.barcode'=>array('label'=>"Gencod", 'position'=>5, 'checked'=>1, 'enabled'=>(!empty($conf->barcode->enabled))),
|
||||||
's.code_client'=>array('label'=>"CustomerCodeShort", 'checked'=>$checkedcustomercode),
|
's.code_client'=>array('label'=>"CustomerCodeShort", 'position'=>10, 'checked'=>$checkedcustomercode),
|
||||||
's.code_fournisseur'=>array('label'=>"SupplierCodeShort", 'checked'=>$checkedsuppliercode, 'enabled'=>(!empty($conf->fournisseur->enabled))),
|
's.code_fournisseur'=>array('label'=>"SupplierCodeShort", 'position'=>11, 'checked'=>$checkedsuppliercode, 'enabled'=>(!empty($conf->fournisseur->enabled))),
|
||||||
's.code_compta'=>array('label'=>"CustomerAccountancyCodeShort", 'checked'=>$checkedcustomeraccountcode),
|
's.code_compta'=>array('label'=>"CustomerAccountancyCodeShort", 'position'=>13, 'checked'=>$checkedcustomeraccountcode),
|
||||||
's.code_compta_fournisseur'=>array('label'=>"SupplierAccountancyCodeShort", 'checked'=>$checkedsupplieraccountcode, 'enabled'=>(!empty($conf->fournisseur->enabled))),
|
's.code_compta_fournisseur'=>array('label'=>"SupplierAccountancyCodeShort", 'position'=>14, 'checked'=>$checkedsupplieraccountcode, 'enabled'=>(!empty($conf->fournisseur->enabled))),
|
||||||
's.town'=>array('label'=>"Town", 'checked'=>1),
|
's.town'=>array('label'=>"Town", 'position'=>20, 'checked'=>1),
|
||||||
's.zip'=>array('label'=>"Zip", 'checked'=>1),
|
's.zip'=>array('label'=>"Zip", 'position'=>21, 'checked'=>1),
|
||||||
'state.nom'=>array('label'=>"State", 'checked'=>0),
|
'state.nom'=>array('label'=>"State", 'position'=>22, 'checked'=>0),
|
||||||
'region.nom'=>array('label'=>"Region", 'checked'=>0),
|
'region.nom'=>array('label'=>"Region", 'position'=>23, 'checked'=>0),
|
||||||
'country.code_iso'=>array('label'=>"Country", 'checked'=>0),
|
'country.code_iso'=>array('label'=>"Country", 'position'=>24, 'checked'=>0),
|
||||||
's.email'=>array('label'=>"Email", 'checked'=>0),
|
's.email'=>array('label'=>"Email", 'position'=>25, 'checked'=>0),
|
||||||
's.url'=>array('label'=>"Url", 'checked'=>0),
|
's.url'=>array('label'=>"Url", 'position'=>26, 'checked'=>0),
|
||||||
's.phone'=>array('label'=>"Phone", 'checked'=>1),
|
's.phone'=>array('label'=>"Phone", 'position'=>27, 'checked'=>1),
|
||||||
's.fax'=>array('label'=>"Fax", 'checked'=>0),
|
's.fax'=>array('label'=>"Fax", 'position'=>28, 'checked'=>0),
|
||||||
'typent.code'=>array('label'=>"ThirdPartyType", 'checked'=>$checkedtypetiers),
|
'typent.code'=>array('label'=>"ThirdPartyType", 'position'=>29, 'checked'=>$checkedtypetiers),
|
||||||
'staff.code'=>array('label'=>"Staff", 'checked'=>0),
|
'staff.code'=>array('label'=>"Staff", 'position'=>30, 'checked'=>0),
|
||||||
's.siren'=>array('label'=>"ProfId1Short", 'checked'=>$checkedprofid1),
|
's.siren'=>array('label'=>"ProfId1Short", 'position'=>40, 'checked'=>$checkedprofid1),
|
||||||
's.siret'=>array('label'=>"ProfId2Short", 'checked'=>$checkedprofid2),
|
's.siret'=>array('label'=>"ProfId2Short", 'position'=>41, 'checked'=>$checkedprofid2),
|
||||||
's.ape'=>array('label'=>"ProfId3Short", 'checked'=>$checkedprofid3),
|
's.ape'=>array('label'=>"ProfId3Short", 'position'=>42, 'checked'=>$checkedprofid3),
|
||||||
's.idprof4'=>array('label'=>"ProfId4Short", 'checked'=>$checkedprofid4),
|
's.idprof4'=>array('label'=>"ProfId4Short", 'position'=>43, 'checked'=>$checkedprofid4),
|
||||||
's.idprof5'=>array('label'=>"ProfId5Short", 'checked'=>$checkedprofid5),
|
's.idprof5'=>array('label'=>"ProfId5Short", 'position'=>44, 'checked'=>$checkedprofid5),
|
||||||
's.idprof6'=>array('label'=>"ProfId6Short", 'checked'=>$checkedprofid6),
|
's.idprof6'=>array('label'=>"ProfId6Short", 'position'=>45, 'checked'=>$checkedprofid6),
|
||||||
's.tva_intra'=>array('label'=>"VATIntraShort", 'checked'=>0),
|
's.tva_intra'=>array('label'=>"VATIntraShort", 'position'=>50, 'checked'=>0),
|
||||||
'customerorsupplier'=>array('label'=>'NatureOfThirdParty', 'checked'=>1),
|
'customerorsupplier'=>array('label'=>'NatureOfThirdParty', 'position'=>61, 'checked'=>1),
|
||||||
's.fk_prospectlevel'=>array('label'=>"ProspectLevelShort", 'checked'=>$checkprospectlevel),
|
's.fk_prospectlevel'=>array('label'=>"ProspectLevelShort", 'position'=>62, 'checked'=>$checkprospectlevel),
|
||||||
's.fk_stcomm'=>array('label'=>"StatusProsp", 'checked'=>$checkstcomm),
|
's.fk_stcomm'=>array('label'=>"StatusProsp", 'position'=>63, 'checked'=>$checkstcomm),
|
||||||
's2.nom'=>array('label'=>'ParentCompany', 'checked'=>0),
|
's2.nom'=>array('label'=>'ParentCompany', 'position'=>64, 'checked'=>0),
|
||||||
's.datec'=>array('label'=>"DateCreation", 'checked'=>0, 'position'=>500),
|
's.datec'=>array('label'=>"DateCreation", 'checked'=>0, 'position'=>500),
|
||||||
's.tms'=>array('label'=>"DateModificationShort", 'checked'=>0, 'position'=>500),
|
's.tms'=>array('label'=>"DateModificationShort", 'checked'=>0, 'position'=>500),
|
||||||
's.status'=>array('label'=>"Status", 'checked'=>1, 'position'=>1000),
|
's.status'=>array('label'=>"Status", 'checked'=>1, 'position'=>1000),
|
||||||
|
|||||||
Reference in New Issue
Block a user