return;
}
- $this->assign('showCheckNumber', TRUE);
-
$this->_fromEmails = CRM_Core_BAO_Email::getFromEmail();
if (in_array('CiviPledge', CRM_Core_Config::singleton()->enableComponents) && !$this->_formType) {
if ($this->_online) {
$this->assign('hideCalender', TRUE);
}
- $checkNumber = $this->add('text', 'check_number', ts('Check Number'), $attributes['contribution_check_number']);
$this->addDateTime('receipt_date', ts('Receipt Date'), FALSE, array('formatType' => 'activityDateTime'));
$this->addDateTime('cancel_date', ts('Cancelled / Refunded Date'), FALSE, array('formatType' => 'activityDateTime'));
if ($totalAmount) {
$totalAmount->freeze();
}
- $checkNumber->freeze();
$paymentInstrument->freeze();
$trxnId->freeze();
$financialType->freeze();
return array('credit_card_type', 'pan_truncation');
}
elseif ($paymentInstrument === 'Check') {
- // Really we should render check_number here, but we need to review how we edit
- // check_numebr since we expose it as editable on the contribution form,
- // even though it should only be editable from a transation specific form.
- return array();
+ return array('check_number');
}
return array();
}
<td >{$form.payment_instrument_id.html} {help id="payment_instrument_id"}</td>
</td>
</tr>
- {if $showCheckNumber || !$isOnline}
- <tr id="checkNumber" class="crm-payment-form-block-check_number">
- <td class="label">{$form.check_number.label}</td>
- <td>{$form.check_number.html}</td>
- </tr>
- {/if}
<tr class="crm-payment-form-block-trxn_id">
<td class="label">{$form.trxn_id.label}</td>
<td>{$form.trxn_id.html} {help id="id-trans_id"}</td>
<td {$valueStyle}>{$form.payment_instrument_id.html} {help id="payment_instrument_id"}</td>
</td>
</tr>
- {if $showCheckNumber || !$isOnline}
- <tr id="checkNumber" class="crm-contribution-form-block-check_number">
- <td class="label">{$form.check_number.label}</td>
- <td>{$form.check_number.html}</td>
- </tr>
- {/if}
<tr class="crm-contribution-form-block-trxn_id">
<td class="label">{$form.trxn_id.label}</td>
<td {$valueStyle}>{$form.trxn_id.html} {help id="id-trans_id"}</td>
{/if}
-{include file='CRM/Core/BillingBlockWrapper.tpl'}
+{if $action neq 2}
+ {include file='CRM/Core/BillingBlockWrapper.tpl'}
+{/if}
{if ($email OR $batchEmail) and $outBound_option != 2}
<fieldset id="send_confirmation_receipt"><legend>{if $paid}{ts}Registration Confirmation and Receipt{/ts}{else}{ts}Registration Confirmation{/ts}{/if}</legend>
<td class="label">{$form.payment_instrument_id.label}<span class='marker'>*</span></td>
<td>{$form.payment_instrument_id.html} {help id="payment_instrument_id" file="CRM/Contribute/Page/Tab.hlp"}</td>
</tr>
- <tr id="checkNumber" class="crm-{$formClass}-form-block-check_number">
- <td class="label">{$form.check_number.label}</td>
- <td>{$form.check_number.html|crmAddClass:six}</td>
- </tr>
{if $action neq 2 }
<tr class="crm-{$formClass}-form-block-trxn_id">
<td class="label">{$form.contribution_status_id.label}</td>
<td>{$form.contribution_status_id.html}</td>
</tr>
+
+ <tr class="crm-membership-form-block-billing">
+ <td colspan="2">
+ {include file='CRM/Core/BillingBlockWrapper.tpl'}
+ </td>
+ </tr>
</table>
</fieldset></td></tr>
{/if}
<td>{$form.payment_processor_id.html}</td>
</tr>
{/if}
-<tr class="crm-membership-form-block-billing">
- <td colspan="2">
- {include file='CRM/Core/BillingBlockWrapper.tpl'}
- </td>
-</tr>