Skip to content
Snippets Groups Projects
Commit 8891c196 authored by jitendra's avatar jitendra
Browse files

#1317 - Fix total_amount on repeattransaction when tax amount is involved.

parent 9583e46d
No related branches found
No related tags found
No related merge requests found
......@@ -2510,6 +2510,9 @@ LEFT JOIN civicrm_contribution contribution ON ( componentPayment.contribution_
if (isset($contribution->contribution_page_id) && is_numeric($contribution->contribution_page_id)) {
$contributionParams['contribution_page_id'] = $contribution->contribution_page_id;
}
if (!empty($contribution->tax_amount)) {
$contributionParams['tax_amount'] = $contribution->tax_amount;
}
$createContribution = civicrm_api3('Contribution', 'create', $contributionParams);
$contribution->id = $createContribution['id'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment