$membership_status = CRM_Member_PseudoConstant::membershipStatus($membership->status_id, NULL, 'label');
$template->assign('mem_status', $membership_status);
if ($membership_status == 'Pending' && $membership->is_pay_later == 1) {
- $template->assign('is_pay_later', 1);
+ $values['is_pay_later'] = 1;
}
// if separate payment there are two contributions recorded and the
'membership_assign',
'amount',
'receipt_date',
+ 'is_pay_later',
);
foreach ($valuesRequiredForTemplate as $valueRequiredForTemplate) {
'useForMember' => $values['useForMember'],
'membership_assign' => $values['membership_assign'],
'amount' => $values['amount'],
+ 'is_pay_later' => $values['is_pay_later'],
'receipt_date' => !$values['receipt_date'] ?: date('YmdHis', strtotime($values['receipt_date'])),
);