Menu

#529 No error if AcctTransEntries are not found.

1.5.0
open
nobody
financials (56)
5
2012-12-27
2012-12-27
Andreas
No

In TransactionServices.java at line 169 and following you find this code:

169 // Get the related AcctgTransEntry records
170 List<GenericValue> acctgTransEntries = delegator.findByAnd("AcctgTransEntry", UtilMisc.toMap("acctgTransId", acctgTransId), UtilMisc.toList("acctgTransEntrySeqId"));
171 if (acctgTrans == null) {
172 return ServiceUtil.returnError(UtilProperties.getMessage("FinancialsUiLabels", "FinancialsServiceErrorReverseTransactionNoEntries", locale) + ":" + acctgTransId);
173 }

In line 171 it should be:

169 // Get the related AcctgTransEntry records
170 List<GenericValue> acctgTransEntries = delegator.findByAnd("AcctgTransEntry", UtilMisc.toMap("acctgTransId", acctgTransId), UtilMisc.toList("acctgTransEntrySeqId"));
171 if (acctgTransEntries == null) {
172 return ServiceUtil.returnError(UtilProperties.getMessage("FinancialsUiLabels", "FinancialsServiceErrorReverseTransactionNoEntries", locale) + ":" + acctgTransId);
173 }

Discussion


Log in to post a comment.

MongoDB Logo MongoDB