@@ -1657,7 +1657,7 @@ public static function getLine(&$params, &$lineItem, $priceSetID, $field, $id):
1657
1657
case 'Text ' :
1658
1658
$ firstOption = reset ($ field ['options ' ]);
1659
1659
$ params ["price_ {$ id }" ] = [$ firstOption ['id ' ] => $ params ["price_ {$ id }" ]];
1660
- CRM_Price_BAO_LineItem::format ($ id , $ params , $ field , $ lineItem, CRM_Utils_Array:: value ( ' partial_payment_total ' , $ params ) );
1660
+ CRM_Price_BAO_LineItem::format ($ id , $ params , $ field , $ lineItem );
1661
1661
$ optionValueId = key ($ field ['options ' ]);
1662
1662
1663
1663
if (CRM_Utils_Array::value ('name ' , $ field ['options ' ][$ optionValueId ]) === 'contribution_amount ' ) {
@@ -1691,7 +1691,7 @@ public static function getLine(&$params, &$lineItem, $priceSetID, $field, $id):
1691
1691
$ amount_override = NULL ;
1692
1692
1693
1693
if ($ priceSetID && count (self ::filterPriceFieldsFromParams ($ priceSetID , $ params )) === 1 ) {
1694
- $ amount_override = CRM_Utils_Array::value ('partial_payment_total ' , $ params , CRM_Utils_Array:: value ( ' total_amount ' , $ params) );
1694
+ $ amount_override = CRM_Utils_Array::value ('total_amount ' , $ params );
1695
1695
}
1696
1696
CRM_Price_BAO_LineItem::format ($ id , $ params , $ field , $ lineItem , $ amount_override );
1697
1697
if (!empty ($ field ['options ' ][$ optionValueId ]['tax_rate ' ])) {
@@ -1706,15 +1706,15 @@ public static function getLine(&$params, &$lineItem, $priceSetID, $field, $id):
1706
1706
$ params ["price_ {$ id }" ] = [$ params ["price_ {$ id }" ] => 1 ];
1707
1707
$ optionValueId = CRM_Utils_Array::key (1 , $ params ["price_ {$ id }" ]);
1708
1708
1709
- CRM_Price_BAO_LineItem::format ($ id , $ params , $ field , $ lineItem, CRM_Utils_Array:: value ( ' partial_payment_total ' , $ params ) );
1709
+ CRM_Price_BAO_LineItem::format ($ id , $ params , $ field , $ lineItem );
1710
1710
if (!empty ($ field ['options ' ][$ optionValueId ]['tax_rate ' ])) {
1711
1711
$ lineItem = self ::setLineItem ($ field , $ lineItem , $ optionValueId , $ totalTax );
1712
1712
}
1713
1713
break ;
1714
1714
1715
1715
case 'CheckBox ' :
1716
1716
1717
- CRM_Price_BAO_LineItem::format ($ id , $ params , $ field , $ lineItem, CRM_Utils_Array:: value ( ' partial_payment_total ' , $ params ) );
1717
+ CRM_Price_BAO_LineItem::format ($ id , $ params , $ field , $ lineItem );
1718
1718
foreach ($ params ["price_ {$ id }" ] as $ optionId => $ option ) {
1719
1719
if (!empty ($ field ['options ' ][$ optionId ]['tax_rate ' ])) {
1720
1720
$ lineItem = self ::setLineItem ($ field , $ lineItem , $ optionId , $ totalTax );
0 commit comments