Sfoglia il codice sorgente

Correctif avant mise en ligne #14

develop
Fabien Normand 2 anni fa
parent
commit
1117f539ef
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      Solver/Order/OrderProductReductionCatalogSolver.php

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

@@ -12,11 +12,11 @@ class OrderProductReductionCatalogSolver
$text = '';

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

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

return $text;

Loading…
Annulla
Salva