i create a new line in a ship and I set value to ship[“OurInventoryShipQty”] = qty; but When I search the SHIP these line the value is 0
private void createstocklines(int pack, int order, int cust,int line, int rel,string part, string rev,
string desc, int qty,string shipto)
{
try
{
CustShipAdapter adapterCustShip = new CustShipAdapter(this.oTrans);
adapterCustShip.BOConnect();
adapterCustShip.GetByID(pack);
adapterCustShip.GetNewShipDtl(pack);
adapterCustShip.GetNewOrdrShipDtl(pack,order);
DataRow ship = adapterCustShip.CustShipData.ShipDtl[adapterCustShip.CustShipData.ShipDtl.Rows.Count - 1];
ship["Company"] = "NET";
ship["CustNum"] = cust;
ship["ShipToCustNum"] = cust;
ship["MFCustNum"] = cust;
ship["MFShipToNum"] = shipto;
ship["OrderNum"] = order;
ship["OrderLine"] = line;
ship["OrderRelNum"] = rel;
ship["PartNum"] = part;
ship["RevisionNum"] = rev;
ship["LineDesc"] = desc;
ship["WarehouseCode"] = "SHIP";
ship["WarehouseCodeDescription"] = "Shipping Area";
ship["BinNum"] = "SHIP-OUT";
ship["WarehouseCode"] = "VLM";
ship["WarehouseCodeDescription"] = "VLM Storage";
ship["BinNum"] = "FG";
ship["InventoryShipUOM"] = "EA";
ship["JobShipUOM"] = "EA";
ship["SellingShippedUM"] = "EA";
ship["SellingShipmentUM"] = "EA";
ship["SellingReqUM"] = "EA";
ship["SellingRemainUM"] = "EA";
ship["SalesUM"] = "EA";
ship["IUM"] = "EA";
ship["WUM"] = "LB";
ship["SellingInventoryShipQty"] = qty;
ship["OurInventoryShipQty"] = qty;
adapterCustShip.Update();
// Cleanup Adapter Reference
adapterCustShip.Dispose();
oTrans.Update();
} catch (System.Exception ex)
{
ExceptionBox.Show(ex);
}
}
Everything in this section works fine, but it will not put any data into the “OurInventoryShipQty” field.
No errors, just doesn’t complete it. Anyone have any suggestions???