sequentialcreditnotes.php
Table of Contents
Functions
- sequentialcreditnotes_civicrm_pre() : mixed
- Add a creditnote_id if appropriate.
- sequentialcreditnotes_create_credit_note_id() : string
- Generate credit note id with next available number
Functions
sequentialcreditnotes_civicrm_pre()
Add a creditnote_id if appropriate.
sequentialcreditnotes_civicrm_pre(CRM_Core_DAO $op, string $objectName, int|null $id, array<string|int, mixed> &$params) : mixed
If the contribution is created with cancelled or refunded status, add credit note id do the same for chargeback
- creditnotes for chargebacks entered the code 'accidentally' but since it did we maintain it.
Parameters
- $op : CRM_Core_DAO
- $objectName : string
- $id : int|null
- $params : array<string|int, mixed>
Tags
sequentialcreditnotes_create_credit_note_id()
Generate credit note id with next available number
sequentialcreditnotes_create_credit_note_id() : string
Tags
Return values
string —Credit Note Id.