Hi Everyone,
As the code is written, you cannot use a GL Journal to post an entry of type Commitment or Reservation. You get an Account is Document Controlled error event if the account is not document controlled. Can someone confirm this is the desired behavior?
I have not used Reservation or Commitment enough to know whether creating a manual journal against a Commitment or Reservation is allowed. It makes sense to me that it would not be allowed since these values are governed by the system. My biggest concern would be if the system made an error, you would have no way to fix it.
Here is the code. The formatting suggests that the second parenthesis after POSTINGTYPE_Actual should not be there.
// Michael Judd (mjudd) BUG: [ 2678088 ] Allow posting to system accounts for non-actual postings
if (line.isDocControlled() &&
( getPostingType().equals(POSTINGTYPE_Actual)) ||
getPostingType().equals(POSTINGTYPE_Commitment) ||
getPostingType().equals(POSTINGTYPE_Reservation)
)
{
if it were actually like this, it would make sense that you cannot post to Actual, Commitment, or Reservation if the account is document controlled, but but you could if the posting were of type Budget.
// Michael Judd (mjudd) BUG: [ 2678088 ] Allow posting to system accounts for non-actual postings
if (line.isDocControlled() &&
( getPostingType().equals(POSTINGTYPE_Actual) ||
getPostingType().equals(POSTINGTYPE_Commitment) ||
getPostingType().equals(POSTINGTYPE_Reservation)
)
)
{
Please share your thoughts. Thank you for your consideration!
Regards,
Chuck Boecking