From 563b70bdcb1eb548df0ce07b4037cae49b7b6a6b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 1 Apr 2020 22:34:23 +0000 Subject: [PATCH] case 3738 --- source/bizobjects/AyaLib/GZTW.AyaNova.BLL/PurchaseOrder.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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