Skip to content

Commit

Permalink
FIX : Arrondi
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-irvine committed Oct 1, 2024
1 parent 8b6f32b commit cfde887
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion htdocs/compta/stats/cabyprodserv.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@

// Quantity
print '<td class="right">';
print price($qty[$key], 1, $langs, 0, 0);
print floatval($qty[$key]);
print '</td>';

// Percent;
Expand Down
14 changes: 7 additions & 7 deletions htdocs/core/lib/product.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function show_stats_for_company($product, $socid)
print '</td><td class="right">';
print $product->stats_propale['nb'];
print '</td><td class="right">';
print price($product->stats_propale['qty'], 1, $langs, 0, 0);
print floatval($product->stats_propale['qty']);
print '</td>';
print '</tr>';
}
Expand All @@ -471,7 +471,7 @@ function show_stats_for_company($product, $socid)
print '</td><td class="right">';
print $product->stats_proposal_supplier['nb'];
print '</td><td class="right">';
print price($product->stats_proposal_supplier['qty'], 1, $langs, 0, 0);
print floatval($product->stats_proposal_supplier['qty']);
print '</td>';
print '</tr>';
}
Expand All @@ -490,7 +490,7 @@ function show_stats_for_company($product, $socid)
print '</td><td class="right">';
print $product->stats_commande['nb'];
print '</td><td class="right">';
print price($product->stats_commande['qty'], 1, $langs, 0, 0);
print floatval($product->stats_commande['qty']);
print '</td>';
print '</tr>';
}
Expand All @@ -509,7 +509,7 @@ function show_stats_for_company($product, $socid)
print '</td><td class="right">';
print $product->stats_commande_fournisseur['nb'];
print '</td><td class="right">';
print price($product->stats_commande_fournisseur['qty'], 1, $langs, 0, 0);
print floatval($product->stats_commande_fournisseur['qty']);
print '</td>';
print '</tr>';
}
Expand All @@ -528,7 +528,7 @@ function show_stats_for_company($product, $socid)
print '</td><td class="right">';
print $product->stats_facture['nb'];
print '</td><td class="right">';
print price($product->stats_facture['qty'], 1, $langs, 0, 0);
print floatval($product->stats_facture['qty']);
print '</td>';
print '</tr>';
}
Expand Down Expand Up @@ -566,7 +566,7 @@ function show_stats_for_company($product, $socid)
print '</td><td class="right">';
print $product->stats_facture_fournisseur['nb'];
print '</td><td class="right">';
print price($product->stats_facture_fournisseur['qty'], 1, $langs, 0, 0);
print floatval($product->stats_facture_fournisseur['qty']);
print '</td>';
print '</tr>';
}
Expand All @@ -586,7 +586,7 @@ function show_stats_for_company($product, $socid)
print '</td><td class="right">';
print $product->stats_contrat['nb'];
print '</td><td class="right">';
print price($product->stats_contrat['qty'], 1, $langs, 0, 0);
print floatval($product->stats_contrat['qty']);
print '</td>';
print '</tr>';
}
Expand Down

0 comments on commit cfde887

Please sign in to comment.