Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 38722

Forum Post: Web Services InventoryAdjustment Auto Assign Document Number

$
0
0
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);

Viewing all articles
Browse latest Browse all 38722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>