Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valores nulos da tabela VDORCAMENTO #6

Open
GoogleCodeExporter opened this issue Sep 18, 2015 · 0 comments
Open

Valores nulos da tabela VDORCAMENTO #6

GoogleCodeExporter opened this issue Sep 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Modulo: Freedom-GMS
Versão atual: 1.2.2.6
Sistema operacional: Linux
Opção do menu: Serviços-> Painel de controle
Ação em que o erro ocorre: Ao gerar um orçamento a partir de uma ordem de 
serviço.
Descrição detalhada do problema: As colunas VLRPRODORC, VLRLIQORC da tabela 
VDORCAMENTO estão ficando <null> ao gerar um orçamento a partir de uma ordem 
de serviço.
Consegui corrigir esse problema inserindo o seguinte código na trigger 
VDITORCAMENTOTGBI:

-- Garantindo valor válido para vlrproditorc
if ((new.vlrproditorc is null) or (new.vlrproditorc = 0)) then
begin
    new.vlrproditorc = new.precoitorc;
end

Original issue reported on code.google.com by paulobue...@hotmail.com on 7 Jul 2010 at 12:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant