Difference between revisions of "C Warehouse Inter Branch Transfer"

From Sage Evolution SDK | Documentation Portal
Jump to: navigation, search
(Created page with "'''From Version 8.00... onwards the SDK has functionality to do a Warehouse IBT Transfer.''' '''To do Warehouse IBT Transfers the feature has to be enabled in Evolution Wareho...")
 
(No difference)

Latest revision as of 13:26, 18 July 2017

From Version 8.00... onwards the SDK has functionality to do a Warehouse IBT Transfer. To do Warehouse IBT Transfers the feature has to be enabled in Evolution Warehouse Defaults.

// The following will be the issueing of stock from one warehouse to another leaving the stock in transit
WarehouseIBT IBTIssue = new WarehouseIBT();
IBTIssue.WarehouseFrom = new Warehouse("W1");//Specify From which warehouse qty will be transfered from
IBTIssue.WarehouseTo = new Warehouse("W2");//Specify To which warehouse qty will be transfered to
IBTIssue.Description = "Test1des";
 
WarehouseIBTLine IBTIssueLine = new WarehouseIBTLine();
IBTIssueLine.InventoryItem = new InventoryItem("ItemwA");
IBTIssueLine.Description = "testline1";
IBTIssueLine.Reference = "Ref001";
IBTIssueLine.QuantityIssued = 5;           
IBTIssue.Detail.Add(IBTIssueLine);
IBTIssue.IssueStock();
 
//The following will be the receiving of stock for the issue above that is in transit
WarehouseIBT IBTReceive = new WarehouseIBT(IBTIssue.Number);
 
foreach (WarehouseIBTLine IBTReceiveLine in IBTReceive.Detail)
{
IBTReceiveLine.QuantityReceived = 2;
}
IBTReceive.ReceiveStock();