Commit 39cd628c authored by jaapjansma's avatar jaapjansma
Browse files

fixed issue with creating an activity for each collection

parent 092eeca1
......@@ -13,8 +13,8 @@
<url desc="Documentation">https://lab.civicrm.org/extensions/sepaocrformat/blob/master/README.md</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-03-26</releaseDate>
<version>1.3-dev</version>
<releaseDate>2020-05-29</releaseDate>
<version>1.3</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.13</ver>
......
......@@ -52,16 +52,6 @@ class CRM_Sepa_Logic_Format_OCR extends CRM_Sepa_Logic_Format {
$contributions[$idx]['transaction_type'] = '21';
}
$message = E::ts('KID is not generated and how do we know notification to bank?');
$details = array(
'contribution id' => $contribution['id'],
'campaign id' => isset($contribution['contribution_campaign_id']) ? $contribution['contribution_campaign_id'] : '',
'receive date' => $contribution['receive_date'],
'amount' => $contribution['total_amount'],
'contact id' => $contribution['contact_id'],
);
CRM_Sepaocrformat_Activity::createActivity(E::ts('No KID generation and no notification to bank'), $message, $details);
$contact = CRM_Core_DAO::executeQuery($contactSql, array(1 => array($contribution['contact_id'], 'Integer')));
if ($contact->fetch()) {
$firstName = @iconv("UTF-8", "ISO-8859-1", mb_substr($contact->first_name, 0, 5));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment