Tim-connector: Method getWorkReportLines added
getWorkReportLines: gets all WorkReportLines of this order specified between start and end date.
This commit is contained in:
parent
ddce4b2f1d
commit
9463d94a84
1 changed files with 18 additions and 0 deletions
|
|
@ -1568,6 +1568,24 @@ public abstract class OrderElement extends IntegrationEntity implements
|
|||
return workReportLineDAO.findByOrderElementAndChildren(this, sortedByDate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets workReportLines of this order-element between the specified
|
||||
* <code>startDate</code> and <code>endDate</code>
|
||||
*
|
||||
* @param startDate
|
||||
* the startDate
|
||||
* @param endDate
|
||||
* the endDate
|
||||
* @param sortedByDate
|
||||
* @return list of workReportLines
|
||||
*/
|
||||
public List<WorkReportLine> getWorkReportLines(Date startDate,
|
||||
Date endDate, boolean sortedByDate) {
|
||||
IWorkReportLineDAO workReportLineDAO = Registry.getWorkReportLineDAO();
|
||||
return workReportLineDAO.findByOrderElementAndChildrenFilteredByDate(
|
||||
this, startDate, endDate, sortedByDate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if it has nay consolidated advance, if not checks if any parent
|
||||
* has it
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue