Tabela |
SW2 |
Capa de Purchase Order |
Campo |
Tipo |
Tamanho |
Decimal |
Titulo |
Formato |
Validacao |
F3 |
Contexto |
Lista |
Condicao |
PYME |
W2_FILIAL |
C |
2 |
0 |
Filial |
|
|
|
|
|
|
N |
W2_PO_NUM |
C |
15 |
0 |
No. P.O. |
@! |
ExistChav("SW2",M->W2_PO_NUM) |
|
|
|
GetMV("MV_NRPO")#'S' |
N |
W2_PO_DT |
D |
8 |
0 |
Data P.O. |
@D |
|
|
|
|
|
N |
W2_NR_ALTE |
N |
2 |
0 |
No.Alteracao |
99 |
PO420VAL("W2_NR_ALTE") |
|
|
|
|
N |
W2_IMPCO |
C |
1 |
0 |
Import C.O? |
@! |
Pertence('12') |
|
R |
1=Sim;2=Nao |
|
N |
W2_DT_ALTE |
D |
8 |
0 |
Dt Alteracao |
@D |
PO420VAL("W2_DT_ALTE") |
|
|
|
|
N |
W2_FORN |
C |
6 |
0 |
Cod.Forneced |
@! |
PO420VAL('W2_FORN') |
VV6A |
|
|
|
N |
W2_FORLOJ |
C |
2 |
0 |
Loja |
@! |
PO420VAL("W2_FORLOJ") |
|
|
|
|
S |
W2_FORNDES |
C |
30 |
0 |
Fornecedor |
|
|
|
V |
|
|
N |
W2_CLIENTE |
C |
6 |
0 |
Cod. Cliente |
@! |
Vazio() .OR. ExistCpo("SA1",M->W2_CLIENTE) |
QPW |
|
|
|
N |
W2_CLILOJ |
C |
2 |
0 |
Loja |
@! |
PO420VAL("W2_CLILOJ") |
|
|
|
|
S |
W2_CLINOME |
C |
30 |
0 |
Cliente |
|
|
|
V |
|
|
N |
W2_FOB_TOT |
N |
15 |
4 |
FOB |
@E 9,999,999,999.9999 |
|
|
|
|
|
N |
W2_INLAND |
N |
15 |
2 |
Inland |
@E 999,999,999,999.99 |
PO420VAL('W2_INLAND') |
|
|
|
PO400When('W2_INLAND') |
N |
W2_DESCONT |
N |
15 |
2 |
Desconto |
@E 999,999,999,999.99 |
PO420VAL('W2_DESCONT') |
|
|
|
PO400When('W2_DESCONT') |
N |
W2_PACKING |
N |
15 |
2 |
Packing |
@E 999,999,999,999.99 |
PO420VAL('W2_PACKING') |
|
|
|
PO400When('W2_PACKING') |
N |
W2_OUT_DES |
N |
15 |
2 |
Outras Desp. |
@E 999,999,999,999.99 |
Positivo() |
|
|
|
|
N |
W2_FOB_GER |
N |
15 |
2 |
Total do PO |
@E 999,999,999,999.99 |
|
|
V |
|
|
N |
W2_DT_IMP |
D |
8 |
0 |
Dt Import. |
@D |
|
|
|
|
|
N |
W2__NR_COT |
C |
10 |
0 |
No. Cotacao |
@! |
PO420VAL("W2__NR_COT") |
SWR |
|
|
|
N |
W2__DT_COT |
D |
8 |
0 |
Data Cotacao |
@D |
|
|
|
|
|
N |
W2_NR_PRO |
C |
15 |
0 |
No. Proforma |
@! |
|
|
|
|
!(EYZ->(DbSeek(xFilial('EYZ')+SW2->W2_PO_NUM))) |
N |
W2_DT_PRO |
D |
8 |
0 |
Dt Proforma |
|
|
|
|
|
PO400WHEN('W2_DT_PRO') |
N |
W2_AGENTE |
C |
3 |
0 |
Cod. Agente |
@! |
ExistCpo("SY4",M->W2_AGENTE) |
SY4 |
|
|
|
N |
W2_AGENTEN |
C |
30 |
0 |
Agente |
|
|
|
V |
|
|
N |
W2_FORWARD |
C |
3 |
0 |
Cod Forward. |
@! |
Vazio() .OR. ExistCpo("SY4",M->W2_FORWARD) |
SY4 |
|
|
|
N |
W2_FORWARN |
C |
30 |
0 |
Forwarder |
|
|
|
V |
|
|
N |
W2_TIPO_EM |
C |
2 |
0 |
Via Transp. |
@! |
ExistCpo("SYQ",M->W2_TIPO_EM) .AND. PO420Val("COMP_VIA") |
SYQ |
|
|
|
N |
W2_TIPO_DE |
C |
30 |
0 |
Descr.da Via |
|
|
|
V |
|
|
N |
W2_ORIGEM |
C |
3 |
0 |
Origem |
@! |
ExistCpo("SYR",M->W2_TIPO_EM+M->W2_ORIGEM) .AND. PO420Val("COMP_ORIG") |
EOD |
|
|
|
N |
W2_DEST |
C |
3 |
0 |
Destino |
@! |
ExistCpo("SYR",M->W2_TIPO_EM+M->W2_ORIGEM+M->W2_DEST) .AND. PO420Val("COMP_DEST") |
EDE |
|
|
|
N |
W2_FREINC |
C |
1 |
0 |
Frete Incl. |
@! |
Pertence("12") .AND. PO420VAL('W2_FRETEIN') |
|
R |
1=Sim;2=Nao |
PO400When('W2_FREINC') |
N |
W2_FRETEIN |
N |
15 |
2 |
Int'l Freigh |
@E 999,999,999,999.99 |
PO420VAL("W2_FRETEINT") |
|
|
|
PO400When('W2_FRETEIN') |
N |
W2_FREPPCC |
C |
2 |
0 |
Tipo Frete |
@! |
PO420VAL("PPCC") |
|
|
CC=Collect;PP=Prepaid |
|
N |
W2_COND_PA |
C |
5 |
0 |
Cond. Pagto |
@! |
PO420VAL("W2_COND_PA") |
Y6A |
|
|
|
N |
W2_DIAS_PA |
N |
3 |
0 |
Dias Pagto |
999 |
PO420VAL("W2_DIAS_PA") |
|
|
|
|
N |
W2_COMPRA |
C |
3 |
0 |
Cod.Comprad. |
@! |
ExistCpo("SY1",M->W2_COMPRA,1) |
SY1 |
|
|
|
N |
W2_MOEDA |
C |
3 |
0 |
Moeda |
@! |
PO420Val("W2_MOEDA") |
SYE |
|
|
|
N |
W2_COMPRAN |
C |
30 |
0 |
Comprador |
|
|
|
V |
|
|
N |
W2_PESO_B |
N |
14 |
3 |
Peso Bruto |
@E 9,999,999,999.999 |
POSITIVO() |
|
|
|
|
N |
W2_DT_PAR |
D |
8 |
0 |
Dt Paridade |
@D |
PO400Paridade() |
|
|
|
|
N |
W2_PARID_U |
N |
13 |
6 |
Paridade US$ |
@E 999,999.999999 |
Positivo() |
|
|
|
|
N |
W2_DESC_PD |
C |
48 |
0 |
Descricao |
|
|
|
V |
|
|
N |
W2_INCOTER |
C |
3 |
0 |
Incoterm |
@! |
ExistCpo("SYJ",M->W2_INCOTER) .AND. PO420Val("W2_INCOTER") |
SYJ |
|
|
|
N |
W2_IMPORT |
C |
2 |
0 |
Importador |
@! |
PO420VAL("W2_IMPORT") |
SYT |
|
|
|
N |
W2_IMPNOME |
C |
30 |
0 |
Importador |
|
|
|
V |
|
|
N |
W2_CONSIG |
C |
2 |
0 |
Cod.Consig. |
@! |
PO420VAL("W2_CONSIG") |
SYT |
|
|
|
N |
W2_CONNOME |
C |
30 |
0 |
Consignatar. |
|
|
|
V |
|
|
N |
W2_OBS |
C |
6 |
0 |
Obs |
|
|
|
|
|
|
N |
W2_EMITIDO |
C |
1 |
0 |
Emitido S/N |
@! |
|
|
|
|
|
N |
W2_DT_PC |
D |
8 |
0 |
Dt Pre-Calc. |
@D |
|
|
|
|
|
N |
W2_TAB_PC |
C |
4 |
0 |
Tb.Pre-Calc. |
@! |
Vazio().or.ExistCpo("SWF",M->W2_TAB_PC) |
SWF |
|
|
|
N |
W2_STAT_PC |
C |
1 |
0 |
St.Pre-Calc. |
@! |
|
|
|
|
|
N |
W2_DT_INTE |
D |
8 |
0 |
Dt Integrac. |
@D |
|
|
|
|
|
N |
W2_EMISCCA |
D |
8 |
0 |
Dt Emis.Camb |
@D |
|
|
|
|
|
N |
W2_NRCCAMB |
C |
15 |
0 |
No.Cont.Camb |
@! |
|
|
|
|
|
N |
W2_RECCCAM |
D |
8 |
0 |
Dt Rec. Camb |
@D |
|
|
|
|
|
N |
W2_BAN_REC |
C |
20 |
0 |
Banco Receb. |
@! |
|
|
|
|
|
N |
W2_ENCARGO |
N |
15 |
4 |
Encargos |
|
|
|
|
|
|
N |
W2_CORRETA |
N |
12 |
2 |
Corretagem |
|
|
|
|
|
|
N |
W2_CUST_TR |
C |
20 |
0 |
Custo Transf |
@! |
|
|
|
|
|
N |
W2_BANCO |
C |
3 |
0 |
Banco |
@! |
|
|
|
|
|
N |
W2_AGENCIA |
C |
5 |
0 |
Agencia |
@! |
|
|
|
|
|
N |
W2_TX_CAM |
N |
15 |
8 |
Taxa Cambio |
@E 999,999.99999999 |
|
|
|
|
|
N |
W2_TX_DESP |
N |
15 |
8 |
Taxa Despes. |
@E 999,999.99999999 |
|
|
|
|
|
N |
W2_TX_RESE |
N |
12 |
2 |
Taxa Reserva |
|
|
|
|
|
|
N |
W2_DESP_CA |
N |
12 |
2 |
Desp. Cambio |
|
|
|
|
|
|
N |
W2_MOE_DES |
C |
3 |
0 |
Moeda Desp. |
@! |
|
|
|
|
|
N |
W2_FOB_ANT |
N |
15 |
2 |
FOB Antecip. |
|
|
|
|
|
|
N |
W2_LC_NUM |
C |
10 |
0 |
Carta Credit |
@! |
|
|
|
|
|
N |
W2_DES_IPI |
C |
60 |
0 |
Descr. Gen. |
@!S50 |
|
|
|
|
|
N |
W2_OK |
C |
2 |
0 |
Ok |
|
|
|
|
|
|
N |
W2_COD_MSG |
C |
3 |
0 |
Codigo Msg |
999 |
Vazio() .OR. EXISTCPO("SY7","1"+M->W2_COD_MSG,03) |
MSG |
R |
|
|
N |
W2_VM_OBS |
M |
60 |
0 |
Observacoes |
|
|
|
V |
|
|
N |
W2__AB |
C |
20 |
0 |
No. AB |
@! |
|
|
|
|
|
N |
W2_CONF_PE |
D |
8 |
0 |
Dt Conf Ped |
@D |
|
|
|
|
|
N |
W2_ENV_ORI |
D |
8 |
0 |
Envio Orient |
@D |
|
|
|
|
|
N |
W2_ARQ |
C |
12 |
0 |
Arquivo |
@! |
|
|
|
|
|
N |
W2_DESP |
C |
6 |
0 |
Despachante |
@! |
(EMPTY(M->W2_DESP) .OR. ExistCpo("SY5",M->W2_DESP)) .AND. PO420VAL("W2_DESP") |
DES |
|
|
|
N |
W2_EXPORTA |
C |
6 |
0 |
Exportador |
@! |
IF(!EMPTY(M->W2_EXPORTA),ExistCpo("SA2",M->W2_EXPORTA),.T.) |
EXP |
|
|
|
N |
W2_EXPLOJ |
C |
2 |
0 |
Loja |
@! |
PO420VAL("W2_EXPLOJ") |
|
|
|
|
N |
W2_EXPNOME |
C |
30 |
0 |
Nome Export. |
|
|
|
V |
|
|
N |
W2_COND_EX |
C |
5 |
0 |
Cond. Pagto |
@! |
PO420VAL("W2_COND_EX",1) |
Y6A |
|
|
|
N |
W2_DIAS_EX |
N |
3 |
0 |
Dias Pagto |
999 |
PO420VAL("W2_DIAS_EX",1) |
|
|
|
|
N |
W2_DESC_EX |
C |
48 |
0 |
Descricao |
|
|
|
V |
|
|
N |
W2_E_LC |
C |
1 |
0 |
Carta Cred. |
@! |
Pertence("12 ") |
|
|
1=Sim;2=Nao |
|
N |
W2_COMIS |
C |
1 |
0 |
Tem comissao |
@! |
Pertence("12 ") |
|
|
1=Sim;2=Nao |
|
N |
W2_TIP_COM |
C |
1 |
0 |
Tipo comis. |
9 |
(Vazio() .OR. Pertence("1234 ")) .AND. PO420Val("W2_TIP_COM") |
|
|
1=Percentual;2=Valor Fixo;3=Valor s/ Unidade;4=Outros |
|
N |
W2_VAL_COM |
N |
15 |
4 |
Valor Comis. |
@E 9,999,999,999.9999 |
PO420VAL('W2_VAL_COM') |
|
|
|
|
N |
W2_PER_COM |
N |
6 |
2 |
Percentual |
999.99 |
PO420Val("W2_PER_COM") |
|
|
|
|
N |
W2_OUT_COM |
C |
20 |
0 |
Outr. comis. |
@! |
PO420Val("W2_OUT_COM") |
|
|
|
|
N |
W2_CONTAIN |
C |
1 |
0 |
Modal. CNTR |
@! |
VAZIO() .or. Pertence("1234 ") |
|
|
1=House to House;2=House to Pier;3=Pier to House;4=Pier to Pier |
|
N |
W2_COMPL_I |
C |
20 |
0 |
Compl. Incot |
@! |
|
|
|
|
|
N |
W2_REG_TRI |
C |
1 |
0 |
Cod. Regime |
@! |
Vazio() .OR. ExistCpo("SJP",M->W2_REG_TRI) |
SJP |
|
|
|
N |
W2_REGDESC |
C |
30 |
0 |
Desc.Reg. |
@! |
|
|
V |
|
|
N |
W2_DT_SHIP |
D |
8 |
0 |
Dt. Ship. |
@D |
|
|
|
|
|
N |
W2_MT3 |
N |
8 |
2 |
Vol. Cubado |
@E 99,999.99 |
Po420Val('W2_MT3') |
|
|
|
|
N |
W2_CONTA20 |
N |
4 |
0 |
Contain. 20' |
9999 |
Po420Val('W2_CONTA20') |
|
|
|
|
N |
W2_REFCLI |
C |
20 |
0 |
Ref. do Cli. |
@! |
|
|
|
|
|
N |
W2_CONTA40 |
N |
4 |
0 |
Contain. 40' |
9999 |
Po420Val('W2_CONTA40') |
|
|
|
|
N |
W2_INTEGRA |
C |
1 |
0 |
Integracao |
|
|
|
|
|
|
N |
W2_CON40HC |
N |
4 |
0 |
Cont. 40' hc |
9999 |
Po420Val('W2_CON40HC') |
|
|
|
|
N |
W2_OUTROS |
N |
4 |
0 |
Outros |
9999 |
Po420Val('W2_OUTROS') |
|
|
|
|
N |
W2_POSICAO |
C |
4 |
0 |
Posicao |
9999 |
|
|
|
|
|
N |
W2_PROCNU |
C |
20 |
0 |
Processo |
@! |
|
|
|
|
|
N |
W2_PO_SIGA |
C |
6 |
0 |
Ped.Compra |
|
|
|
|
|
|
N |
W2_VLMIDIA |
N |
15 |
5 |
Valor Midia |
@E 999,999,999.99999 |
Positivo() |
|
|
|
|
N |
W2_VENCDA |
D |
8 |
0 |
Dt.Vencto DA |
@D |
|
SJA |
|
|
cProg="PN" |
N |
W2_ARMAZEM |
C |
7 |
0 |
Rec.Alfandeg |
9999999 |
IF(!EMPTY(M->W2_ARMAZEM),ExistCpo("SJA",M->W2_ARMAZEM),.T.) |
SJA |
|
|
|
N |
W2_VM_ARMA |
C |
50 |
0 |
Des.Rec.Alfa |
@! |
|
|
V |
|
|
N |
W2_HAWB_DA |
C |
17 |
0 |
Processo DA |
@! |
|
|
|
|
|
N |
W2_CHAVEFI |
C |
21 |
0 |
Chave Fin |
@! |
|
|
R |
|
|
N |
W2_CONAPRO |
C |
1 |
0 |
Controle Ap. |
! |
|
|
|
|
|
N |
W2_IMPENC |
C |
1 |
0 |
Encomenda? |
@! |
Pertence('12') |
|
R |
1=Sim;2=Nao |
|
N |
W2_ID_ANU |
C |
10 |
0 |
ID WF ANU |
@! |
|
|
R |
|
|
S |
W2_ID_PRV |
C |
10 |
0 |
ID WF PRV |
@! |
|
|
R |
|
|
S |
W2_SIAUTO |
C |
6 |
0 |
Si Auto |
@! |
|
|
|
|
|
N |
W2_CONTR |
C |
1 |
0 |
Contrato? |
@! |
|
|
R |
1=Sim;2=Nao |
|
N |
W2_RAT_POR |
C |
1 |
0 |
Rateado Por |
@! |
Pertence('123') |
|
R |
1=Peso;2=Preco;3=Quantidade |
PO400When('W2_RAT_POR') |
S |
W2_SEGINC |
C |
1 |
0 |
Seg. Incl. |
@! |
Pertence('12') .AND. PO420VAL('W2_SEGURIN') |
|
R |
1=Sim;2=Nao |
PO400When('W2_SEGINC') |
S |
W2_SEGURIN |
N |
15 |
2 |
Seguro |
@E 999,999,999,999.99 |
PO420VAL('W2_SEGURIN') |
|
R |
|
PO400When('W2_SEGURIN') |
S |