This causes work-arounds & flakiness by tests using this fn.
Better to add as required.
*/
public function testGetFinancialTransactionsList() {
$individualID = $this->individualCreate();
- $this->contributionCreate(array('contact_id' => $individualID));
+ $this->contributionCreate(array('contact_id' => $individualID, 'trxn_id' => 12345));
$batch = $this->callAPISuccess('Batch', 'create', array('title' => 'test', 'status_id' => 'Open'));
CRM_Core_DAO::executeQuery("
INSERT INTO civicrm_entity_batch (entity_table, entity_id, batch_id)
'civicrm_membership_type',
'civicrm_membership',
'civicrm_uf_match',
+ 'civicrm_email',
)
);
foreach (array(17, 18, 23, 32) as $contactID) {
'financial_type_id' => 1,
'payment_instrument_id' => 1,
'non_deductible_amount' => 10.00,
- 'trxn_id' => 12345,
- 'invoice_id' => 67890,
'source' => 'SSF',
'contribution_status_id' => 1,
), $params);
$params = array_merge($params, array(
'id' => $contributionID,
'invoice_number' => CRM_Utils_Array::value('invoice_prefix', Civi::settings()->get('contribution_invoice_settings')) . "" . $contributionID,
+ 'trxn_id' => 12345,
+ 'invoice_id' => 6789,
));
$contributionID = $this->contributionCreate($params);