1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.module.purap.document.service.impl;
17
18 import org.kuali.ole.module.purap.businessobject.NegativeInvoiceApprovalLimit;
19 import org.kuali.ole.module.purap.document.dataaccess.NegativeInvoiceApprovalLimitDao;
20 import org.kuali.ole.module.purap.document.service.NegativeInvoiceApprovalLimitService;
21 import org.kuali.ole.sys.service.NonTransactional;
22 import org.kuali.rice.core.api.util.type.KualiDecimal;
23
24 import java.util.Collection;
25
26 @NonTransactional
27 public class NegativeInvoiceApprovalLimitServiceImpl implements NegativeInvoiceApprovalLimitService {
28
29 private NegativeInvoiceApprovalLimitDao dao;
30
31 public void setNegativeInvoiceApprovalLimitDao(NegativeInvoiceApprovalLimitDao dao) {
32 this.dao = dao;
33 }
34
35
36
37
38 public Collection<NegativeInvoiceApprovalLimit> findByChart(String chartCode) {
39 return dao.findByChart(chartCode);
40 }
41
42
43
44
45
46 public Collection<NegativeInvoiceApprovalLimit> findByChartAndAccount(String chartCode, String accountNumber) {
47 return dao.findByChartAndAccount(chartCode, accountNumber);
48 }
49
50
51
52
53
54 public Collection<NegativeInvoiceApprovalLimit> findByChartAndOrganization(String chartCode, String organizationCode) {
55 return dao.findByChartAndOrganization(chartCode, organizationCode);
56 }
57
58
59
60
61 public Collection<NegativeInvoiceApprovalLimit> findAboveLimit(KualiDecimal limit) {
62 return dao.findAboveLimit(limit);
63 }
64
65
66
67
68 public Collection<NegativeInvoiceApprovalLimit> findBelowLimit(KualiDecimal limit) {
69 return dao.findBelowLimit(limit);
70 }
71
72 }