Fixed a bug in obj_WO_Mat_Log('Post') function that would fail to properly process transactions out of order
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
Compile function OI_Wizard_Services(@Service, @Params)
|
||||
#pragma precomp SRP_PreCompiler
|
||||
$insert LOGICAL
|
||||
$insert OI_WIZARD_EQUATES
|
||||
$insert OI_WIZARD_TRANSACTIONS_EQUATES
|
||||
$Insert LOGICAL
|
||||
$Insert OI_WIZARD_EQUATES
|
||||
$Insert OI_WIZARD_TRANSACTIONS_EQUATES
|
||||
$Insert REACT_MODE_NG_EQUATES
|
||||
$Insert TIME_INSERTS
|
||||
|
||||
Declare function RTI_CreateGUID, Database_Services, Error_Services, SRP_Json, MemberOf
|
||||
Declare function OI_Wizard_Services, Reactor_Services, Reactor_Modes_Services, Datetime
|
||||
@ -198,9 +199,9 @@ Service ValidateSession(OIWizardID)
|
||||
LastTime = OIWizardRec<OI_WIZARD.CREATED_TIME$>
|
||||
end
|
||||
lastDateTime = Iconv(Oconv(LastDate, 'D4/') : ' ' : Oconv(LastTime, 'MTS'), 'DTS')
|
||||
SessionAge = (Datetime() - lastDateTime) * 86400
|
||||
// 600 seconds = 10 minutes
|
||||
If SessionAge LT 600 then
|
||||
SessionAge = (Datetime() - lastDateTime) * SECONDS_IN_DAY$
|
||||
MaxAge = HOUR_IN_SECONDS$ * 12
|
||||
If SessionAge LT MaxAge then
|
||||
OIWizardRec<OI_WIZARD.UPDATED_DATES$, -1> = Date()
|
||||
OIWizardRec<OI_WIZARD.UPDATED_TIMES$, -1> = Time()
|
||||
Database_Services('WriteDataRow', 'OI_WIZARD', OIWizardID, OIWizardRec)
|
||||
@ -498,11 +499,3 @@ Service ConvertMVTransactionToJSON(TransactionID, mvTransaction, itemURL)
|
||||
|
||||
end service
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user