# Move Wip, working through the BO's

**URL:** <https://www.epiusers.help/t/move-wip-working-through-the-bos/43569>\
**Category:** Epicor ERP 10\
**Created:** [March 21, 2018, 9:29pm UTC](https://www.epiusers.help/t/move-wip-working-through-the-bos/43569 "2018-03-21T21:29:38Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![jgiese.wci](https://www.epiusers.help/user_avatar/www.epiusers.help/jgiese.wci/32/51553_2.png) [@jgiese.wci](https://www.epiusers.help/u/jgiese.wci)\
**Post date:** [March 22, 2018, 2:16pm UTC](https://www.epiusers.help/t/move-wip-working-through-the-bos/43569/12 "2018-03-22T14:16:39Z")

</div>

```auto
foreach(var x in ttResults.Where(r => r.Updated()))
{
	using (var txscope = IceDataContext.CreateDefaultTransactionScope()) 
	{
		var pwip = (from pw in Db.PartWip where pw.Company == callContextClient.CurrentCompany && pw.SysRowID == x.PartWip_SysRowID select pw).FirstOrDefault();
		var whseBin = (from wb in Db.WhseBin where wb.Company == pwip.Company && wb.BinNum == x.PartWip_BinNum && wb.WarehouseCode == x.PartWip_WareHouseCode select wb).FirstOrDefault();
		if(whseBin !=null)
		{
			pwip.WareHouseCode = x.PartWip_WareHouseCode;
			pwip.BinNum = x.PartWip_BinNum;
			pwip.Quantity = x.PartWip_Quantity;
			Db.Validate();
		}
		else
		{
			throw new Ice.BLException("Dude, this isn't a valid Bin location for the warehouse you have choosen.");
		}
		txscope.Complete();
	}
}

```

---

_[View the full topic](https://www.epiusers.help/t/move-wip-working-through-the-bos/43569)._
