mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
more warning corrected
This commit is contained in:
parent
63a02083b8
commit
847870f29f
|
|
@ -347,6 +347,12 @@ if ($result) {
|
|||
}
|
||||
|
||||
// Show total margin
|
||||
if (!isset($cumul_achat)) {
|
||||
$cumul_achat = 0;
|
||||
}
|
||||
if (!isset($cumul_vente)) {
|
||||
$cumul_vente = 0;
|
||||
}
|
||||
$totalMargin = $cumul_vente - $cumul_achat;
|
||||
|
||||
$marginRate = ($cumul_achat != 0) ? (100 * $totalMargin / $cumul_achat) : '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user