IDEMPIERE-3443 Payment Schedule leading to -> Current record was changed by another user, please ReQuery / IDEMPIERE-3462

This commit is contained in:
Carlos Ruiz 2017-08-30 18:57:36 +02:00
parent 6213d823ed
commit 1bf66f1064
2 changed files with 2 additions and 2 deletions

View File

@ -1029,7 +1029,7 @@ public class MInvoice extends X_C_Invoice implements DocAction
}
}
if (! recursiveCall && (newRecord || is_ValueChanged(COLUMNNAME_C_PaymentTerm_ID))) {
if (! recursiveCall && (!newRecord && is_ValueChanged(COLUMNNAME_C_PaymentTerm_ID))) {
recursiveCall = true;
try {
MPaymentTerm pt = new MPaymentTerm (getCtx(), getC_PaymentTerm_ID(), get_TrxName());

View File

@ -1090,7 +1090,7 @@ public class MOrder extends X_C_Order implements DocAction
}
}
if (! recursiveCall && (newRecord || is_ValueChanged(COLUMNNAME_C_PaymentTerm_ID))) {
if (! recursiveCall && (!newRecord && is_ValueChanged(COLUMNNAME_C_PaymentTerm_ID))) {
recursiveCall = true;
try {
MPaymentTerm pt = new MPaymentTerm (getCtx(), getC_PaymentTerm_ID(), get_TrxName());