on 06-09-2013 12:58 AM
Boa Noite
Os colegas poderiam me ajudar em como conseguir bloquear para que não seja inserido pedido sem a informação de um vendedor
Olá Sandra,
Por favor, tente usar o bloqueio na TransactionNotification como no exemplo.
--Vendedor deve ser preenchido no Pedido de Venda
if @object_type = ('17') and @transaction_type in ('A','U')
Begin
if (select COUNT (*)
from ORDR T0
where T0.DocEntry = @list_of_cols_val_tab_del and (T0.SlpCode is null or T0.SlpCode = '-1' or T0.SlpCode = '')) > 0
Begin
Set @error = 1
Set @error_message = 'Vendedor deve ser preenchido!'
END
END
Abraço,
Marcelo Silva Santos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.