IDEMPIERE-3199 Potential data corruption when transaction fails after prepare and before complete documents

This commit is contained in:
Carlos Ruiz 2016-09-27 22:59:25 +02:00
parent b5a746aeb3
commit e04e6d137c
24 changed files with 24 additions and 0 deletions

View File

@ -498,6 +498,7 @@ public class MAllocationHdr extends X_C_AllocationHdr implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -633,6 +633,7 @@ public class MAssetAddition extends X_A_Asset_Addition
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -173,6 +173,7 @@ implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -128,6 +128,7 @@ implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -191,6 +191,7 @@ implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -373,6 +373,7 @@ public class MBankStatement extends X_C_BankStatement implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -441,6 +441,7 @@ public class MCash extends X_C_Cash implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -236,6 +236,7 @@ implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -1251,6 +1251,7 @@ public class MInOut extends X_M_InOut implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -384,6 +384,7 @@ public class MInOutConfirm extends X_M_InOutConfirm implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -418,6 +418,7 @@ public class MInventory extends X_M_Inventory implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -1696,6 +1696,7 @@ public class MInvoice extends X_C_Invoice implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -594,6 +594,7 @@ public class MJournal extends X_GL_Journal implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -434,6 +434,7 @@ public class MJournalBatch extends X_GL_JournalBatch implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -386,6 +386,7 @@ public class MMovement extends X_M_Movement implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -365,6 +365,7 @@ public class MMovementConfirm extends X_M_MovementConfirm implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -1885,6 +1885,7 @@ public class MOrder extends X_C_Order implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -1938,6 +1938,7 @@ public class MPayment extends X_C_Payment
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -92,6 +92,7 @@ public class MProduction extends X_M_Production implements DocAction {
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -426,6 +426,7 @@ public class MRMA extends X_M_RMA implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -327,6 +327,7 @@ public class MRequisition extends X_M_Requisition implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -377,6 +377,7 @@ public class MTimeExpense extends X_S_TimeExpense implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -212,6 +212,7 @@ public class DocActionTemplate extends PO implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}

View File

@ -951,6 +951,7 @@ public class MDDOrder extends X_DD_Order implements DocAction
if (!m_justPrepared)
{
String status = prepareIt();
m_justPrepared = false;
if (!DocAction.STATUS_InProgress.equals(status))
return status;
}