Árvore de páginas


01. DADOS GERAIS

Produto:

TOTVS Distribuição e Varejo

Linha de Produto:

Linha Protheus

Segmento:

Backoffice

Módulo:

TOTVS Backoffice (Linha Protheus) - Faturamento (SIGAFAT)

Função:

OMSA040 - Cadastro de Motoristas

TMSA190 - Manifestos

TMSA240 - Complemento de Viagem 

TMSA310 - Fechamento de Viagem 

TMSA350 - Operações de Transporte 

TMSAI80 - Configuração de Integrações

TMSAI81 - Fontes de Integração

TMSAI82 - Layouts de Integração  

TMSAI83 - Chaves Protheus e Portal 

TMSAI84 - Histórico de Integrações

TMSAI85 - Filiais de Integração

TMSAI86 - Job Envio

TMSAI87 - Job Retorno

TMSAI88 -  Importa Layout - Exporta Layout

TMSAF62 - Função Viagem modelo 3

TMSAF63 - Função Viagem modelo 3

TMSAF68 - Adiciona itens no menu da Viagem Modelo 3

TMSAF92 - Integração do Faturamento com Coleta/Entrega

TMSAF93 - Integração do Faturamento com Coleta/Entrega (notas avulsas)

TMSAC26 - Montagem e visualização do mapa com integração OPENSTREET

TMSAC30 - Classe para integração SIGATMS x Coleta/Entrega

TMSXFUND - Funções Genéricas TMS

TMSXFUNE - Funções Genéricas TMS

TMSXFUNH - Funções Genéricas TMS

País:Brasil
Ticket:Não se aplica.
Requisito/Story/Issue (informe o requisito relacionado) :DLOGTMS02-22574


02. SITUAÇÃO/REQUISITO

Implementar a Integração SIGAFAT x Coleta Entrega, para notas fiscais com viagem (onde há a informação de veículo e motorista) ou fatura de notas fiscais avulsas (sem a informação de veículo e motorista), proporcionando maior agilidade para os processos de emissão documentos ao Portal SAAS onde serão realizadas e acompanhadas viagens de coleta, entrega e coleta-entrega.

03. SOLUÇÃO

Implementado a nova funcionalidade Integração SIGAFAT x Coleta Entrega, para notas fiscais com viagem e notas fiscais avulsas do SIGAFAT.

Foram implementadas as seguintes melhorias:

  • Diário digital : O registro dos eventos que ocorrem com os motoristas durante a execução de tarefas - viagem de coletas e entregas;
  • Informação em tempo real: Saber o que está acontecendo naquele exato momento com motorista/entrega, e como os eventos que estão ocorrendo podem impactar as próximas tarefas.
  • Comunicação: Facilitar, simplificar, agilizar, unificar canais e tornar fluído o processo de pedir orientação e ajuda de acordo com a situação com a qual o motorista se depara durante a execução de suas tarefas.
  • Digitalização documentos: Possibilidade de registro de fotos complementares (documento/produto entregue, evidências de inconformidades), informações de geolocalização e rubrica digital.

A integração permite maior proximidade entre motoristas e planejadores por meio de automações e troca de mensagens em tempo real.

Importante:

Melhoria disponível em release igual ou posterior ao 12.1.23.10.

Prezado cliente, esta melhoria será liberada no produto Protheus em release 12.1.2310.

04. DEMAIS INFORMAÇÕES

Para uso desta funcionalidade, deve ser utilizado:

  • Pacote: 010555 - Para atualização de dicionário de dados principal do processo coleta entrega, criação de novas tabelas, campos, índices e gatilhos.
  • Pacote: 011212 - Para atualização menu.
  • Pacote: 011339 - Pacote atualização de dicionário de dados específico para a integração entre SIGAFAT e Coleta Entrega SAAS.
  • Fontes atualizados das rotinas envolvidas.
  • Caso deseje utilizar layout padrão, arquivo de layout padrão pré-definido pela TOTVS, efetuar baixa automática do arquivo ou manual conforme documentação:
    Exporta e Importa Layout (TMSAI88A / TMSAI88B - SIGATMS).

MENU

Informações para cadastro manual no Módulo Configurador:

TMSAI81 - Fontes de Integração

TMSAI80 - Configuração de Integrações

TMSAI85 - Filiais de Integração

TMSAI82 - Layouts de Integrações 

TMSAI88A - Exporta Layout

TMSAI88B - Importa Layout

TMSAI84 - Histórico de Integrações

TMSAI86 - Job Envio

TMSAI92 -  Integração de NFs Com Viagem

TMSAI93 -  Integração de NFs Avulsas

OMSA040 - Motoristas


DETALHAMENTO DA ATUALIZAÇÃO DE DICIONÁRIO CONFORME ABAS

Criação de tabelas:

TabelaDescrição
DNEViagens do Faturamento        
DNFNotas da Viagem               
DNGNota  Fiscal Sem Veículo Colent

Tabelas Alteradas para inclusão de campos:

TabelaDescrição
CC0Manifesto Documentos Fiscais  
DA4Motoristas
DN1Config Integr Coleta/Entrega  
DN6Fontes de Integração          
DN8Filiais Externas              

Criação de Campos:

TabelaCampoDescrição
CC0    CC0_OK  Mark  
CC0    CC0_STAINTStatus Integ
DA4    DA4_EMAIL Email    
DN1    DN1_NFSVEIEnv NF s Vei
DN1    DN1_NFSVEIGrv Hist  
DN1    DN1_ENVPOREnv Portal
DN6    DN6_CODIGOCod Fonte
DN6    DN6_DESCRIDescrição   
DN6    DN6_TIPARQTipo Arquivo
DN6    DN6_VCRIPTVer.Cript.  
DN6    DN6_VERSAOVers. Layout
DN8    DN8_ID  Id SAAS
DN8    DN8_ALIAS Alias Org.
DN8    DN8_FILEXTFil Externa 


Campos Criados:

TABELACAMPOTIPOTAMANHOTITULOFORMATOVALIDRELACAOCONSULTA PADRÃOOpçõesWHENInicializador Padrão
CC0CC0_OK    C4Mark        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
CC0CC0_STAINTC1Status Integ                                             Pertence("12") 2      1=Sim;2=Não                                                                                                                                                                                                                                                                 
DA4DA4_EMAIL C30Email                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
DN1DN1_NFSVEIC1Env NF s Vei@! Pertence("12")                                                                                                                  1      1=Sim;2=Não                                                                                                                                                                                                                                                                 
DN1DN1_GRVHSTC1Grv Hist    @! Pertence("12")                                                                                                                  1      1=Automático;2=Manual                                                                                                                                                                                                                                                       
DN1DN1_ENVPORC1Env Portal  @!                                           Pertence("12")                                                                                                                  1      1=Automático;2=Manual                                                                                                                                                                                                                                                       
DN6DN6_CODIGOC2Cod Fonte   @!                                           ExistChav("DN6")                                                                                                                                                                                                                                                                                                                                                                                      Inclui                                                                                                                                      
DN6DN6_DESCRIC30Descrição   @!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
DN6DN6_TIPARQC1Tipo Arquivo@!                                           Pertence("123")                                                                                                                 1      1=Json;2=Text;3=XML                                                                                                                                                                                                                                                         
DN6DN6_VCRIPTC50Ver.Cript.  @!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
DN6DN6_VERSAOC50Vers. Layout@!                                                                                                                                                                           TMSAI81EMB()                                                                                                                                                                                                                                                                                                                      TMSAI81EMB(.T.)                                                                 
DN8DN8_ID    C4Id SAAS                                                  TMSAI85Vld()                                                                                                                                                                                                                                                    DN8UNI                                                                                                                                                                                                                                                                            
DN8DN8_ALIAS C50Alias Org.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
DN8DN8_FILEXTC40Fil Externa                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
DNEDNE_FILIALC8Filial                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
DNEDNE_FILORIC8Fil Viagem                                                                                                                                                                               cFilAnt                                                                                                                                                                                                                                                                                                                                                                                                           
DNEDNE_VIAGEMC6Viagem      @!                                                                                                                                                                           GETSX8NUM("DNE","DNE_VIAGEM")                                                                                                                                                                                                                                                                                                                                                                                     
DNEDNE_CODVEIC8Cod Veiculo @!                                           ExistCpo('DA3')                                                                                                                                                                                                                                                 DTU                                                                                                                                   Tmsaf92Whe()                                                                                                                                
DNEDNE_MODVEIC30Mod Veículo @!                                                                                                                                                                           IF(INCLUI,"",POSICIONE("DA3",1,XFILIAL("DA3")+DNE->DNE_CODVEI,"DA3_DESC"))                                                                                                                                                                                                                                                        Posicione("DA3",1,xFilial("DA3")+DNE->DNE_CODVEI,"DA3_DESC")                    
DNEDNE_CODMOTC6Cod Motor   @!                                           TM92VldInt(M->DNE_CODMOT)                                                                                                                                                                                                                                       DTO                                                                                                                                   Tmsaf92Whe()                                                                                                                                
DNEDNE_NOMMOTC40Nome Motor  @!                                                                                                                                                                           IF(INCLUI,"",POSICIONE("DA4",1,XFILIAL("DA4")+DNE->DNE_CODMOT,"DA4_NOME"))                                                                                                                                                                                                                                                        Posicione("DA4",1,xFilial("DA4")+DNE->DNE_CODMOT,"DA4_NOME")                    
DNEDNE_STATUSC1Status      @!                                           Pertence("12")                                                                                                                  1      1=Em Aberto;2=Fechado                                                                                                                                                                                                                                                       
DNFDNF_FILIALC8Filial                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
DNFDNF_FILORIC8Fil Viagem                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
DNFDNF_VIAGEMC6Viagem      @!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
DNFDNF_ITEM  C4Item        @!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
DNFDNF_FILNFCC8Fil N Fiscal                                             TMSAF92Vld()                                                                                                                                                                                                                                                    SM0                                                                                                                                                                                                                                                                               
DNFDNF_DOC   C9Nota Fiscal @!                                           TMSAF92Vld()                                                                                                                                                                                                                                                    SF2DNF                                                                                                                                                                                                                                                                            
DNFDNF_SERIE C3Série       !!!                                          TMSAF92Vld()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
DNFDNF_CODCLIC6Cod Cliente @!                                                                                                                                                                           IF(INCLUI,"",POSICIONE("SF2",1,DNF->(DNF_FILNFC+DNF_DOC+DNF_SERIE),"F2_CLIENTE"))                                                                                                                                                                                                                                                                                                                                 
DNFDNF_LOJCLIC2Loja Cliente@!                                                                                                                                                                           IF(INCLUI,"",SF2->F2_LOJA)                                                                                                                                                                                                                                                                                                                                                                                        
DNFDNF_NOMCLIC40Nome Cliente@!                                                                                                                                                                           IF(INCLUI,"",POSICIONE("SA1",1,XFILIAL("SA1",SF2->F2_FILIAL)+SF2->(F2_CLIENTE+F2_LOJA),"A1_NOME"))                                                                                                                                                                                                                                                                                                                
DNFDNF_NUMMDFC9Num Manif   @!                                                                                                                                                                           IF(INCLUI,"",SF2->F2_NUMMDF)                                                                                                                                                                                                                                                                                                                                                                                      
DNFDNF_SERMDFC3Série Manif !!!                                          TMSAF92Vld()                                                                                                                    IF(INCLUI,"",SF2->F2_SERMDF)                                                                                                                                                                                                                                                                                                                                                                                      
DNGDNG_FILIALC8Filial                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
DNGDNG_DOC   C9Documento   @!                                           TMSAF93Vld()                                                                                                                                                                                                                                                    F2COEN                                                                                                                                                                                                                                                                            
DNGDNG_SERIE C3Serie       !!!                                          TMSAF93Vld()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
DNGDNG_STATUSC1Status                                                                                                                                                                                   1      1=Sem Histórico;2=Com Histórico;                                                                                                                                                                                                                                            




CAMPOSEQUENCIAREGRACONTRA DOMINIOALIASORDEMCHAVECONDIÇÃO
DN8_ID    1TMSAI85Var("DN8_ALIAS")                                                                             DN8_ALIAS    0                                                                                                                                            
DN8_ID    2TMSAI85Var("DN8_FILEXT")                                                                            DN8_FILEXT   0                                                                                                                                            
DNE_CODMOT1DA4->DA4_NOME                                                                                       DNE_NOMMOTDA41xFilial("DA4") + M->DNE_CODMOT                                                                                                              
DNE_CODVEI1DA3->DA3_DESC                                                                                       DNE_MODVEIDA31xFilial("DA3") + M->DNE_CODVEI                                                                                                              
DNE_CODVEI2DA3->DA3_MOTORI                                                                                     DNE_CODMOT   0xFilial("DA3") + M->DNE_CODVEI                                                                      TM92VldInt(DA3->DA3_MOTORI)             
DNF_DOC   1Posicione("SF2",1,M->(DNF_FILNFC + DNF_DOC + DNF_SERIE),"F2_CLIENTE")                               DNF_CODCLI   0                                                                                                    TM92CndGat()                            
DNF_DOC   2Posicione("SF2",1,M->(DNF_FILNFC + DNF_DOC + DNF_SERIE),"F2_LOJA")                                  DNF_LOJCLI   0                                                                                                    TM92CndGat()                            
DNF_DOC   3SA1->A1_NOME                                                                                        DNF_NOMCLISA11xFilial("SA1") + M->DNF_CODCLI + M->DNF_LOJCLI                                                      TM92CndGat()                            
DNF_DOC   4Posicione("SF2",1,M->(DNF_FILNFC + DNF_DOC + DNF_SERIE),"F2_NUMMDF")                                DNF_NUMMDF   0                                                                                                    TM92CndGat()                            
DNF_DOC   5Posicione("SF2",1,M->(DNF_FILNFC + DNF_DOC + DNF_SERIE),"F2_SERMDF")                                DNF_SERMDF   0                                                                                                    TM92CndGat()                            
DNF_SERIE 1Posicione("SF2",1,M->(DNF_FILNFC + DNF_DOC + DNF_SERIE),"F2_CLIENTE")                               DNF_CODCLI   0                                                                                                    TM92CndGat()                            
DNF_SERIE 2Posicione("SF2",1,M->(DNF_FILNFC + DNF_DOC + DNF_SERIE),"F2_LOJA")                                  DNF_LOJCLI   0                                                                                                    TM92CndGat()                            
DNF_SERIE 3SA1->A1_NOME                                                                                        DNF_NOMCLISA11xFilial("SA1")+M->DNF_CODCLI+M->DNF_LOJCLI                                                          TM92CndGat()                            
DNF_SERIE 4Posicione("SF2",1,M->(DNF_FILNFC + DNF_DOC + DNF_SERIE),"F2_NUMMDF")                                DNF_NUMMDF   0                                                                                                    TM92CndGat()                            
DNF_SERIE 5Posicione("SF2",1,M->(DNF_FILNFC + DNF_DOC + DNF_SERIE),"F2_SERMDF")                                DNF_SERMDF   0                                                                                                    TM92CndGat()                            

Criação de índices:

INDICEORDEMCHAVEDESCRIÇÃO
DNE1DNE_FILIAL+DNE_FILORI+DNE_VIAGEM                                                                                                                                Fil Viagem + Viagem                                                   
DNF1DNF_FILIAL+DNF_FILORI+DNF_VIAGEM+DNF_ITEM+DNF_FILNFC+DNF_DOC+DNF_SERIE  Fil Viagem + Viagem + Item + Fil N Fiscal + Nota Fiscal + Série       
DNF2DNF_FILIAL+DNF_FILNFC+DNF_DOC+DNF_SERIE+DNF_FILORI+DNF_VIAGEM Fil N Fiscal + Nota Fiscal + Série + Fil Viagem + Viagem              
DNG1DNG_FILIAL+DNG_DOC+DNG_SERIE+DNG_STATUSDocumento + Serie + Status                                            

05. ASSUNTOS RELACIONADOS