From 5ef3998a5451a7edc0004f10f640d725c72f9f4a Mon Sep 17 00:00:00 2001 From: Danelif Date: Tue, 2 Dec 2025 13:03:27 +0200 Subject: [PATCH] improve purchase order line import by adding rang and flexible key selection --- htdocs/core/modules/modFournisseur.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/modules/modFournisseur.class.php b/htdocs/core/modules/modFournisseur.class.php index 8053f2d6aaa..d006f225b12 100644 --- a/htdocs/core/modules/modFournisseur.class.php +++ b/htdocs/core/modules/modFournisseur.class.php @@ -942,7 +942,7 @@ class modFournisseur extends DolibarrModules 'cd.fk_product' => 'rowid@'.MAIN_DB_PREFIX.'product', 'cd.multicurrency_code' => 'code@'.MAIN_DB_PREFIX.'multicurrency' ); - $this->import_updatekeys_array[$r] = array('cd.fk_commande' => 'Purchase Order Id'); + $this->import_updatekeys_array[$r] = array('cd.fk_commande' => 'Purchase Order Id', 'cd.rang' => 'LinePosition'); $this->import_convertvalue_array[$r] = array( 'cd.fk_commande' => array( 'rule' => 'fetchidfromref',