Hello all,
I’ve been trying to programmatically create a Part Lot to hold inventory which includes its costs from the originating mfg job. The process Epicor uses is somewhat traceable via the “Job receipt to inventory” program, but despite many many attempts, I am having a difficult time (all trial and error) assembling the right collection of methods and objects, in the right sequence, to actually create a costed lot with inventory. Any guidance would be very much appreciated.
Background:
I can create a lot using the LotSelectUpdate adapter, but that doesn’t create a MFG-STK transaction and doesn’t ‘pull’ the lot costs from the Mfg job - which is critical as the lot’s costs are derived from the job (material issued, labor hrs, etc.) at the time the lot is created.
It looks like the correct way to do this is via the “ReceiptsFromMfg” business object.
I’ve been trying to assemble the following process, but it is daunting.
According to the trace AND the BL tester, this process appears to follow this process:
- Initialize the ReceiptsFromMfg adapter.
- Execute method GetNewReceiptsFromMfgJobAsm() in order to get a dataset.
The 3 inputs are jobnum, assembly sequence# , and transaction type “MFG-STK”. - Now here, I’m guessing, modify the dataset’s fields in order to prep for the next method.
- Execute the method that will create the lot, populate its costs, based on the source job, and add the qty to inventory.
I am stuck and cannot get beyond step 3. I can’t even get a lot created using the BL tester.
I’m hoping that someone has done something like this before.
If you have any insight into how I should proceed with this, I’d really appreciate a tip to get me beyond ground zero.
Thanks all,
Regards,
Andrew Saldivar