Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #45 from monishdeb/issue-44
Browse files Browse the repository at this point in the history
issue#44 fix
  • Loading branch information
monishdeb authored Jan 11, 2021
2 parents 8d3d621 + d3beffc commit 372de87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Lineitemedit/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -950,10 +950,10 @@ public static function createPriceFieldByContributionID($contributionID) {
]);

$newPriceFieldValue = civicrm_api3('PriceFieldValue', 'create', [
'label' => ts('Additional Lineitem ' . $totalPF),
'label' => ts('Additional Lineitem %1', [1 => $totalPF]),
'price_field_id' => $newPriceField['id'],
'amount' => 1.00,
'financial_type_id' => civicrm_api3('PriceFieldValue', 'getvalue', ['id' => $previousLineItem['price_field_value_id'], 'return' => 'financial_type_id']),
'financial_type_id' => $previousLineItem['financial_type_id'],
]);

return [$newPriceField['id'], $newPriceFieldValue['id']];
Expand Down

0 comments on commit 372de87

Please sign in to comment.