$defaults['total_amount'] = CRM_Utils_Money::formatLocaleNumericRoundedForDefaultCurrency(CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipType',
$this->_memType,
'minimum_fee'
- ));
+ ) ?? 0);
$defaults['record_contribution'] = 0;
$defaults['num_terms'] = 1;
//CRM-16950
$taxAmount = NULL;
- $totalAmount = $values['minimum_fee'] ?? NULL;
+ $totalAmount = $values['minimum_fee'] ?? 0;
// @todo - feels a bug - we use taxRate from the form default rather than from the specified type?!?
if ($this->getTaxRateForFinancialType($values['financial_type_id'])) {
$taxAmount = ($taxRate / 100) * CRM_Utils_Array::value('minimum_fee', $values);