Difference between revisions of "C Inventory Transactions"
From Sage Evolution SDK | Documentation Portal
(Created page with "'''The InventorTransaction class is the equivalent of a Inventory Adjustment. Stock can be increased decreased or the cost adjusted.''' //Create a instance of the...") |
(No difference)
|
Revision as of 15:41, 22 October 2015
The InventorTransaction class is the equivalent of a Inventory Adjustment. Stock can be increased decreased or the cost adjusted.
//Create a instance of the InventoryTransaction class InventoryTransaction ItemInc = new InventoryTransaction(); ItemInc.TransactionCode = new TransactionCode(Module.Inventory, "ADJ");// specify a inventory transaction type generally this will be ADJ ItemInc.InventoryItem = new InventoryItem("Item1"); ItemInc.Operation = InventoryOperation.Increase;//Select the necessary enumerator increase , decrease or cost adjustment ItemInc.Quantity = 2; ItemInc.Reference = "F2"; ItemInc.Reference2 = "ref2"; ItemInc.Description = "desc"; ItemInc.Post();
//Create a instance of the InventoryTransaction class InventoryTransaction ITCost = new InventoryTransaction(); ITCost.TransactionCode = new TransactionCode(Module.Inventory, "ADJ");// specify a inventory transaction type generally this will be ADJ ITCost.InventoryItem = new InventoryItem("Item1"); ITCost.Operation = InventoryOperation.CostAdjustment;//Select the necessary enumerator increase , decrease or cost adjustment ITCost.UnitCost = 75; ITCost.Reference = "F2"; ITCost.Reference2 = "ref2"; ITCost.Description = "desc"; ITCost.Post();
- See more at: http://kb.pastel.co.za/article.php?id=1992#sthash.Vq8ymmGI.dpuf