1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.module.purap.document.validation.impl;
17
18 import org.kuali.ole.sys.businessobject.AccountingLine;
19 import org.kuali.ole.sys.document.AccountingDocument;
20 import org.kuali.ole.sys.document.validation.GenericValidation;
21 import org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent;
22
23
24
25
26 public class PurchasingAccountsPayableFixErrorPathValidation extends GenericValidation {
27 private AccountingLine accountingLineForValidation;
28 protected static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(PurchasingAccountsPayableFixErrorPathValidation.class);
29
30
31
32
33 public boolean validate(AttributedDocumentEvent event) {
34 PurchasingAccountsPayableErrorPathUtil.fixErrorPath((AccountingDocument) event.getDocument(), accountingLineForValidation);
35
36
37 return true;
38 }
39
40
41
42
43
44
45 public AccountingLine getAccountingLineForValidation() {
46 return accountingLineForValidation;
47 }
48
49
50
51
52
53
54 public void setAccountingLineForValidation(AccountingLine accountingLineForValidation) {
55 this.accountingLineForValidation = accountingLineForValidation;
56 }
57
58
59 }