Tabela |
TQN |
ENTRADA MANUAL ABASTECIMENTO |
Campo |
Tipo |
Tamanho |
Decimal |
Titulo |
Formato |
Validacao |
F3 |
Contexto |
Lista |
Condicao |
PYME |
TQN_FILIAL |
C |
2 |
0 |
Filial |
|
|
|
|
|
|
S |
TQN_NABAST |
C |
15 |
0 |
N. Abastec. |
@! |
|
|
R |
|
|
S |
TQN_PLACA |
C |
8 |
0 |
Placa |
@! |
MNT655PLACA() |
|
R |
|
MNT655WHEN('TQN_PLACA') |
S |
TQN_FROTA |
C |
16 |
0 |
Frota |
@! |
MNT655EXIST() |
ST9 |
R |
|
MNT655WHEN('TQN_FROTA') |
S |
TQN_DESFRO |
C |
40 |
0 |
Descricao |
@S20 |
|
|
V |
|
|
S |
TQN_POSTO |
C |
6 |
0 |
Cod. Posto |
@! |
EXISTCPO('TQF',M->TQN_POSTO,1) .AND. MNA655BPOST().AND.MNTA655PUNI() |
NGK |
R |
|
lPrev .And. lPosIntAlt |
S |
TQN_LOJA |
C |
2 |
0 |
Loja |
@! |
EXISTCPO('TQF',M->TQN_POSTO+M->TQN_LOJA).AND.MNTA655PUNI() |
|
R |
|
lPrev .And. lPosIntAlt |
S |
TQN_DESCPO |
C |
30 |
0 |
Descricao |
@S20 |
|
|
V |
|
|
S |
TQN_CNPJ |
C |
14 |
0 |
CNPJ/CPF |
@R 99.999.999/9999-99 |
Vazio() .Or. (CGC(M->TQN_CNPJ) .And. MNA655BCNPJ()) |
|
R |
|
lPrev .And. lPosIntAlt |
S |
TQN_CODCOM |
C |
3 |
0 |
Combustivel |
@! |
EXISTCPO('TQM',M->TQN_CODCOM).AND.MNTA655PUNI() |
TQM |
R |
|
lPrev .And. lPosIntAlt |
S |
TQN_NOTFIS |
C |
9 |
0 |
N. Nota/Req |
@! |
MNA655CV('DT') |
|
R |
|
lPrev |
S |
TQN_DTABAS |
D |
8 |
0 |
Dt. Abastec. |
|
Naovazio() .and. VALDT(M->TQN_DTABAS) .and. MNA655CV('DT') |
|
R |
|
lPrev .And. lNaoAlt656 |
S |
TQN_HRABAS |
C |
5 |
0 |
Hora |
99:99 |
Empty(M->TQN_HRABAS) .Or. (MNA655CV('HR') .AND. NGVALHORA(M->TQN_HRABAS,.T.) .AND. MNA655HR()) |
|
R |
|
lPrev .And. lNaoAlt656 |
S |
TQN_TANQUE |
C |
2 |
0 |
Tanque |
@! |
ExistCpo('TQI',M->TQN_POSTO+M->TQN_LOJA+M->TQN_TANQUE) .And. MNTA655TAN() |
NGI |
R |
|
lTANQUE |
S |
TQN_BOMBA |
C |
3 |
0 |
Bomba |
@! |
EXISTCPO('TQJ',M->TQN_POSTO+M->TQN_LOJA+M->TQN_TANQUE+M->TQN_BOMBA) |
TQJ |
R |
|
lBOMBA |
S |
TQN_QUANT |
N |
9 |
3 |
Quantidade |
@E 99,999.999 |
MNA655QC() .AND. NGMAQUEZERO(M->TQN_QUANT,"TQN_QUANT",.T.) |
|
R |
|
lPrev |
S |
TQN_VALUNI |
N |
9 |
3 |
Vlr.Unitario |
@E 99,999.999 |
MNA655PR() |
|
R |
|
LVALUNI |
S |
TQN_VALTOT |
N |
15 |
3 |
Valor Total |
@E 99,999,999,999.999 |
MNA655VT() |
|
R |
|
If(Altera,lPrev,lValTot) |
S |
TQN_HODOM |
N |
9 |
0 |
Contador 1 |
@E 999,999,999 |
MNA655HO(1) |
|
R |
|
TIPOACOM .And. MNT656CONC() |
S |
TQN_POSCO2 |
N |
9 |
0 |
Contador 2 |
@E 999,999,999 |
MNA655HO(2) |
|
|
|
TIPOACOM2 |
N |
TQN_CODVIA |
C |
6 |
0 |
Cod. Viagem |
@! |
If(Empty(M->TQN_CODVIA),.T.,ExistCpo("DTQ",M->TQN_CODVIA)) |
DTQ |
R |
|
|
S |
TQN_ESCALA |
C |
8 |
0 |
Escala |
@! |
|
|
R |
|
Lprev |
S |
TQN_NABAAN |
C |
15 |
0 |
N.Abast.Ant. |
@! |
|
|
R |
|
|
S |
TQN_CODMOT |
C |
6 |
0 |
Motorista |
@! |
If(!Empty(M->TQN_CODMOT),EXISTCPO('DA4',M->TQN_CODMOT) .AND. MNA655MO(),.t.) |
DA4 |
R |
|
|
S |
TQN_NOMMOT |
C |
40 |
0 |
Nome |
@S20 |
|
|
V |
|
|
S |
TQN_USUARI |
C |
15 |
0 |
Usuario |
@! |
|
|
R |
|
|
S |
TQN_DTCON |
D |
8 |
0 |
Dt.Concilia. |
99/99/9999 |
|
|
R |
|
|
S |
TQN_AUTO |
C |
1 |
0 |
Ent.Automat. |
@! |
|
|
R |
1=Sim;2=Nao |
|
S |
TQN_DTDIGI |
D |
8 |
0 |
Dt.Digitacao |
99/99/9999 |
|
|
R |
|
|
S |
TQN_DTPGMT |
D |
8 |
0 |
Data Pagamto |
99/99/9999 |
|
|
R |
|
|
S |
TQN_NUMSEQ |
C |
6 |
0 |
Sequencial |
@! |
|
|
R |
|
|
S |
TQN_NUMCON |
C |
15 |
0 |
NšAbast.Conv |
@! |
|
|
R |
|
|
S |
TQN_DTPREV |
D |
8 |
0 |
Dt. Previsao |
99/99/9999 |
|
|
R |
|
|
S |
TQN_DTPROV |
D |
8 |
0 |
Dt. Provisao |
99/99/9999 |
|
|
R |
|
|
S |
TQN_DTEMIS |
D |
8 |
0 |
Data Emis NF |
99/99/9999 |
|
|
R |
|
|
S |
TQN_DTINTE |
D |
8 |
0 |
Dt.Integ.Est |
99/99/9999 |
|
|
R |
|
|
S |
TQN_DINTMS |
D |
8 |
0 |
Dt.Integ.TMS |
99/99/9999 |
|
|
R |
|
|
S |
TQN_DINTCG |
D |
8 |
0 |
Dt.Int.Cogno |
99/99/9999 |
|
|
R |
|
|
S |
TQN_CCUSTO |
C |
9 |
0 |
Centro Custo |
@! |
|
|
R |
|
|
S |
TQN_CENTRA |
C |
6 |
0 |
Centro trab. |
@! |
|
|
R |
|
|
S |
TQN_ORDENA |
C |
8 |
0 |
Ordenacao |
@! |
|
|
R |
|
|
S |
TQN_NUMSGC |
C |
6 |
0 |
Num.Seq.SGC |
@! |
|
|
R |
|
|
S |
TQN_DTAANT |
D |
8 |
0 |
Dt.Abas.Ant |
|
|
|
V |
|
|
S |
TQN_HRAANT |
C |
5 |
0 |
Hr.Abas.Ant. |
99:99 |
|
|
V |
|
|
S |
TQN_HODANT |
N |
9 |
0 |
Hodom.Ant. |
@E 999,999,999 |
|
|
V |
|
|
S |
TQN_VARDIA |
N |
6 |
0 |
Variacao Dia |
@E 999,999 |
|
|
V |
|
|
S |
TQN_KMROD |
N |
9 |
0 |
Km. Rodado |
@E 999,999,999 |
|
|
V |
|
|
S |
TQN_MEDIA |
N |
9 |
2 |
Media KM/L |
@E 999,999.99 |
|
|
V |
|
|
S |
TQN_OSLUBR |
C |
6 |
0 |
O.S. Lubrif. |
@! |
|
|
R |
|
|
S |
TQN_FILORI |
C |
2 |
0 |
Filial Orig. |
|
|
|
R |
|
|
S |
TQN_ITEMSC |
C |
4 |
0 |
Item PC |
@! |
|
|
R |
|
|
S |
TQN_NUMSC7 |
C |
6 |
0 |
Numero PC |
@! |
|
|
R |
|
|
S |