public interface MeasurementBookService extends BaseService<MBHeader,Long>
| Modifier and Type | Method and Description |
|---|---|
Boolean |
approvalLimitCrossed(MBDetails mbDetails)
Check if mb entries are within approved limit or not.
|
MBHeader |
calculateMBDetails(MBHeader mbHeader,
boolean isPersistedObject)
Populate all the cumulative fields related to mbdetail line item
|
List<MBHeader> |
getApprovedMBList(Long workOrderId,
Long workOrderEstimateId,
Date asOnDate)
List of all approved MB's for which Bill is not generated or bill is cancelled.
|
Date |
getLastMBCreatedDate(Long woId,
Long estId)
returns last MB created date
|
Date |
getLatestBillDateForMB(Long workOrderId)
returns latest bill date for MB
|
Date |
getLatestBillDateForMBPassingWOEstimate(Long workOrderEstimateId)
returns latest bill date for MB
|
List<MBHeader> |
getPartBillList(Long workOrderId,
String billtype)
List of all MB's were the bill is created and bill type is part bill
|
BigDecimal |
getTotalMBAmount(Long workOrderId,
Long estimateId)
This returns sum of MB amount for the passed workOrderId and estimateId
|
BigDecimal |
getTotalMBAmountForPrevMBs(WorkOrderEstimate workOrderEstimate,
double negoPerc,
String tenderType)
This is used in validating the sum of all MBs against the estimate wise WO amount This returns sum of all previous MBs
|
List<WorkOrderEstimate> |
getWOEstForBillExludingLegacyMB(List<WorkOrderEstimate> workOrderEstimateList)
This method will return workorderestimates objects pending for Bill , but it will not consider Legacy MBs
|
Date |
getWorkCommencedDate(Long woId)
retrurns work commenced date
|
List<WorkOrderEstimate> |
getWorkOrderEstimatesForBill(List<WorkOrderEstimate> workOrderEstimateList)
This method will return workorderestimates objects pending for Bill
|
List<WorkOrderEstimate> |
getWorkOrderEstimatesForMB(List<WorkOrderEstimate> workOrderEstimateList)
This method will return workorderestimates objects pending for MB
|
boolean |
isMBExistForLineItem(String workOrderNumber,
long lineItemId) |
double |
prevCumulativeQuantity(Long woActivityId,
Long mbHeaderId)
Get previous cumulative amount(approved, approval pending and draft entries) based on workorder activity Id.
|
double |
prevCumulativeQuantityIncludingCQ(Long woActivityId,
Long mbHeaderId,
Long activityId,
WorkOrder workOrder) |
List<String> |
searchMB(Map<String,Object> criteriaMap,
List<Object> parameterList)
This method will search list of mbheader based on input criteria.
|
double |
totalEstimatedQuantity(Long woActivityId,
Long mbHeaderId,
Long activityId,
WorkOrder workOrder)
This is used by MB screens.
|
double |
totalEstimatedQuantityForPreviousREs(Long woActivityId,
Long estimateId,
Long activityId,
WorkOrder workOrder)
Similar to totalEstimatedQuantityForRE but will consider only previous REs and not all REs
|
double |
totalEstimatedQuantityForRE(Long woActivityId,
Long estimateId,
Long activityId,
WorkOrder workOrder)
Returns the total estimated quantity for a particular work order activity
|
create, delete, find, find, findAll, findAllBy, findAllByNamedQuery, findByExample, findById, findByNamedQuery, getCurrentFinancialYear, merge, persist, updateList<String> searchMB(Map<String,Object> criteriaMap, List<Object> parameterList)
criteriaMap - parameterList - TODOdouble prevCumulativeQuantity(Long woActivityId, Long mbHeaderId)
woActivityId - MBHeader calculateMBDetails(MBHeader mbHeader, boolean isPersistedObject)
woActivityId - List<WorkOrderEstimate> getWorkOrderEstimatesForMB(List<WorkOrderEstimate> workOrderEstimateList)
workOrderEstimateList - mbHeader - List<WorkOrderEstimate> getWorkOrderEstimatesForBill(List<WorkOrderEstimate> workOrderEstimateList)
workOrderEstimateList - mbHeader - List<WorkOrderEstimate> getWOEstForBillExludingLegacyMB(List<WorkOrderEstimate> workOrderEstimateList)
workOrderEstimateList - mbHeader - boolean isMBExistForLineItem(String workOrderNumber, long lineItemId)
workOrderNumber - ,lineItemIdBoolean approvalLimitCrossed(MBDetails mbDetails)
mbHeader - List<MBHeader> getApprovedMBList(Long workOrderId, Long workOrderEstimateId, Date asOnDate)
workOrderId - asOnDate - List<MBHeader> getPartBillList(Long workOrderId, String billtype)
workOrderId - billtype - Date getLatestBillDateForMB(Long workOrderId)
workOrderId - Date getLatestBillDateForMBPassingWOEstimate(Long workOrderEstimateId)
workOrderEstimateId - double totalEstimatedQuantityForRE(Long woActivityId, Long estimateId, Long activityId, WorkOrder workOrder)
woActivityId - estimateId - activityId - workOrder - double prevCumulativeQuantityIncludingCQ(Long woActivityId, Long mbHeaderId, Long activityId, WorkOrder workOrder)
double totalEstimatedQuantityForPreviousREs(Long woActivityId, Long estimateId, Long activityId, WorkOrder workOrder)
woActivityId - ,estimateId,activityId,workOrderdouble totalEstimatedQuantity(Long woActivityId, Long mbHeaderId, Long activityId, WorkOrder workOrder)
woActivityId - ,mbHeaderId,activityId,workOrderBigDecimal getTotalMBAmountForPrevMBs(WorkOrderEstimate workOrderEstimate, double negoPerc, String tenderType)
workOrderEstimate - ,negoPerc,tenderTypeBigDecimal getTotalMBAmount(Long workOrderId, Long estimateId)
workOrderId - ,estimateIdDate getWorkCommencedDate(Long woId)
workOrderID - Copyright © 2015–2016 eGovernments Foundation. All rights reserved.