@ -92,4 +92,13 @@ public class InvoicingServiceImpl extends AbstractOwnedService<Invoicing> implem
Queryq=dao.getQuery("select inv from Invoicing as inv join fetch inv.requirement rq join fetch rq.ownedBy where inv.completed = true order by rq.numser");
Queryq=dao.getQuery("select inv from Invoicing as inv join fetch inv.requirement rq join fetch rq.ownedBy where inv.completed = true order by rq.numser");
returnq.list();
returnq.list();
}
}
@Override
@Transactional
publicInvoicinggetForRequirement(Requirementreq){
Queryquery=dao.getQuery("select invoice from Invoicing invoice join invoice.requirement rq where rq.id = :reqId");