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.PurapConstants.InvoiceStatuses;
19 import org.kuali.ole.module.purap.document.InvoiceDocument;
20 import org.kuali.ole.sys.document.validation.BranchingValidation;
21 import org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent;
22
23 public class InvoiceCalculationBranchingValidation extends BranchingValidation {
24
25 @Override
26 protected String determineBranch(AttributedDocumentEvent event) {
27 InvoiceDocument prqs = (InvoiceDocument) event.getDocument();
28 if (InvoiceStatuses.APPDOC_AWAITING_TAX_REVIEW.equals(prqs.getApplicationDocumentStatus())) {
29 return "awaitingTaxReview";
30 } else {
31 return "notAwaitingTaxReview";
32 }
33 }
34
35 }