Update BO Deleting PackSlip

I’m sorry did you say it Deleted a pack??? :open_mouth:

Do me a favor and pass in the BeforeImage let’s see if that helps

using(var shipBO = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.CustShipSvcContract>(Db))
      {
        CustShipTableset cTS = new CustShipTableset(); 
        
        cTS = shipBO.GetByID(packNum);
        //Create Before Image
        var origRow = cTS.ShipHead.NewRow();
        BufferCopy.Copy(cTS.ShipHead[0], origRow);
        cTS.ShipHead.Add(origRow);
        //Update Record
        cTS.ShipHead[0]["KuebixStatus_c"] = tt.UD24_ShortChar01.ToString();
        cTS.ShipHead[0].RowMod = "U";

        shipBO.Update(ref cTS);
      }
6 Likes