Consulta Padrao(SXB): NJR005 - Ctr.Compra Sem Troca |
XB_ALIAS | XB_TIPO | XB_SEQ | XB_COLUNA | XB_DESCRI | XB_CONTEM |
NJR005 | 1 | 01 | DB | Ctr.Compra Sem Troca | NJR |
NJR005 | 2 | 01 | 01 | Codigo | |
NJR005 | 4 | 01 | 01 | Codigo | NJR_CODCTR |
NJR005 | 4 | 01 | 02 | Descricao | NJR_DESCRI |
NJR005 | 4 | 01 | 03 | Nom.Ent. | Posicione('NJ0',1,xFilial('NJ0')+NJR->NJR_CODENT+NJR->NJR_LOJENT,'NJ0_NOME') |
NJR005 | 4 | 01 | 04 | Nom.Loj. | Posicione('NJ0',1,xFilial('NJ0')+NJR->NJR_CODENT+NJR->NJR_LOJENT,'NJ0_NOMLOJ') |
NJR005 | 5 | 01 | | | NJR->NJR_CODCTR |
NJR005 | 6 | 01 | | | NJR->NJR_TIPO == '1' .and. ! NJR->NJR_USADO = .T. .and. NJR->(NJR_CODENT+NJR_LOJENT) == POSICIONE('NJ0', 4, xFilial('NJ0')+M->(ADA_CODCLI+ADA_LOJCLI),'NJ0_CODENT')+POSICIONE('NJ0', 4, xFilial('NJ0')+M->(ADA_CODCLI+ADA_LOJCLI),'NJ0_LOJENT') |