Hi guys,
On the Warehouse Receipt form (5768), under the Functions menu, there is an option to "Get Source Documents"..
From a code unit, I have a situation where I know what the document is that I want to add and its document type.. What I want to do, is run the "Get Source Documents" function, but skip the actual document selection bit of the process..
I've followed the code through to Code unit 5751 (Get Source Doc. Inbound), to the GetSingleInboundDoc function.. but it doesn't make sense to me...
There isn't anything obvious that says "read these lines from this source document and try to add them to the warehouse receipt"...
Have I followed the code wrong..??? is it done elsewhere..??? I'm at a loss..
Any help to point me in the right direction would be very much appreciated..
Thanks
.
I'm not crazy !!! Just ask my toaster...
.
0
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I was able to take that code and modify it slightly to do exactly what I needed...
Tell me if I did something wrong... Basically, I'm passing in:
ReceiptNo - Blank means 'create a new one' otherwise find the existing one.
DocumentNo (document to add to the receipt, PO/SRO/TRANS)
DocumentType
Actually, looking at the code now, I haven't catered for transfers, but I will do that shortly..
Thanks
I'm not crazy !!! Just ask my toaster...
.
Instead use Database::"Sales Line",
same for document type
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I will make those changes...
I'm not crazy !!! Just ask my toaster...
.