Fix 2317928 - Reactivating/Voiding order must reset posted
This commit is contained in:
parent
d68654a299
commit
1e3610cec4
|
@ -1,5 +1,5 @@
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
* This program is free software; you can redistribute it and/or modify it *
|
||||||
* under the terms version 2 of the GNU General Public License as published *
|
* under the terms version 2 of the GNU General Public License as published *
|
||||||
|
@ -1955,6 +1955,14 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
if (!createReversals())
|
if (!createReversals())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
/* globalqss - 2317928 - Reactivating/Voiding order must reset posted */
|
||||||
|
int no = MFactAcct.delete(MOrder.Table_ID, getC_Order_ID(), get_TrxName());
|
||||||
|
if (no < 0) {
|
||||||
|
m_processMsg = "Cannot delete order accounting";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
setPosted(false);
|
||||||
|
|
||||||
// After Void
|
// After Void
|
||||||
m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_VOID);
|
m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_VOID);
|
||||||
if (m_processMsg != null)
|
if (m_processMsg != null)
|
||||||
|
@ -2237,6 +2245,15 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
{
|
{
|
||||||
log.info("Existing documents not modified - SubType=" + DocSubTypeSO);
|
log.info("Existing documents not modified - SubType=" + DocSubTypeSO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* globalqss - 2317928 - Reactivating/Voiding order must reset posted */
|
||||||
|
int no = MFactAcct.delete(MOrder.Table_ID, getC_Order_ID(), get_TrxName());
|
||||||
|
if (no < 0) {
|
||||||
|
m_processMsg = "Cannot delete order accounting";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
setPosted(false);
|
||||||
|
|
||||||
// After reActivate
|
// After reActivate
|
||||||
m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_REACTIVATE);
|
m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_REACTIVATE);
|
||||||
if (m_processMsg != null)
|
if (m_processMsg != null)
|
||||||
|
|
Loading…
Reference in New Issue