/**
* Function to set variables up before form is built
*
+ * @param $form
+ *
* @return void
* @access public
*/
*
* @access public
*
+ * @param $form
+ *
* @return void
*/
static function setDefaultValues(&$form) {
if ($form->_action == CRM_Core_Action::ADD && !$form->_mode && $form->_isPaidEvent) {
$defaults[$form->_pId]['record_contribution'] = 1;
}
-
+
//CRM-13420
if (empty($defaults['payment_instrument_id'])) {
$defaults[$form->_pId]['payment_instrument_id'] = key(CRM_Core_OptionGroup::values('payment_instrument', FALSE, FALSE, FALSE, 'AND is_default = 1'));
*
* @access public
*
+ * @param $participantID
+ * @param null $eventID
+ * @param bool $includeQtyZero
+ *
* @return void
*/
static function setDefaultPriceSet($participantID, $eventID = NULL, $includeQtyZero = TRUE) {
/**
* Function to build the form
*
+ * @param $form
+ *
* @return void
* @access public
*/
CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_Contribution', 'check_number')
);
- $form->add('text', 'total_amount', ts('Total Amount'),
+ $form->add('text', 'total_amount', ts('Amount'),
CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_Contribution', 'total_amount')
);
}