1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.module.purap.service.impl;
17
18 import org.kuali.ole.coa.businessobject.Account;
19 import org.kuali.ole.sys.OLEKeyConstants;
20 import org.kuali.rice.krad.datadictionary.DataDictionary;
21 import org.kuali.rice.krad.util.GlobalVariables;
22 import org.kuali.rice.krad.util.ObjectUtils;
23
24 public class VendorCreditMemoAccountingLineRuleHelperServiceImpl extends PurapAccountingLineRuleHelperServiceImpl {
25
26
27
28
29 @Override
30 public boolean isValidAccount(Account account, DataDictionary dataDictionary, String errorPropertyName,
31 String errorPropertyIdentifyingName) {
32 String label = getAccountLabel();
33
34
35 if (ObjectUtils.isNull(account)) {
36 GlobalVariables.getMessageMap().putError(errorPropertyName, OLEKeyConstants.ERROR_EXISTENCE, label);
37 return false;
38 }
39
40 return true;
41 }
42
43 }