on 2018 Feb 01 11:26 PM
Necesito ayuda para crear un código en el Transaction Notification para poder crear un bloqueo cuando al generar una OC/Pedido, Gastos diversos asociados al Proyecto y Gastos de Viaje inherentes al Proyecto una vez que se pasen del presupuesto.
Sive igual como cuando haces un bloqueo por documento??
IF @transaction_type in ('A') AND @object_type IN ('17') begin declare @stock as int set @stock=(select count (*) from oitw where itemcode in (select itemcode from rdr1 where docentry=@list_of_cols_val_tab_del) and onhand=0) if @stock >=1 begin SET @error = 66 SET @error_message ='No es posible crear documento con articulos sin stock!' end end
Saludos.
Request clarification before answering.
| User | Count |
|---|---|
| 29 | |
| 14 | |
| 14 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.