Valida si te funciona esto porfa
IF @transaction_type in ('A') AND @object_type IN ('672')
begin
declare @precio as real
set @precio =(select count(*) from rdr1 where docentry=@list_of_cols_val_tab_del and $[$3.4.number]=0)
if @precio > 0
begin
SET @error = 66
SET @error_message ='No es posible crear documento con articulos sin precio'
end
end