$this->add('textarea', 'receipt_text', ts('Confirmation Message'));
// add various dates
- $this->addDateTime('trxn_date', ts('Received'), FALSE, array('formatType' => 'activityDateTime'));
+ $dateLabel = ($this->_refund) ? 'Refund Date' : 'Received Date';
+ $this->addDateTime('trxn_date', ts('%1', array(1 => $dateLabel)), FALSE, array('formatType' => 'activityDateTime'));
if ($this->_contactId && $this->_id) {
if ($this->_component == 'event') {
$errors['total_amount'] = ts('Payment amount cannot be greater than owed amount');
}
if ($self->_paymentType == 'refund' && $fields['total_amount'] != abs($self->_refund)) {
- $errors['total_amount'] = ts('Refund amount should not differ');
+ $errors['total_amount'] = ts('Refund amount must equal refund due amount.');
}
$netAmt = $fields['total_amount'] - $fields['fee_amount'];
if (!empty($fields['net_amount']) && $netAmt != $fields['net_amount']) {
- $errors['net_amount'] = ts('Net amount should be difference of payment amount and fee amount');
+ $errors['net_amount'] = ts('Net amount should be equal to the difference between payment amount and fee amount.');
}
return $errors;
}
<tr class="crm-payment-form-block-total_amount">
<td class="label">{$form.total_amount.label}</td>
<td>
- <span id='totalAmount'>{$form.currency.html|crmAddClass:eight} {$form.total_amount.html|crmAddClass:eight}</span> {$paymentAmt}
+ <span id='totalAmount'>{$form.currency.html|crmAddClass:eight} {$form.total_amount.html|crmAddClass:eight}</span> <span class="status">{if $paymentType EQ 'refund'}{ts}Refund Due{/ts}{else}{ts}Balance Owed{/ts}{/if}: {$paymentAmt|crmMoney}</span>
</td>
</tr>
</table>
<div class="crm-accordion-wrapper crm-accordion_title-accordion crm-accordion-processed" id="paymentDetails_Information">
<div class="crm-accordion-header">
- {ts}Payment Details{/ts}
+ {if $paymentType EQ 'refund'}{ts}Refund Details{/ts}{else}{ts}Payment Details{/ts}{/if}
</div>
<div class="crm-accordion-body">
<table class="form-layout-compressed" >
<tr class="crm-payment-form-block-is_email_receipt">
<td class="label">
{$form.is_email_receipt.label}</td><td>{$form.is_email_receipt.html}
- <span class="description">{ts 1=$email}Automatically email a receipt for this payment to %1?{/ts}</span>
+ <span class="description">{ts 1=$email}Automatically email a receipt to %1?{/ts}</span>
</td>
</tr>
{/if}
<tr id='notice' class="crm-event-eventfees-form-block-receipt_text">
<td class="label">{$form.receipt_text.label}</td>
<td><span class="description">
- {ts}Enter a message you want included at the beginning of the confirmation email. EXAMPLE: 'Thanks for registering for this event.'{/ts}
+ {ts}Enter a message you want included at the beginning of the confirmation email.{/ts}
</span><br />
{$form.receipt_text.html|crmAddClass:huge}
</td>