1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.ole.module.purap.businessobject;
18
19 import org.kuali.ole.coa.businessobject.AccountingPeriod;
20 import org.kuali.ole.module.purap.util.PurApObjectUtils;
21 import org.kuali.ole.sys.context.SpringContext;
22 import org.kuali.rice.core.api.datetime.DateTimeService;
23
24 import java.sql.Timestamp;
25 import java.util.HashMap;
26 import java.util.HashSet;
27
28
29
30
31 public class InvoiceAccountRevision extends InvoiceAccount {
32
33 protected Integer accountRevisionIdentifier;
34 private Timestamp accountRevisionTimestamp;
35
36 private AccountingPeriod accountingPeriod;
37
38 public AccountingPeriod getAccountingPeriod() {
39 return accountingPeriod;
40 }
41
42 public void setAccountingPeriod(AccountingPeriod accountingPeriod) {
43 this.accountingPeriod = accountingPeriod;
44 }
45
46
47
48
49 public InvoiceAccountRevision() {
50
51 }
52
53
54
55
56
57
58 public InvoiceAccountRevision(InvoiceAccount ia, Integer postingYear, String postingPeriodCode) {
59
60 PurApObjectUtils.populateFromBaseWithSuper(ia, this, new HashMap<String, Class<?>>(), new HashSet<Class>());
61 this.setAccountRevisionTimestamp(SpringContext.getBean(DateTimeService.class).getCurrentTimestamp());
62 this.setPostingYear(postingYear);
63 this.setPostingPeriodCode(postingPeriodCode);
64 }
65
66 public Integer getAccountRevisionIdentifier() {
67 return accountRevisionIdentifier;
68 }
69
70 public void setAccountRevisionIdentifier(Integer accountRevisionIdentifier) {
71 this.accountRevisionIdentifier = accountRevisionIdentifier;
72 }
73
74 public Timestamp getAccountRevisionTimestamp() {
75 return accountRevisionTimestamp;
76 }
77
78 public void setAccountRevisionTimestamp(Timestamp accountRevisionTimestamp) {
79 this.accountRevisionTimestamp = accountRevisionTimestamp;
80 }
81
82 }