Program: 58760
Project: 58760
Buggy source:
@Override public void fillLines(InvoicingProject invoicingProject,ProjectTask projectTask){
  if (projectTask.getProjTaskInvTypeSelect() == ProjectTaskRepository.INVOICING_TYPE_FLAT_RATE || projectTask.getProjTaskInvTypeSelect() == ProjectTaskRepository.INVOICING_TYPE_TIME_BASED) {
    invoicingProject.getSaleOrderLineSet().addAll(Beans.get(SaleOrderLineRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    invoicingProject.getPurchaseOrderLineSet().addAll(Beans.get(PurchaseOrderLineRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    invoicingProject.getLogTimesSet().addAll(Beans.get(TimesheetLineRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    invoicingProject.getExpenseLineSet().addAll(Beans.get(ExpenseLineRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    invoicingProject.getElementsToInvoiceSet().addAll(Beans.get(ElementsToInvoiceRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    invoicingProject.getManufOrderSet().addAll(Beans.get(ManufOrderRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    if (projectTask.getProjTaskInvTypeSelect() == ProjectTaskRepository.INVOICING_TYPE_FLAT_RATE && !projectTask.getInvoiced())     invoicingProject.addProjectTaskSetItem(projectTask);
  }
}

Fixed version (ground truth):
@Override public void fillLines(InvoicingProject invoicingProject,ProjectTask projectTask){
  if (projectTask.getProjTaskInvTypeSelect() == ProjectTaskRepository.INVOICING_TYPE_FLAT_RATE || projectTask.getProjTaskInvTypeSelect() == ProjectTaskRepository.INVOICING_TYPE_TIME_BASED) {
    invoicingProject.getSaleOrderLineSet().addAll(Beans.get(SaleOrderLineRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    invoicingProject.getPurchaseOrderLineSet().addAll(Beans.get(PurchaseOrderLineRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    invoicingProject.getLogTimesSet().addAll(Beans.get(TimesheetLineRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    invoicingProject.getExpenseLineSet().addAll(Beans.get(ExpenseLineRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    invoicingProject.getElementsToInvoiceSet().addAll(Beans.get(ElementsToInvoiceRepository.class).all().filter("String_Node_Str",projectTask,invoicingProject.getDeadlineDate(),invoicingProject.getDeadlineDate()).fetch());
    LocalDateTime deadlineDateToDateTime=null;
    if (invoicingProject.getDeadlineDate() != null) {
      deadlineDateToDateTime=LocalDateTime.fromDateFields(invoicingProject.getDeadlineDate().toDate());
    }
    invoicingProject.getManufOrderSet().addAll(Beans.get(ManufOrderRepository.class).all().filter("String_Node_Str",projectTask,deadlineDateToDateTime,invoicingProject.getDeadlineDate()).fetch());
    if (projectTask.getProjTaskInvTypeSelect() == ProjectTaskRepository.INVOICING_TYPE_FLAT_RATE && !projectTask.getInvoiced())     invoicingProject.addProjectTaskSetItem(projectTask);
  }
}