on 06-28-2006 5:23 PM
Hi all,
Do you know if it is possible to create programmatically Receipts from Production (with DI API)?
Thanks a lot.
Cheers,
Hi Cyril,
yes, I did it...
Simply create a InventoryEntry instance and set baseentry property of Document_Lines with DocEntry of your production order.
Here's a snippet of my code
Set oInventoryDocument = sboCompany.GetBusinessObject(oInventoryGenEntry)
oInventoryDocument.Lines.SetCurrentLine 0
oInventoryDocument.Lines.BaseEntry = SelProductionOrder.AbsoluteEntry
// SelProductionOrder must be a valid instance of ProductionOrder object
// Then set other line properties (quantity produced, etc.
// Finally call ooInventoryDocument.Add()
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.