Mark paid is working on the payment form.
$payable_types = false;
$account_status = false;
$accounts = false;
+ $errors = false;
// For lockedToMember.
$lockedToMember = false;
} else {
$paymentSuccess = true;
}
-
-
break;
+
case 'pay_by_check':
break;
+
case 'mark_paid':
// Mark this invoice as paid
+ // Create new payment.
+ $payment_id = $BillingSupport->createPayment( $account_id, $amount, 'Marked Paid' );
+
+ // Record the payment.
+ $BillingSupport->recordPayment( $payment_id, $account_id, $amount, $invoices );
+
+ break;
+
+ default:
+
break;
}
+
$view = 'statements';
break;