Hi Guys,
someone can help me?
I get the error when create new ship detail in shipment.
please check error and code below
#error
var myShipVia = (from ShipVia_row in ttShipHead
where ShipVia_row.PackNum == 4206
select ShipVia_row).FirstOrDefault();
PackNum = myShipVia.PackNum;
Erp.Contracts.CustShipSvcContract csSvc = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.CustShipSvcContract>();
Erp.Tablesets.CustShipTableset shipdtl = new Erp.Tablesets.CustShipTableset();
using (var txscope = IceDataContext.CreateDefaultTransactionScope())
{
// Create
csSvc.GetNewShipDtl(ref shipdtl, PackNum);
shipdtl.ShipDtl[0]["OrderNum"] = OrderNUm;
shipdtl.ShipDtl[0]["OrderLine"] = OrderLine;
shipdtl.ShipDtl[0]["OrderRelNum"] = RelNum;
shipdtl.ShipDtl[0]["LineDesc"] = Desc;
shipdtl.ShipDtl[0]["CustNum"] = Customer;
csSvc.Update(ref shipdtl);
Db.Validate();
txscope.Complete();
}
Thank You & Warn Regards,