question: public BigDecimal calculateTotalCollectedAmt ( final BillReceiptInfo bri , final List < EgBillDetails > billDetList ) throws InvalidAccountHeadException { return bri . getTotalAmount ( ) ; }
target:  Called to calculate the total Receipt Amount i,e the amount which has been paid for the Bill From the BillReceiptInfo the amount will be calculated. If the Glcode which exists in EgBillDetails is not matching with the Glcode the ErpCollection send ,then an exception will be raised(InvalidAccountHeadException).