Dolibarr ERP & CRM » Bugs » bug #621
probleme exportLatest modifications
Answer now
Snapshot Details |
Submitted by: | Jean Heimburger (tiaris) | | Submitted on: | 2012-12-04 14:18 |
Last Modified On: | 2013-01-02 18:29 | | Dolibarr version: | 3.2.1 |
PHP version: | 5.3 | | Database type and version: | mysql 5 |
OS Type/Version: | debian | | Category: | Module Invoice customer |
Severity: | 3 | |
Summary: | probleme export |
Description: | j'ai ajouté un champ poids dans l'export des factures clients qui et calculé ainsi ifnull(p.weight,0.0) * fd.qty (poids d'une ligne)
l'export plante sur une erreur sql
Solution corriger la classe export.class.php ligne 230
remplacer $newfield=$key.' as '.str_replace(array('.', '-'),'_',$key);;
par $newfield=$key.' as '.$value;
|
Step to reproduce bug: | Les champs calculées, au sein du sql, ne sont pas gérés en effet car non portable, ne tenant pas compte de la config locale (arrondi sur les montants, param de langue, prise en compte des regles métiers ou habilitations, etc...).
Un mécanisme pour ajouter des fonctions par des methodes PHP est cependant en cours. |
Status |
Resolution: | Fixed | | Assigned to: | Laurent Destailleur (eldy) |
Status: | Open | |
Comments- Laurent Destailleur 2013-03-06 22:05
- The bug has been corrected inside GIT sources
(http://www.github.com/Dolibarr/dolibarr).
So fix should be available with next stable release. - Jean Heimburger 2013-01-02 18:29
- There is not enough information to qualify this bug. This is
often missing information:
- What action fail (which screen, menu or button) ?
- What is the error message/behaviour or no way to reproduce the
problem with informations provided ?
- How can we reproduce problem.
So the bug is classified as "Works For Me".
- Jean Heimburger 2012-12-04 15:06
- c'est plus compliqué.
En fait, on dirait qu'on ne peut plus ajouter de champs calculés dans les rapports. Dommage c'était bien pratique
|
|
(http://www.github.com/Dolibarr/dolibarr).
So fix should be available with next stable release.
Invalid→ FixedNone→ Laurent Destailleur (eldy)