Árvore de páginas

01. DADOS GERAIS

Produto:

TOTVS Prestadores de Serviços Terceirização

Linha de Produto:

Linha Protheus

Segmento:

Serviços

Módulo:

TERCEIRIZAÇÃO(SIGATEC)

Função:TECA840.PRW
País:Brasil
Ticket:Não há
Requisito/Story/Issue (informe o requisito relacionado) :

DSERSGS-14472

DSERSGS-14510


02. SITUAÇÃO/REQUISITO

Necessário adequar o facilitador para realizar a precificação com as opções de uniformes e armamentos.

03. SOLUÇÃO

Criação de Parâmetro MV_GSITORC:

PARAMETROX6_TIPOX6_DESCRICX6_DESC1X6_CONTEUD
MV_GSITORCC1 = Facilitador integrado com a precificação, 2 = Precificação padrão                               1

Importante

Em ambientes com o parâmetro acima não configurado não efetuará a copia da Aba de Uniformes.
Neste caso a manutenção deverá ser efetuado através da Gestão de Uniformes.

Criação de Tabela:

1 -)  Acesse Configurador > Base de Dados > Dicionário > Bases de Dados

2-)  Posicione o cursor em Dicionário de dados e clique em Incluir 

Realize o preenchimento da tabela TXR

Prefixo: TXR

Descrição: Cabecalho Facilitador de Orc

Compartilhamento Filial: Exclusivo

Compartilhamento Unidade: Exclusivo

Compartilhamento Empresa  Exclusivo

Após o preenchimento dos dados da tabela TXR clique em confirmar


Criação dos campos da tabela TXR 

Procedimento para criar os novos campos no Protheus:

1-) Acesse Configurador > Base de Dados > Dicionário > Bases de Dados

2-) Clique em 
Dicionário de Dados posicione o cursor em campos e selecione a tabela onde este campo será inserido e clique em editar



4-) Preencha os campos da tabela TXR conforme tabela abaixo:

X3_CAMPOX3_TIPOX3_TAMANHOX3_DECIMALX3_TITULOX3_DESCRICX3_RELACAOX3_F3X3_PICTUREX3_BROWSEX3_VISUALX3_CONTEXTX3_VLDUSER

TXR_FILIALC80Filial      Filial do Sistema                                                                                                                                              @!                                           N

                                                                                                                                

TXR_CODIGOC60Cod. FacilitCodigo do Facilitador    GETSXENUM('TXR','TXR_CODIGO')                                                                                                         @!                                           SVR                                                                                                                                

TXR_DESC  C300Desc. FaciliDescricao Facilitador                                                                                                                                          @!                                           SAR                                                                                                                                

TXR_CODAA0C60Base Op.    Base Operacional                                                                                                                                         AA0   @!                                           NARVazio() .Or. ExistCpo('AA0')                                                                                                    

TXR_DSCAA0C300Desc. Base  Desc. Base Operacional   IIF(!INCLUI,ALLTRIM( POSICIONE("AA0",1,XFILIAL('AA0')+TXR->TXR_CODAA0,"AA0_DESCRI")),"")                                              @!                                           NVV                                                                                                                                

TXR_TOTRH N142Total RH    Total de Recusos Humanos                                                                                                                                       @E 99,999,999,999.99                         NVR                                                                                                                                

TXR_TOTMI N142Total MI    Total de Material de Impl                                                                                                                                      @E 99,999,999,999.99                         NVR                                                                                                                                

TXR_TOTMC N142Total MC    Total de Material de Cons                                                                                                                                      @E 99,999,999,999.99                         NVR                                                                                                                                

TXR_TOTUNIN142Total UniforTotal de Uniforme                                                                                                                                              @E 99,999,999,999.99                         NVR                                                                                                                                

TXR_TOTARMN142Total Armam.Total de Armamento                                                                                                                                             @E 99,999,999,999.99                         NVR                                                                                                                                


Criação dos índices da tabela TXR 

1-) Posicione na tabela e clique em editar e posicione em índices


2-) Clique em Incluir e em outras ações selecione campos:

Selecione os campo Filial, Código e Descrição.



Conforme os prints anteriores repita os processos para criação da tabela TXS:


Criação da Tabela TXS:

1 -)  Acesse Configurador > Base de Dados > Dicionário > Bases de Dados

2-)  Posicione o cursor em Dicionário de dados e clique em Incluir 

Realize o preenchimento da tabela TXS

Prefixo: TXS

Descrição:  Recursos Humanos Facilitador  

Compartilhamento Filial: Exclusivo

Compartilhamento Unidade: Exclusivo

Compartilhamento Empresa : Exclusivo

Após o preenchimento dos dados da tabela TXS clique em confirmar

Criação de Campos:

1-) Acesse Configurador > Base de Dados > Dicionário > Bases de Dados

2-) Clique em 
Dicionário de Dados posicione o cursor em campos e selecione a tabela onde este campo será inserido e clique em editar

3-) Clique em Incluir

4-) Preencha os campos da tabela TXS conforme tabela abaixo:

X3_CAMPOX3_TIPOX3_TAMANHOX3_DECIMALX3_TITULOX3_DESCRICX3_RELACAOX3_F3X3_PICTUREX3_BROWSEX3_VISUALX3_CONTEXTX3_VLDUSER
TXS_FILIALC80Filial      Filial do Sistema                                                                                                                                              @!                                           N

                                                                                                                                
TXS_CODIGOC60Codigo      Codigo                   GETSXENUM('TXS','TXS_CODIGO')                                                                                                         @!                                           NVR                                                                                                                                
TXS_CODTXRC60Cod. Cabec  Codigo do Cabecalho                                                                                                                                            @!                                           NAR                                                                                                                                
TXS_CODPRDC300Cod. ProdutoCodigo do Produto                                                                                                                                        TECPRD@!                                           NAR EXISTCPO('SB1') .AND. EXISTCPO('SB5') .AND. AT740VLDPRD( 1, FWFLDGET("TXS_CODPRD") )                                           
TXS_DESCRIC300Desc. ProdutDescricao do Produto     ATINIPADMVC("TECA984A","TXSDETAIL",'B1_DESC','SB1',1, "XFILIAL('SB1')+TXS->TXS_CODPRD")                                               @!                                           NVV                                                                                                                                
TXS_QUANTSN40Quant. SugerQuantidade Sugerida                                                                                                                                            @E 9999                                      NARPositivo()                                                                                                                      
TXS_VLUNITN142Vl. UnitarioValor Unitario                                                                                                                                                 @E 99,999,999,999.99                         NARPositivo()                                                                                                                      
TXS_FUNCAOC50Funcao      Codigo da Funcao                                                                                                                                         SRJ   @!                                           NARExistCpo("SRJ")                                                                                                                 
TXS_DESFUNC200Descricao   Descricao da Funcao      ATINIPADMVC("TECA984A","TXSDETAIL",'RJ_DESC','SRJ',1, "XFILIAL('SRJ')+TXS->TXS_FUNCAO")                                               @!                                           NVV                                                                                                                                
TXS_TURNO C30Turno       Codigo do Turno                                                                                                                                          TFFSR6@!                                           NARExistCpo("SR6")                                                                                                                 
TXS_DESTURC500Desc. Turn  Descricao do Turno       ATINIPADMVC("TECA984A","TXSDETAIL",'R6_DESC','SR6',1, "XFILIAL('SR6')+TXS->TXS_TURNO")                                                @!                                           NVV                                                                                                                                
TXS_ESCALAC60Cod. Escala Codigo da Escala                                                                                                                                         TDW   @!                                           NARExistCpo('TDW')                                                                                                                 
TXS_DSCESCC600Desc. EscalaDescricao da Escala      ATINIPADMVC("TECA984A","TXSDETAIL",'TDW_DESC','TDW',1, "XFILIAL('TDW')+TXS->TXS_ESCALA")                                              @!!                                          NVV                                                                                                                                
TXS_CARGO C50Cargo       Cargo do Recurso                                                                                                                                         SQ3ABO@!                                           NARVazio() .Or. ExistCpo('SQ3')                                                                                                    
TXS_DSCCARC300Desc. Cargo Descricao do Cargo       ATINIPADMVC("TECA984A","TXSDETAIL",'Q3_DESCSUM','SQ3',1, "XFILIAL('SQ3')+TXS->TXS_CARGO")                                             @!                                           NVV                                                                                                                                
TXS_TES   C30Tipo Saida  Tipo de Saida                                                                                                                                            SF4   @!                                           NARExistCpo("SF4") .AND. FwFldGet("TXS_TES") > "500"                                                                               
TXS_CALCMDM100Mem. de CalcMemoria de calculo                                                                                                                                                                                          NAR                                                                                                                                
TXS_PLACODC60Cod. PlanilhCodigo Planilha de Preco                                                                                                                                       @!                                           NAR                                                                                                                                
TXS_TOTRH N142Total do RH Total do RH                                                                                                                                                    @E 99,999,999,999.99                         NVR                                                                                                                                
TXS_TOTMI N142Total MI    Total de Material de Impl                                                                                                                                      @E 99,999,999,999.99                         NVR                                                                                                                                
TXS_TOTMC N142Total MC    Total Material de Consumo                                                                                                                                      @E 99,999,999,999.99                         NVR                                                                                                                                
TXS_TOTUNIN142Total. Unif.Total do Uniforme                                                                                                                                              @E 99,999,999,999.99                         NVR                                                                                                                                
TXS_TOTARMN142Total Armam.Total de Armamento                                                                                                                                             @E 99,999,999,999.99                         NVR                                                                                                                                

Criação dos índices da tabela TXS  

1-) Posicione na tabela e clique em editar e posicione em índices

2-) Clique em Incluir e em outras ações selecione campos:

Selecione os campo Filial e Código(TXS_FILIAL+TXS_CODIGO )

                                                                                                                                    

04. DEMAIS INFORMAÇÕES

         Não há.

05. ASSUNTOS RELACIONADOS