Fix [1904717] Invoice reversing has incorrect doc status

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=1904717
This commit is contained in:
Carlos Ruiz 2010-03-11 23:04:11 +00:00
parent 9c3a274453
commit 3b06eb7a0a
1 changed files with 7 additions and 1 deletions

View File

@ -905,6 +905,12 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable
success = doc.processIt (m_node.getDocAction()); // ** Do the work
setTextMsg(doc.getSummary());
processMsg = doc.getProcessMsg();
// Bug 1904717 - Invoice reversing has incorrect doc status
// Just prepare and complete return a doc status to take into account
// the rest of methods return boolean, so doc status must not be taken into account when not successful
if ( DocAction.ACTION_Prepare.equals(m_node.getDocAction())
|| DocAction.ACTION_Complete.equals(m_node.getDocAction())
|| success)
m_docStatus = doc.getDocStatus();
}
catch (Exception e) {