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.module.purap.businessobject.PurApAccountingLine;
19 import org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocumentBase;
20 import org.kuali.ole.sys.businessobject.AccountingLine;
21 import org.kuali.ole.sys.document.validation.GenericValidation;
22 import org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent;
23
24 public class PurchasingAccountingLineAmountValidation extends GenericValidation {
25
26 private AccountingLine updatedAccountingLine;
27
28 @Override
29 public boolean validate(AttributedDocumentEvent event) {
30 boolean valid = true;
31 PurApAccountingLine purapAccountingLine = (PurApAccountingLine) updatedAccountingLine;
32
33 PurchasingAccountsPayableDocumentBase purapDoc = (PurchasingAccountsPayableDocumentBase) event.getDocument();
34
35
36
37
38
39
40
41
42 return valid;
43 }
44
45 public AccountingLine getUpdatedAccountingLine() {
46 return updatedAccountingLine;
47 }
48
49 public void setUpdatedAccountingLine(AccountingLine updatedAccountingLine) {
50 this.updatedAccountingLine = updatedAccountingLine;
51 }
52
53 }