Fix syntax
This commit is contained in:
parent
1c71a8da1e
commit
2913759bb7
@ -335,35 +335,35 @@ class modCommande extends DolibarrModules
|
|||||||
}
|
}
|
||||||
// End add extra fields
|
// End add extra fields
|
||||||
|
|
||||||
$this->import_fieldshidden_array[$r] = ['extra.fk_object' => 'lastrowid-'.MAIN_DB_PREFIX.'commande'];
|
$this->import_fieldshidden_array[$r] = array('extra.fk_object' => 'lastrowid-'.MAIN_DB_PREFIX.'commande');
|
||||||
$this->import_regex_array[$r] = [
|
$this->import_regex_array[$r] = array(
|
||||||
'c.multicurrency_code' => 'code@'.MAIN_DB_PREFIX.'multicurrency'
|
'c.multicurrency_code' => 'code@'.MAIN_DB_PREFIX.'multicurrency'
|
||||||
];
|
);
|
||||||
|
|
||||||
$this->import_updatekeys_array[$r] = ['c.ref' => 'Ref'];
|
$this->import_updatekeys_array[$r] = array('c.ref' => 'Ref');
|
||||||
$this->import_convertvalue_array[$r] = [
|
$this->import_convertvalue_array[$r] = array(
|
||||||
'c.fk_soc' => [
|
'c.fk_soc' => array(
|
||||||
'rule' => 'fetchidfromref',
|
'rule' => 'fetchidfromref',
|
||||||
'file' => '/societe/class/societe.class.php',
|
'file' => '/societe/class/societe.class.php',
|
||||||
'class' => 'Societe',
|
'class' => 'Societe',
|
||||||
'method' => 'fetch',
|
'method' => 'fetch',
|
||||||
'element' => 'ThirdParty'
|
'element' => 'ThirdParty'
|
||||||
],
|
),
|
||||||
'c.fk_user_valid' => [
|
'c.fk_user_valid' => array(
|
||||||
'rule' => 'fetchidfromref',
|
'rule' => 'fetchidfromref',
|
||||||
'file' => '/user/class/user.class.php',
|
'file' => '/user/class/user.class.php',
|
||||||
'class' => 'User',
|
'class' => 'User',
|
||||||
'method' => 'fetch',
|
'method' => 'fetch',
|
||||||
'element' => 'user'
|
'element' => 'user'
|
||||||
],
|
),
|
||||||
'c.fk_mode_reglement' => [
|
'c.fk_mode_reglement' => array(
|
||||||
'rule' => 'fetchidfromcodeorlabel',
|
'rule' => 'fetchidfromcodeorlabel',
|
||||||
'file' => '/compta/paiement/class/cpaiement.class.php',
|
'file' => '/compta/paiement/class/cpaiement.class.php',
|
||||||
'class' => 'Cpaiement',
|
'class' => 'Cpaiement',
|
||||||
'method' => 'fetch',
|
'method' => 'fetch',
|
||||||
'element' => 'cpayment'
|
'element' => 'cpayment'
|
||||||
],
|
),
|
||||||
];
|
);
|
||||||
|
|
||||||
//Import CPV Lines
|
//Import CPV Lines
|
||||||
$r++;
|
$r++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user