case 3738

This commit is contained in:
2020-04-01 22:34:23 +00:00
parent f56608bbba
commit 563b70bdcb

View File

@@ -1371,6 +1371,8 @@ namespace GZTW.AyaNova.BLL
}
//case 3738 if user doesn't reload this object previousstatus is out of whack and following block won't run so set on successful commit below
//case 564
if (this.mStatus > PurchaseOrderStatus.OpenPartialReceived
&& mPreviousStatus > PurchaseOrderStatus.OpenNotYetOrdered && mPreviousStatus < PurchaseOrderStatus.ClosedPartialReceived)
@@ -1550,7 +1552,7 @@ namespace GZTW.AyaNova.BLL
#endregion status change to closed but not fully received handle incomplete orders
//Process keywords
DBUtil.ProcessKeywords(transaction,this.mID,RootObjectTypes.PurchaseOrder,IsNew,AyaBizUtils.Break(false,
@@ -1562,6 +1564,9 @@ namespace GZTW.AyaNova.BLL
// Commit the transaction
transaction.Commit();
//case 3738 it has just been saved successfully so we need to now upate previous status to reflect in db value
mPreviousStatus = mStatus;
}
catch