public interface ContractorBillService extends BaseService<ContractorBillRegister,Long>
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
calculateTotalPendingAdvance(BigDecimal totalAdvancePaid,
Date billDate,
WorkOrderEstimate workOrderEstimate,
Long billId)
The method return BigDecimal
|
boolean |
contractorBillNumberChangeRequired(org.egov.model.bills.EgBillregister bill,
WorkOrder workOrder,
org.egov.commons.CFinancialYear financialYear)
The method return true if the bill number has to be re-generated
|
String |
generateContractorBillNumber(ContractorBillRegister contractorBillRegister)
The method return number if the bill number has to be generated
|
List<org.egov.model.bills.EgBilldetails> |
getAccountDetailsList(Long billId,
Long workOrderEstimateId,
List<StatutoryDeductionsForBill> statutoryList,
List<DeductionTypeForBill> standardDeductionList,
List<org.egov.model.bills.EgBilldetails> customDeductionList,
List<org.egov.model.bills.EgBilldetails> retentionMoneyDeductionList)
Get the accountDetails
|
BigDecimal |
getAdvanceAdjustmentAmountForBill(Long billId,
Long workOrderEstimateId)
API will returns the Advance adjustment amount for a given bill Id
|
BigDecimal |
getApprovedMBAmount(Long workOrderId,
Long estimateId,
Date asOnDate)
This method will return cumulative amount for all approved MB for a given workorder
|
BigDecimal |
getApprovedMBAmountforBill(ContractorBillRegister contractorBillRegister)
This method will return Bill amount for a given BIll
|
BigDecimal |
getApprovedMBAmountOfTenderedItems(Long workOrderId,
Long workOrderEstimateId,
Date billDate)
This method will return cumulative tendered items amount for all approved MB for a given workorder
|
BigDecimal |
getApprovedMBAmountOfTenderedItemsForBill(ContractorBillRegister contractorBillRegister)
This method will return Bill amount for a given BIll considering only tendered items
|
Collection<AssetForBill> |
getAssetAndAccountDetails(List<AssetForBill> accountDetailsForBill) |
List<AssetForBill> |
getAssetForBill(Long billId)
API will returns the AssetForBill list for a given bill Id
|
BigDecimal |
getBilledAmount(AbstractEstimate estimate)
This method returns total billed amount including overheads for the project till today in the current financial year.
|
BigDecimal |
getBilledAmountForDate(AbstractEstimate estimate,
Date asOnDate)
This method returns total billed amount including overheads for the project till asOnDate across financial years.
|
List |
getBillType()
This method will get the bill type from App Config Value.
|
List<org.egov.commons.CChartOfAccounts> |
getBudgetHeadForDepositCOA(AbstractEstimate estimate)
This method will return the work done budget head from the mapping table, based on the deposit COA in the financial details
of the estimate
|
List<org.egov.model.bills.EgBilldetails> |
getCustomDeductionList(Long billId,
Long workOrderEstimateId,
List<StatutoryDeductionsForBill> statutoryList,
List<DeductionTypeForBill> standardDeductionList,
List<org.egov.model.bills.EgBilldetails> retentionMoneyDeductionList)
Get the list of custom dedcution based on glcodes of custom deduction
|
List<org.egov.model.bills.EgBilldetails> |
getCustomDeductionListforglcodes(List<BigDecimal> glcodeIdList,
Long billId)
API will returns the custom deduction list of egbilldetails excluding glcode
|
Collection<org.egov.model.bills.EgBilldetails> |
getCustomDeductionTypes(List<org.egov.model.bills.EgBilldetails> customDeductions) |
List<org.egov.infstr.models.EgChecklists> |
getEgcheckList(Long billId)
Get the EgChecklists
|
Object[] |
getLatestMBCreatedDateAndRefNo(Long woId,
Long estId)
returns latest MB created date and its reference no
|
List<org.egov.model.bills.EgBillregister> |
getListOfApprovedBillforEstimate(AbstractEstimate estimate,
Date date)
This method will return List of Approved Bill for a given Estimate and date
|
List<org.egov.model.bills.EgBillregister> |
getListOfNonCancelledBillsforEstimate(AbstractEstimate estimate,
Date date)
This method will return List of Not cancelled for a given Estimate and date
|
List<MBHeader> |
getMbListForBillAndWorkordrId(Long workOrderId,
Long billId)
Get the mbList
|
List<MBForCancelledBill> |
getMbListForCancelBill(Long billId)
Get the mbList
|
BigDecimal |
getNetPayableAmountForGlCodeId(Long billId)
API will returns the Net Payable Amount for netpayable code coaId
|
BigDecimal |
getNetPaybleCode(Long billId)
Get the netpayblecode
|
List<Integer> |
getProjCodeIdsListForDepositCode(Integer fundId,
Long coaId,
Long depositCodeId) |
List<org.egov.model.bills.EgBilldetails> |
getRetentionMoneyDeductionList(Long billId,
List<StatutoryDeductionsForBill> statutoryList,
List<DeductionTypeForBill> standardDeductionList)
Get the list of retention money dedcution based on glcodes of retention deduction
|
Collection<org.egov.model.bills.EgBilldetails> |
getRetentionMoneyTypes(List<org.egov.model.bills.EgBilldetails> retentionMoneyDeductions) |
List<String> |
getSortedDeductionsFromConfig(String Key)
API will returns the required order deduction names list from appconfig based on key such as statutory/standard deduction
|
List<DeductionTypeForBill> |
getStandardDeductionForBill(Long billId)
API will returns the standard deduction list for a given bill Id
|
Map<String,String[]> |
getStandardDeductionsFromConfig()
API will returns the Standard deduction types as key and its mapped COA as map values
|
List<DeductionTypeForBill> |
getStandardDeductionSortedOrder(List<String> requiredOrder,
List<DeductionTypeForBill> givenStandardList)
API will returns the sorted Deduction list for a given bill Id
|
Collection<DeductionTypeForBill> |
getStandardDeductionTypes(List<DeductionTypeForBill> standardDeductions) |
Collection<StatutoryDeductionsForBill> |
getStatutoryDeductions(List<StatutoryDeductionsForBill> actionStatutorydetails) |
List<StatutoryDeductionsForBill> |
getStatutoryDeductionSortedOrder(List<String> requiredOrder,
List<StatutoryDeductionsForBill> givenStatutoryList)
API will returns the type of Deduction list for a given bill Id and type
|
List<StatutoryDeductionsForBill> |
getStatutoryListForBill(Long billId)
API will returns the type of Deduction list for a given bill Id and type
|
Double |
getTotalActualExpenseForProject(AbstractEstimate estimate,
Date asonDate)
This method returns total expense incurred including overheads for the project if project is closed till asonDate,otherwise
sum of all approved bills for the project till given date.
|
BigDecimal |
getTotalExpenditure(List<Integer> projectCodeIdsList,
String accDetailType) |
BigDecimal |
getTotalValueWoForUptoBillDate(Date billDate,
Long workOrderId,
Long workOrderEstimateId)
API will returns the Total value for the workorder upto billdate
|
BigDecimal |
getTotAmtForAdvanceAdjustment(Date billDate,
Long workOrderId,
Long workOrderEstimateId)
API will returns the Total Amount for advanceAjustment deduction for work order estimate upto billdate
|
BigDecimal |
getTotAmtForCustom(Date billDate,
Long workOrderId,
org.egov.model.bills.EgBilldetails egBilldetails,
Long workOrderEstimateId)
API will returns the Total Amount for custom deduction for workorder upto billdate
|
BigDecimal |
getTotAmtForStandard(Date billDate,
Long workOrderId,
DeductionTypeForBill deductionTypeForBill,
Long workOrderEstimateId)
API will returns the Total Amount for custom deduction for workorder upto billdate
|
BigDecimal |
getTotAmtForStatutory(Date billDate,
Long workOrderId,
StatutoryDeductionsForBill statDeductionBilldetail,
Long workOrderEstimateId)
API will returns the Total Amount for Statutory deduction for workorder upto billdate for that dedcution
|
BigDecimal |
getUtlizedAmountForUnArrovedBill(Long workOrderId,
Date asOnDate)
Get sum of all bill of given work orders which are still unapproved.
|
List<String> |
searchContractorBill(Map<String,Object> paramsMap,
List<Object> paramList)
Get the list of eligible bills based on parameters provided
|
void |
setAllViewLists(Long id,
Long workOrderId,
Long workOrderEstimateId,
List<StatutoryDeductionsForBill> actionStatutorydetails,
List<DeductionTypeForBill> standardDeductions,
List<org.egov.model.bills.EgBilldetails> customDeductions,
List<org.egov.model.bills.EgBilldetails> retentionMoneyDeductions,
List<AssetForBill> accountDetailsForBill) |
List<WorkCompletionDetailInfo> |
setWorkCompletionDetailInfoList(WorkOrderEstimate workOrderEstimate)
Get the List of WorkCompletionDetailInfo for completion certificate
|
WorkCompletionInfo |
setWorkCompletionInfoFromBill(ContractorBillRegister contractorBillRegister,
WorkOrderEstimate workOrderEstimate)
Get the WorkCompletionInfo for completion certificate
|
String |
validateForBudgetHeadInWorkflow(Set<org.egov.model.bills.EgBilldetails> billDetails,
AbstractEstimate estimate)
This method will set the flag which is used to hide the Forward/Approve buttons for the bills in workflow where the budget
heads do not match
|
create, delete, find, find, findAll, findAllBy, findAllByNamedQuery, findByExample, findById, findByNamedQuery, getCurrentFinancialYear, merge, persist, updateList getBillType()
boolean contractorBillNumberChangeRequired(org.egov.model.bills.EgBillregister bill,
WorkOrder workOrder,
org.egov.commons.CFinancialYear financialYear)
bill - an instance of EgBillregister containing the bill datefinancialYear - an instance of CFinancialYear representing the financial year for the estimate date.String generateContractorBillNumber(ContractorBillRegister contractorBillRegister)
bill - an instance of EgBillregister containing the bill date representing the financial year.workOrder - an instance of WorkOrder representing the executing department.BigDecimal getUtlizedAmountForUnArrovedBill(Long workOrderId, Date asOnDate)
workOrderId - BigDecimal getApprovedMBAmount(Long workOrderId, Long estimateId, Date asOnDate)
workOrderId - BigDecimal calculateTotalPendingAdvance(BigDecimal totalAdvancePaid, Date billDate, WorkOrderEstimate workOrderEstimate, Long billId)
totalAdvancePaid - , billDate, workOrderEstimateworkOrder - an instance of WorkOrder.Map<String,String[]> getStandardDeductionsFromConfig()
List<String> searchContractorBill(Map<String,Object> paramsMap, List<Object> paramList)
paramsMap - paramList - TODOBigDecimal getTotalValueWoForUptoBillDate(Date billDate, Long workOrderId, Long workOrderEstimateId)
List<String> getSortedDeductionsFromConfig(String Key)
List<StatutoryDeductionsForBill> getStatutoryListForBill(Long billId)
List<StatutoryDeductionsForBill> getStatutoryDeductionSortedOrder(List<String> requiredOrder, List<StatutoryDeductionsForBill> givenStatutoryList)
List<DeductionTypeForBill> getStandardDeductionForBill(Long billId)
List<DeductionTypeForBill> getStandardDeductionSortedOrder(List<String> requiredOrder, List<DeductionTypeForBill> givenStandardList)
List<AssetForBill> getAssetForBill(Long billId)
BigDecimal getAdvanceAdjustmentAmountForBill(Long billId, Long workOrderEstimateId)
List<org.egov.model.bills.EgBilldetails> getCustomDeductionListforglcodes(List<BigDecimal> glcodeIdList, Long billId)
BigDecimal getNetPayableAmountForGlCodeId(Long billId) throws NumberFormatException, org.egov.infra.exception.ApplicationException
NumberFormatExceptionorg.egov.infra.exception.ApplicationExceptionBigDecimal getTotAmtForStatutory(Date billDate, Long workOrderId, StatutoryDeductionsForBill statDeductionBilldetail, Long workOrderEstimateId)
BigDecimal getTotAmtForAdvanceAdjustment(Date billDate, Long workOrderId, Long workOrderEstimateId)
BigDecimal getTotAmtForStandard(Date billDate, Long workOrderId, DeductionTypeForBill deductionTypeForBill, Long workOrderEstimateId)
BigDecimal getTotAmtForCustom(Date billDate, Long workOrderId, org.egov.model.bills.EgBilldetails egBilldetails, Long workOrderEstimateId)
List<org.egov.model.bills.EgBilldetails> getCustomDeductionList(Long billId, Long workOrderEstimateId, List<StatutoryDeductionsForBill> statutoryList, List<DeductionTypeForBill> standardDeductionList, List<org.egov.model.bills.EgBilldetails> retentionMoneyDeductionList) throws NumberFormatException, org.egov.infra.exception.ApplicationException
billId - ,workOrderEstimateId,statutoryList,standardDeductionList, retentionMoneyDeductionListorg.egov.infra.exception.ApplicationExceptionNumberFormatExceptionList<org.egov.model.bills.EgBilldetails> getRetentionMoneyDeductionList(Long billId, List<StatutoryDeductionsForBill> statutoryList, List<DeductionTypeForBill> standardDeductionList) throws NumberFormatException, org.egov.infra.exception.ApplicationException
ContractorBillRegister - org.egov.infra.exception.ApplicationExceptionNumberFormatExceptionBigDecimal getNetPaybleCode(Long billId) throws Exception
billId - ,glcodeIdListorg.egov.infra.exception.ApplicationExceptionNumberFormatExceptionExceptionList<MBHeader> getMbListForBillAndWorkordrId(Long workOrderId, Long billId)
workOrderId - , billidList<MBForCancelledBill> getMbListForCancelBill(Long billId)
workOrderId - , billidList<org.egov.model.bills.EgBilldetails> getAccountDetailsList(Long billId, Long workOrderEstimateId, List<StatutoryDeductionsForBill> statutoryList, List<DeductionTypeForBill> standardDeductionList, List<org.egov.model.bills.EgBilldetails> customDeductionList, List<org.egov.model.bills.EgBilldetails> retentionMoneyDeductionList) throws NumberFormatException, org.egov.infra.exception.ApplicationException
statutoryList - ,standardDeductionList,customDeductionList,workOrderEstimateIdNumberFormatExceptionorg.egov.infra.exception.ApplicationExceptionvoid setAllViewLists(Long id, Long workOrderId, Long workOrderEstimateId, List<StatutoryDeductionsForBill> actionStatutorydetails, List<DeductionTypeForBill> standardDeductions, List<org.egov.model.bills.EgBilldetails> customDeductions, List<org.egov.model.bills.EgBilldetails> retentionMoneyDeductions, List<AssetForBill> accountDetailsForBill) throws NumberFormatException, org.egov.infra.exception.ApplicationException
statutoryList - ,standardDeductionList,customDeductionList,workOrderEstimateId ,workOrderId, id(billId)NumberFormatExceptionorg.egov.infra.exception.ApplicationExceptionList<org.egov.infstr.models.EgChecklists> getEgcheckList(Long billId) throws NumberFormatException, org.egov.infra.exception.ApplicationException
billid - NumberFormatExceptionorg.egov.infra.exception.ApplicationExceptionWorkCompletionInfo setWorkCompletionInfoFromBill(ContractorBillRegister contractorBillRegister, WorkOrderEstimate workOrderEstimate)
ContractorBillRegister - WorkOrderEstimate - List<WorkCompletionDetailInfo> setWorkCompletionDetailInfoList(WorkOrderEstimate workOrderEstimate)
WorkOrderEstimate - BigDecimal getApprovedMBAmountforBill(ContractorBillRegister contractorBillRegister)
billId - BigDecimal getApprovedMBAmountOfTenderedItemsForBill(ContractorBillRegister contractorBillRegister)
billId - Double getTotalActualExpenseForProject(AbstractEstimate estimate, Date asonDate)
estimate - ,dateList<org.egov.model.bills.EgBillregister> getListOfApprovedBillforEstimate(AbstractEstimate estimate, Date date)
estimate - ,dateList<org.egov.model.bills.EgBillregister> getListOfNonCancelledBillsforEstimate(AbstractEstimate estimate, Date date)
estimate - ,dateBigDecimal getBilledAmount(AbstractEstimate estimate)
admin - sanctioned estimateBigDecimal getBilledAmountForDate(AbstractEstimate estimate, Date asOnDate)
admin - sanctioned estimateBigDecimal getApprovedMBAmountOfTenderedItems(Long workOrderId, Long workOrderEstimateId, Date billDate)
workOrderId - List<org.egov.commons.CChartOfAccounts> getBudgetHeadForDepositCOA(AbstractEstimate estimate)
estimate - String validateForBudgetHeadInWorkflow(Set<org.egov.model.bills.EgBilldetails> billDetails, AbstractEstimate estimate)
Set - List<Integer> getProjCodeIdsListForDepositCode(Integer fundId, Long coaId, Long depositCodeId)
- - search fundId, coaId, depositCodeIdBigDecimal getTotalExpenditure(List<Integer> projectCodeIdsList, String accDetailType)
- - search projectCodeIdsList, accDetailTypeObject[] getLatestMBCreatedDateAndRefNo(Long woId, Long estId)
estId - ,woIdCollection<StatutoryDeductionsForBill> getStatutoryDeductions(List<StatutoryDeductionsForBill> actionStatutorydetails)
Collection<org.egov.model.bills.EgBilldetails> getCustomDeductionTypes(List<org.egov.model.bills.EgBilldetails> customDeductions)
Collection<org.egov.model.bills.EgBilldetails> getRetentionMoneyTypes(List<org.egov.model.bills.EgBilldetails> retentionMoneyDeductions)
Collection<AssetForBill> getAssetAndAccountDetails(List<AssetForBill> accountDetailsForBill)
Collection<DeductionTypeForBill> getStandardDeductionTypes(List<DeductionTypeForBill> standardDeductions)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.