diff --git a/htdocs/langs/en_US/modulebuilder.lang b/htdocs/langs/en_US/modulebuilder.lang index a1fffa6199e..6e5f692ae18 100644 --- a/htdocs/langs/en_US/modulebuilder.lang +++ b/htdocs/langs/en_US/modulebuilder.lang @@ -140,8 +140,8 @@ UseSpecificFamily = Use a specific family UseSpecificAuthor = Use a specific author UseSpecificVersion = Use a specific initial version IncludeRefGeneration=The reference of this object must be generated automatically by custom numbering rules -IncludeRefGenerationHelp=Check this if you want to include code to manage the generation of the reference automatically using custom numbering rules -IncludeDocGeneration=I want the feature to generate some documents (PDF, ODT) from templates for this object +IncludeRefGenerationHelp=Check this if you want to include code to manage the generation of the reference automatically using custom numbering rules. If unckeck, a simpler +1 counter will be used. +IncludeDocGeneration=I want a feature to generate some documents (PDF, ODT) from templates for this object IncludeDocGenerationHelp=If you check this, some code will be generated to add a "Generate document" box on the record. ShowOnCombobox=Show value into combo boxes KeyForTooltip=Key for tooltip diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index 9f6abc39c25..50f39a1d3c7 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -4078,7 +4078,7 @@ if ($module == 'initmodule') { print '
| '.$langs->trans("Year").' | '; +print ''.$langs->trans("NbOfOrders").' | '; +print '% | '; +print ''.$langs->trans("AmountTotal").' | '; +print '% | '; +print ''.$langs->trans("AmountAverage").' | '; +print '% | '; +print '
| 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$oldyear.' | '; + print '0 | '; + print ''; + print ' | 0 | '; + print ''; + print ' | 0 | '; + print ''; + print ' |
| 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$year.' | '; + print ''.$val['nb'].' | '; + print ''.(isset($val['nb_diff']) ? round($val['nb_diff']) : "0").'% | '; + print ''.price(price2num($val['total'], 'MT'), 1).' | '; + print ''.(isset($val['total_diff']) ? round($val['total_diff']) : "0").'% | '; + print ''.price(price2num($val['avg'], 'MT'), 1).' | '; + print ''.(isset($val['avg_diff']) ? round($val['avg_diff']) : "0").'% | '; + print '
| ';
+if ($mesg) {
+ print $mesg;
+} else {
+ print $px1->show();
+ print " \n"; + print $px2->show(); + print " \n"; + print $px3->show(); +} +print ' |