Browse Source

Correctif avant mise en ligne #14

develop
Fabien Normand 2 years ago
parent
commit
1117f539ef
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Solver/Order/OrderProductReductionCatalogSolver.php

+ 2
- 2
Solver/Order/OrderProductReductionCatalogSolver.php View File

$text = ''; $text = '';


if ($orderProductReductionCatalog->getUnit() == 'amount') { if ($orderProductReductionCatalog->getUnit() == 'amount') {
$text .= '- ' . $orderProductReductionCatalog->getValue() . ' €';
$text .= '- ' . number_format($orderProductReductionCatalog->getValue(),2) . ' €';
} }


if ($orderProductReductionCatalog->getUnit() == 'percent') { if ($orderProductReductionCatalog->getUnit() == 'percent') {
$text .= '- ' . $orderProductReductionCatalog->getValue() . ' %';
$text .= '- ' . number_format($orderProductReductionCatalog->getValue(),2) . ' %';
} }


return $text; return $text;

Loading…
Cancel
Save