Hello Dolibarr developers,

I just upgraded a Dolibarr installation from 3.6.0 to 3.8.0. All went smooth 
and well !

In the meantime, users around here have created new payment terms (table 
llx_c_payment_term in menu Configuration→Dictionnaires→Conditions de 
règlement). It appears that value from "sortorder" column could not be changed, 
so new ones where selected by default in propal and facture ! :-S

But all was at hand to allow such modification by admin user: so I've made a 
(tiny) patch to allow this change using web interface. :-)

Please find attached my patch.
It was built using script inside "build/patch/" directory on 3.8.0 github's 
official branch.
If it suits you, please add it to future versions (I made no other tests than 
on 3.8.0).

Thanks for the good work and happy hacking !

@+
-- 
J. Fernando Lagrange
Demo-TIC - Outils En Ligne
http://www.demo-tic.org
--- dolibarr-github/htdocs/admin/dict.php	2015-09-24 23:12:17.776254007 +0200
+++ mydolibarr/htdocs/admin/dict.php	2015-09-24 23:07:17.760255439 +0200
@@ -215,7 +215,7 @@
 $tabfield[9] = "code,label,unicode";
 $tabfield[10]= "country_id,country,taux,recuperableonly,localtax1_type,localtax1,localtax2_type,localtax2,accountancy_code_sell,accountancy_code_buy,note";
 $tabfield[11]= "element,source,code,libelle";
-$tabfield[12]= "code,libelle,libelle_facture,nbjour,fdm,decalage";
+$tabfield[12]= "code,sortorder,libelle,libelle_facture,nbjour,fdm,decalage";
 $tabfield[13]= "code,libelle,type,accountancy_code";
 $tabfield[14]= "code,libelle,price,organization,country_id,country";
 $tabfield[15]= "code,libelle,width,height,unit";
@@ -247,7 +247,7 @@
 $tabfieldvalue[9] = "code,label,unicode";
 $tabfieldvalue[10]= "country,taux,recuperableonly,localtax1_type,localtax1,localtax2_type,localtax2,accountancy_code_sell,accountancy_code_buy,note";
 $tabfieldvalue[11]= "element,source,code,libelle";
-$tabfieldvalue[12]= "code,libelle,libelle_facture,nbjour,fdm,decalage";
+$tabfieldvalue[12]= "code,sortorder,libelle,libelle_facture,nbjour,fdm,decalage";
 $tabfieldvalue[13]= "code,libelle,type,accountancy_code";
 $tabfieldvalue[14]= "code,libelle,price,organization,country";
 $tabfieldvalue[15]= "code,libelle,width,height,unit";
@@ -279,7 +279,7 @@
 $tabfieldinsert[9] = "code_iso,label,unicode";
 $tabfieldinsert[10]= "fk_pays,taux,recuperableonly,localtax1_type,localtax1,localtax2_type,localtax2,accountancy_code_sell,accountancy_code_buy,note";
 $tabfieldinsert[11]= "element,source,code,libelle";
-$tabfieldinsert[12]= "code,libelle,libelle_facture,nbjour,fdm,decalage";
+$tabfieldinsert[12]= "code,sortorder,libelle,libelle_facture,nbjour,fdm,decalage";
 $tabfieldinsert[13]= "code,libelle,type,accountancy_code";
 $tabfieldinsert[14]= "code,libelle,price,organization,fk_pays";
 $tabfieldinsert[15]= "code,label,width,height,unit";

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à