--CRM-16259, add propotional payments when partially paid through participant UI
authorPradeep Nayak <pradpnayak@gmail.com>
Wed, 16 Dec 2015 13:58:06 +0000 (19:28 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 11 Jan 2016 10:26:10 +0000 (15:56 +0530)
CRM/Event/Form/Participant.php

index edbfd0da5413b8114ce82687231222b78196e6b4..d9635745bb020d2ae5afc0ce11ccce35b838ee39 100644 (file)
@@ -1447,6 +1447,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
               $lineItem[$this->_priceSetId][$lineKey] = $line;
             }
             CRM_Price_BAO_LineItem::processPriceSet($participants[$num]->id, $lineItem, CRM_Utils_Array::value($num, $contributions, NULL), 'civicrm_participant');
+            CRM_Contribute_BAO_Contribution::addPayments($value, $contributions);
           }
         }
       }