|
|
|
|
|
|
|
|
$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; |