Hello All,
I am developing an application to drive in inventory adjustments using WS. For some reason, I cannot auto-assign the next ADJ doc number from GP. On the other hand, I am able to pass in the document number and the transaction is created.
Please see the code below, any help is greatly appreciated!
//string docnmbr;
//docnmbr = "Static Doc Number";
inventoryKey = new InventoryKey();
//inventoryKey.Id = InventoryAdjustment.Key.Id;
// Create a batch key object to specify a batch for the inventory variance
batchKey = new BatchKey();
batchKey.Id = batch;
// Create an inventory variance object
InventoryAdjustment = new InventoryAdjustment();
// Populate the inventory variance object's required properties
//InventoryAdjustment.Key = inventoryKey;
InventoryAdjustment.BatchKey = batchKey;
InventoryAdjustment.Date = Convert.ToDateTime(dt);
InventoryAdjustment.CreatedDate = Convert.ToDateTime(dt);
*This post is locked for comments