Skip to content
Snippets Groups Projects
Commit 59a30cd2 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #5120 from atm-maxime/fix_total_on_cabyprodserv

Fix wrong qty total in ca by prod/serv report
parents 8a487132 0a67614e
Branches
Tags
No related merge requests found
...@@ -177,6 +177,8 @@ report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportl ...@@ -177,6 +177,8 @@ report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportl
// SQL request // SQL request
$catotal=0; $catotal=0;
$catotal_ht=0;
$qtytotal=0;
if ($modecompta == 'CREANCES-DETTES') if ($modecompta == 'CREANCES-DETTES')
{ {
...@@ -386,6 +388,8 @@ if ($modecompta == 'CREANCES-DETTES') ...@@ -386,6 +388,8 @@ if ($modecompta == 'CREANCES-DETTES')
// Total // Total
print '<tr class="liste_total">'; print '<tr class="liste_total">';
print '<td>'.$langs->trans("Total").'</td>'; print '<td>'.$langs->trans("Total").'</td>';
print '<td align="right">'.price($qtytotal).'</td>';
print '<td>&nbsp;</td>';
print '<td align="right">'.price($catotal_ht).'</td>'; print '<td align="right">'.price($catotal_ht).'</td>';
print '<td align="right">'.price($catotal).'</td>'; print '<td align="right">'.price($catotal).'</td>';
print '<td>&nbsp;</td>'; print '<td>&nbsp;</td>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment