warehouse transfer business logic object problem
Hi,
Jiwa 7.0.149
I'm trying to split warehouse transfer before activation, however, find some weird behavior between objects.
The function below illustrate the problem that I'm having (full plugin attached).
Basically, I have 2 warehouse transfer objects (existing and new transfer). However, they are somehow reference to each other, so I have 2 instances of the same transfer.
Jiwa 7.0.149
I'm trying to split warehouse transfer before activation, however, find some weird behavior between objects.
The function below illustrate the problem that I'm having (full plugin attached).
- Code: Select all
Private Sub TransferActivateBefore(ByRef Cancel As Boolean)
Dim recid As String
recid = WHTrans.RecID
msgbox("Existing Transfer No.: " & WHTrans.TransferNo) 'this returns correct No.
NewWHTrans = JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic(Of JiwaWhouseTransfer.clsWarehouseTransfer)(Nothing)
msgbox("Existing Transfer No. (after init new object): " & WHTrans.TransferNo) 'this return blank No., as it should return the existing transfer No.
WHTrans.Read(recid)
msgbox("New Transfer No. (after read): " & NewWHTrans.TransferNo) 'this returns transfer no. from existing transfer object, as it should return blank transfer No.
Throw New JiwaApplication.Exceptions.PluginAbortException("abort testing")
End Sub
Basically, I have 2 warehouse transfer objects (existing and new transfer). However, they are somehow reference to each other, so I have 2 instances of the same transfer.