on 07-14-2015 8:08 PM
Boa tarde
Algum colega tem uma trava para não poder modificar um pedido apos o mesmo ter sido impresso ou só modificar com autorização?
Bom dia. Segue um exemplo. Espero que ajude. ------------INICIO DA TRAVA--------------- /** Bloqueia edição de Pedido de venda IMpresso**/ if @object_type = '17' and (@transaction_type = 'U') begin if (Select Count(1) From ORDR T0 Where T0.docentry = @list_of_cols_val_tab_del And t0.Printed = 'Y') > 0 Begin SELECT @error = -1 SELECT @error_message = 'Pedido já impresso, não é possivel atualizar informações!' End end ---------- FIM DA TRAVA------------- Grato! Att, Luiz Assis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.