diff --git a/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/PurchaseOrder.cs b/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/PurchaseOrder.cs index 629f3ae..a325029 100644 --- a/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/PurchaseOrder.cs +++ b/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/PurchaseOrder.cs @@ -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