Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Critical
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.20
-
Fix Version/s: 4.7.21
-
Component/s: CiviContribute
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
Using the API Explorer ->
Which equates to:
$result = civicrm_api3('Contribution', 'repeattransaction', array(
'sequential' => 1,
'original_contribution_id' => 3711,
'contribution_status_id' => "Pending",
'contribution_recur_id' => 328,
));
Produces:
"is_error": 0,
"version": 3,
"count": 1,
"id": 3712,
"values": {
"3712": {
"id": "3712",
"contact_id": "69",
"financial_type_id": "1",
"contribution_page_id": "",
"payment_instrument_id": "1",
"receive_date": "2017-06-02 22:26:36",
"non_deductible_amount": "0.00",
"total_amount": "3.33",
"fee_amount": "0.00",
"net_amount": "3.33",
"trxn_id": "",
"invoice_id": "",
"currency": "CAD",
...
CAD is NOT correct -> it is the default currency on this site - however:
Original Contribution ID 3711 was in USD:
| 3711 | 69 | 1 | NULL | 1 | 2017-06-02 22:25:05 | 0.00 | 3.33 | 0.00 | 3.33 | A9D14D94:1496463904 | 59f65fd44ad532d437df9d60309887ce | USD | NULL | 0 | NULL | NULL | Submit Credit Card Payment by: G, KarinG | 0 | 328 | 0 | 0 | 1 | 751 | NULL | NULL | NULL | NULL | NULL
Because series 328 is in USD:
| 328 | 69 | 3.33 | USD | day | 1 | 5 | 2017-06-02 22:25:03 | 2017-06-02 22:25:03 | 2017-06-02 22:25:05 | NULL | NULL | NULL | NULL | 59f65fd44ad532d437df9d60309887ce | 5 | 0 | 1 | 2017-06-03 22:25:03 | 0 | NULL | 0 | 33 | 1 | 1 | NULL | 0 | NULL |