<div id="priceset" class="hiddenElement"></div>
{/if}
- {if $ppID}{ts}<a href='#' onclick='adjustPayment();'>adjust payment amount</a>{/ts}{help id="adjust-payment-amount"}{/if}
+ {if $ppID}{ts}<a class='action-item crm-hover-button' onclick='adjustPayment();'>adjust payment amount</a>{/ts}{help id="adjust-payment-amount"}{/if}
<div id="totalAmountBlock">
{if $hasPriceSets}<span class="description">{ts}Alternatively, you can use a price set.{/ts}</span>{/if}
<div id="totalTaxAmount" class="label"></div>
<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>
{/literal}{/if}
});
</script>
- {if !$contributionMode}
- {crmAPI var="checkVal" entity="OptionValue" action="getvalue" version="3" option_group_id="payment_instrument" name="Check" return="value"}
- {include file="CRM/common/showHideByFieldValue.tpl"
- trigger_field_id ="payment_instrument_id"
- trigger_value = $checkVal
- target_element_id ="checkNumber"
- target_element_type ="table-row"
- field_type ="select"
- invert = 0
- }
- {/if}
{/if} {* not delete mode if*}
{/if} {* closing of main custom data if *}
cj("#price_set_id option[value='']").html( manual );
cj('label[for="total_amount"]').text('{/literal}{ts}Price Sets{/ts}{literal}');
- cj("#financial_type_id option[value="+financialtypeIds[priceSetId]+"]").prop('selected', true);
+ if (financialtypeIds) {
+ cj("#financial_type_id option[value="+financialtypeIds[priceSetId]+"]").prop('selected', true);
+ }
cj(".crm-contribution-form-block-financial_type_id").css("display", "none");
}