Payment CloseIt() should execute event into Validation

kind regards
Victor Perez
www.e-evolution.com
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3014066
This commit is contained in:
vpj-cd 2010-06-10 00:15:37 +00:00
parent 48a27c5849
commit fc957f778d
1 changed files with 3 additions and 1 deletions

View File

@ -2298,11 +2298,13 @@ public final class MPayment extends X_C_Payment
m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_BEFORE_CLOSE);
if (m_processMsg != null)
return false;
setDocAction(DOCACTION_None);
// After Close
m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_CLOSE);
if (m_processMsg != null)
return false;
setDocAction(DOCACTION_None);
return true;
} // closeIt