Ejemplo n.º 1
0
 /**
  * @param \Generated\Shared\Transfer\ClauseTransfer $clauseTransfer
  *
  * @return void
  */
 protected function convertSinglePrice(ClauseTransfer $clauseTransfer)
 {
     $amountInCents = $this->currencyManager->convertDecimalToCent($this->formatValue($clauseTransfer->getValue()));
     $clauseTransfer->setValue($amountInCents);
 }
Ejemplo n.º 2
0
 /**
  * @param int $value
  * @param bool $includeSymbol
  *
  * @return string
  */
 protected function formatAmount($value, $includeSymbol = true)
 {
     $value = $this->currencyManager->convertCentToDecimal($value);
     return $this->currencyManager->format($value, $includeSymbol);
 }