UPDATE VS4TInventoryLOT Set TIMCPrice=TIMCInputCost WHERE (TIMCPrice=0 or TIMCPrice is null) and TIMCCostInputType=0 AND TIMCTInTAlias='BEGINBALANCE'
GO
UPDATE VS4TInventoryLOT Set TIMCPrice=0 WHERE TIMCPrice is null AND TIMCCostInputType=0 
GO