Tabela
GU5 TIPO DA OCORRENCIA
Campo Tipo Tamanho Decimal Titulo Formato Validacao F3 Contexto Lista Condicao PYME
GU5_FILIAL C 2 0 Filial S
GU5_CDTIPO C 6 0 Tipo @! ExistChav("GU5") R S
GU5_DESC C 50 0 Descricao @! NaoVazio() .AND. Texto() R S
GU5_EVENTO C 1 0 Evento @! Pertence("1234") R 1=Calculo Adicional;2=Cancelamento Frete;3=Simples Registro;4=Registrar Entrega S
GU5_TPCALC C 1 0 Tipo Calculo @! Pertence("0123") R 0=Nenhum;1=Reentrega;2=Retorno;3=Servico M->GU5_EVENTO $ "1" S
GU5_RATPER C 1 0 Rat Servico @! Pertence("12") R 1=Sim;2=Nao M->GU5_EVENTO == "1" .And. M->GU5_TPCALC == "3" S
GU5_CANCDC C 1 0 Acao Doc Car @! Pertence("12") R 1=Sinistrar;2=Nenhuma M->GU5_EVENTO $ "2" S
GU5_ACAODF C 1 0 Acao Docto @! Pertence("123") R 1=Nenhuma;2=Alertar;3=Bloquear M->GU5_EVENTO $ "2" S
GU5_SIT C 1 0 Situacao @! Pertence("12") R 1=Ativo;2=Inativo ALTERA S
GU5_INTTMS C 1 0 Integrar TMS Pertence("12") .And. GFE30VERIT(,.T.) R 1=Nao integrar;2=Integrar SuperGetMv("MV_TMS2GFE",.F.,.F.) S
GU5_OCOTMS C 4 0 Cod Ocor TMS Vazio() .Or. GFE30VLDT2() DT2 R M->GU5_INTTMS == "2" S
GU5_RECOR C 1 0 Recorrencia Pertence("12") R 1=Nao valida;2=Valida S
GU5_SERV1 C 20 0 Servico @! VAZIO() .Or. GFEExistC("GV2",,,"GV2->GV2_SERVI == '1'") .And. GFE30VLCLS(M->GU5_SERV1) GV2OC R M->GU5_TPCALC $ "3" .and. Alltrim(GetMv("MV_SERVTO")) = "1" S
GU5_SERV2 C 20 0 Servico 2 @! VAZIO() .Or. GFEExistC("GV2",,,"GV2->GV2_SERVI == '1'") .And. GFE30VLCLS(M->GU5_SERV2) GV2OC R M->GU5_TPCALC $ "3" .and. Alltrim(GetMv("MV_SERVTO")) = "1" S
GU5_SERV3 C 20 0 Servico 3 @! VAZIO() .Or. GFEExistC("GV2",,,"GV2->GV2_SERVI == '1'") .And. GFE30VLCLS(M->GU5_SERV3) GV2OC R M->GU5_TPCALC $ "3" .and. Alltrim(GetMv("MV_SERVTO")) = "1" S
GU5_PRESTS C 1 0 Outro P.Serv @! Pertence("12") R 1=Permitir informar;2=Nao informar M->GU5_TPCALC $ "3" S
GU5_TABFRE C 1 0 Tab Frete @! Pertence("12") R 1=Transportador;2=Prestador Servico M->GU5_TPCALC $ "3" .And. M->GU5_PRESTS $ "1" S
GU5_RECVAL C 1 0 Valida recor @! Pertence("12345") R 1=Tipo;2=Tipo e data/hora;3=Tipo e transportador;4=Tipo, transportador e data/hora;5=Tipo, motivo e resumo M->GU5_RECOR == '2' S
GU5_TPIMP C 1 0 Tipo Imposto Pertence("123") R 1=Automatico conforme cidade origem e destino;2=ISS Cidade Origem;3=ISS Cidade Destino M->GU5_TPCALC $ "3" .AND. Alltrim(GetMv("MV_SERVTO")) = "1" S
GU5_DEVTOT C 1 0 Dev. total Pertence("12") R 1=Sim;2=Nao M->GU5_EVENTO == '1' .And. M->GU5_TPCALC == '2' S
GU5_ACAOCA C 1 0 Acao Calculo @! Pertence("12") R 1=Nenhuma;2=Cancelar M->GU5_EVENTO $ "2" S
GU5_INFPES C 1 0 Inform Peso @! R 1=Opcional; 2=Obrigatorio M->GU5_EVENTO == '4' S
GU5_INDEN C 1 0 Val Indeniz @! R 0=Nao se aplica;1=Informar;2=Calcular - Carga;3=Calcular - Carga e Frete M->GU5_EVENTO == '4' S