Jump to content

PHC - Stock apenas de 1 armazém


LMDCM

Recommended Posts

  • 2 weeks later...
Em 15/01/2024 às 14:58, pc.cesar disse:

no cenario desejado nao dá da forma que indiquei

Criar uma tecla de utilizador e actualizar o campo

msel = [ select stock from sa where ref=']+st.ref+[' and armazem=1 )]

if u_sqlexec(msel, [cursor])

***exemplo
SST.pageframe1.objnovo.value = cursor.stock

endif

Criei uma tecla de utilizador tecla CTRL+S, tipo Programa e na expressão de retorno coloquei,

 

msel = [ select stock from sa where ref=']+st.ref+[' and armazem=1 )]

If u_sqlexec(msel, [cursor])

    SST.pageframe1.page1.stock2.Value = Cursor.stock

Endif

 

Fui a Stock e serviços, selecionei uma referência e cliquei na tecla CTRL+S, mas não aconteceu nada.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.