|
|
@ -7,9 +7,11 @@ import info.bukova.isspst.services.AbstractOwnedService;
|
|
|
|
import info.bukova.isspst.services.LazyLoader;
|
|
|
|
import info.bukova.isspst.services.LazyLoader;
|
|
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import org.hibernate.Hibernate;
|
|
|
|
import org.hibernate.Hibernate;
|
|
|
|
import org.hibernate.Query;
|
|
|
|
import org.hibernate.Query;
|
|
|
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
|
public class InvoicingServiceImpl extends AbstractOwnedService<Invoicing> implements
|
|
|
|
public class InvoicingServiceImpl extends AbstractOwnedService<Invoicing> implements
|
|
|
@ -54,4 +56,13 @@ public class InvoicingServiceImpl extends AbstractOwnedService<Invoicing> implem
|
|
|
|
invoicing.setTotalInvoiced(total);
|
|
|
|
invoicing.setTotalInvoiced(total);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
@PreAuthorize("hasPermission(this, 'PERM_READ')")
|
|
|
|
|
|
|
|
public List<Invoicing> getAll() {
|
|
|
|
|
|
|
|
Query q = dao.getQuery("select inv from Invoicing as inv join fetch inv.requirement rq join fetch rq.ownedBy order by rq.numser");
|
|
|
|
|
|
|
|
return q.list();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|