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
32 public class CreditMemoAccountRevision extends CreditMemoAccount {
33
34 protected Integer accountRevisionIdentifier;
35 private Timestamp accountRevisionTimestamp;
36
37 private AccountingPeriod accountingPeriod;
38
39 public AccountingPeriod getAccountingPeriod() {
40 return accountingPeriod;
41 }
42
43 public void setAccountingPeriod(AccountingPeriod accountingPeriod) {
44 this.accountingPeriod = accountingPeriod;
45 }
46
47
48
49
50 public CreditMemoAccountRevision() {
51 }
52
53
54
55
56
57
58 public CreditMemoAccountRevision(CreditMemoAccount cma, Integer postingYear, String postingPeriodCode) {
59
60 PurApObjectUtils.populateFromBaseWithSuper(cma, 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 }