add support for billable members at contrib level
This commit is contained in:
parent
bc15e9e42a
commit
466d68bad1
@ -11,16 +11,18 @@ class CRM_Tbusainvoicegen_Timebank {
|
||||
const DUEDATE = 'custom_245';
|
||||
const PERIODBEGIN = 'custom_246';
|
||||
const PERIODEND = 'custom_247';
|
||||
const BILLABLEMEMBERSCONTRIB = 'custom_249';
|
||||
|
||||
// Local dev settings.
|
||||
// const TBBILLABLEFIELD = 'custom_9';
|
||||
// const BILLABLEMEMBERFIELD = 'custom_10';
|
||||
// const BILLINGPERIODFIELD = 'custom_11';
|
||||
// const TBCREATED = 'custom_27';
|
||||
// const INVOICEDATE = 'custom_30';
|
||||
// const DUEDATE = 'custom_31';
|
||||
// const PERIODBEGIN = 'custom_32';
|
||||
// const PERIODEND = 'custom_33';
|
||||
// const TBBILLABLEFIELD = 'custom_14';
|
||||
// const BILLABLEMEMBERFIELD = 'custom_15';
|
||||
// const BILLINGPERIODFIELD = 'custom_7';
|
||||
// const TBCREATED = 'custom_16';
|
||||
// const INVOICEDATE = 'custom_9';
|
||||
// const DUEDATE = 'custom_11';
|
||||
// const PERIODBEGIN = 'custom_12';
|
||||
// const PERIODEND = 'custom_13';
|
||||
// const BILLABLEMEMBERSCONTRIB = 'custom_8';
|
||||
|
||||
/**
|
||||
* Set the pricing here.
|
||||
@ -242,6 +244,7 @@ class CRM_Tbusainvoicegen_Timebank {
|
||||
self::INVOICEDATE => $this->invoiceDate->format('Y-m-d'),
|
||||
self::PERIODBEGIN => $this->periodBegin->format('Y-m-d'),
|
||||
self::PERIODEND => $this->periodEnd->format('Y-m-d'),
|
||||
self::BILLABLEMEMBERSCONTRIB => $this->memberCount,
|
||||
'total_amount' => $this->price,
|
||||
'contact_id' => $this->cid,
|
||||
'contribution_status_id' => 'Pending',
|
||||
|
Loading…
Reference in New Issue
Block a user