BUG: [ 2678088 ] Allow posting to system accounts for non-actual postings

This commit is contained in:
mjudd 2009-03-23 13:31:40 +00:00
parent 28d0b69968
commit c0ccf339be
1 changed files with 6 additions and 2 deletions

View File

@ -271,7 +271,7 @@ public class MJournal extends X_GL_Journal implements DocAction
/** /**
* Set Processed. * Set Processed.
* Propergate to Lines/Taxes * Propagate to Lines/Taxes
* @param processed processed * @param processed processed
*/ */
public void setProcessed (boolean processed) public void setProcessed (boolean processed)
@ -451,7 +451,11 @@ public class MJournal extends X_GL_Journal implements DocAction
if (!isActive()) if (!isActive())
continue; continue;
// Michael Judd (mjudd) BUG: [ 2678088 ] Allow posting to system accounts for non-actual postings // Michael Judd (mjudd) BUG: [ 2678088 ] Allow posting to system accounts for non-actual postings
if (line.isDocControlled() && getPostingType().equals(POSTINGTYPE_Actual)) if (line.isDocControlled() &&
( getPostingType().equals(POSTINGTYPE_Actual)) ||
getPostingType().equals(POSTINGTYPE_Commitment) ||
getPostingType().equals(POSTINGTYPE_Reservation)
)
{ {
m_processMsg = "@DocControlledError@ - @Line@=" + line.getLine() m_processMsg = "@DocControlledError@ - @Line@=" + line.getLine()
+ " - " + line.getAccountElementValue(); + " - " + line.getAccountElementValue();