$this->assign('paymentType', $this->_paymentType);
$this->assign('paymentAmt', abs($paymentAmt));
- $this->_paymentProcessor = array('billing_mode' => 1);
+ $this->setPageTitle($this->_refund ? ts('Refund') : ts('Payment'));
- $title = ($this->_refund) ? "Refund for {$this->_contributorDisplayName}" : "Payment from {$this->_contributorDisplayName}";
- if ($title) {
- CRM_Utils_System::setTitle(ts('%1', array(1 => $title)));
- }
+ $this->_paymentProcessor = array('billing_mode' => 1);
}
/**
$billingDefaults = $this->getProfileDefaults('Billing', $this->_contactId);
$defaults = array_merge($defaults, $billingDefaults);
-
- // now fix all state country selectors, set correct state based on country
- CRM_Core_BAO_Address::fixAllStateSelects($this, $defaults);
}
if (empty($defaults['trxn_date']) && empty($defaults['trxn_date_time'])) {
);
$this->add('text', 'check_number', ts('Check Number'), $attributes['financial_trxn_check_number']);
- $trxnId = $this->add('text', 'trxn_id', ts('Transaction ID'), $attributes['trxn_id']);
+ $this->add('text', 'trxn_id', ts('Transaction ID'), array('class' => 'twelve') + $attributes['trxn_id']);
//add receipt for offline contribution
$this->addElement('checkbox', 'is_email_receipt', ts('Send Receipt?'));