*/
public $_action;
+ /**
+ * Monetary fields that may be submitted.
+ *
+ * Any fields in this list will be converted to non-localised format
+ * if retrieved by `getSubmittedValue`
+ *
+ * @var array
+ */
+ protected $submittableMoneyFields = [];
+
/**
* Available payment processors.
*
if (empty($this->exportedValues)) {
$this->exportedValues = $this->controller->exportValues($this->_name);
}
- return $this->exportedValues[$fieldName] ?? NULL;
+ $value = $this->exportedValues[$fieldName] ?? NULL;
+ if (in_array($fieldName, $this->submittableMoneyFields, TRUE)) {
+ return CRM_Utils_Rule::cleanMoney($value);
+ }
+ return $value;
}
/**