Páginas filhas
  • FINA404 Integration of independent suppliers payment data


01. OVERVIEW

The Independent Suppliers (FINA404) routine submits registration data and independent suppliers payment from Protheus line to RM line.
The submission is executed through the single message EXTERNALAUTONOMOUSPAYMENT.

02. CONFIGURATION

Considering that the Protheus line environment already has requirement for the use of the integration via single message, the FINA404 routine must be registered in the Adapter EAI (CFGA020) routine.
Example:

03. APPROVED VERSIONS X INTEGRATED DATA

Protheus submits the single message EXTERNALAUTONOMOUSPAYMENT in the versions 1.000 and 1.006, and version 1.006 is available int he updating package of the FINA404 routine from may/2021.
Below are data considered in each version:


Tags

Version 1000

Version 1006

Protheus Origin

CompanyId

Send

Send

M0_CODIGO

BranchId

Send

Send

M0_CODFIL

InternalId

Send

Send

M0_CODIGO+E2_FILIAL+E2_PREFIXO+E2_NUM+E2_PARCELA+E2_TIPO+E2_FORNECE+E2_LOJA

CompanyInternalId

Send

Send

M0_CODIGO+M0_CODFIL

TakerId

Send

Send

M0_CGC

TakerSpecificId

Send

Send

M0_CEI

TakerType

Send

Send

It will always be '0'

AutonomousName

Send

Send

A2_NOME

DateOfBirth

Send

Send

A2_DTNASC

AutonomousId

Send

Send

A2_CGC

RegistrationNumber

Send

Send

A2_CODNIT

AutonomousOcupationNationalCode

Send

Send

A2_CBO

AutonomousCategory

Send

Send

A2_CATEG

SefipEventCode

Send

Send

A2_OCORREN

IssueDate

Send

Send

E2_EMISSAO

DueDate

Send

Send

E2_VENCTO

InitiationDate

Send

Send

E2_EMISSAO

ServiceNature

Send

Send

A2_INDRUR

DependentsNumber

Send

Send

A2_NUMDEP

IRRFDependentsNumber

Send

Send

A2_NUMDEP

PaymentValue

Send

Send

E2_BASEINS

INSSValue

Send

Send

E2_INSS

eSocialAutonomousCategory

-

Send

A2_CATEFD*

ISSValue

-

Send

E2_ISS

SESTValue

-

Send

MV_ALSEST x E2_SEST / ED_PERCSES

SENATValue

-

Send

MV_ALSENAT x E2_SEST / ED_PERCSES

IRRFValue

-

Send

E2_IRRF

RemunerationValueWithIRRFIncidence

-

Send

Se ED_IRRFCAR=Sim, envia E2_BASEIRF

FreightRemunerationValue

-

Send

E2_VALOR

RemunerationValueWithINSSIncidence

-

Send

E2_BASEINS

PaymentDate

-

Send

E2_BAIXA

MultipleEmploymentIndicator

-

Send

FLX_TPREC

OtherEmploymentId

-

Send

FLX_CNPJ

OtherEmploymentCategory

-

Send

FLX_CATEFD*

OtherEmploymentINSSBasis

-

Send

FLX_BASE

*Available in the continiuous issue dictionary packages of the Financials from October/2021).

04. CONDITIONS

The routine has this requirement to submit information:

  1. There must be at least 1 bill payable that meets the completion of routine questions;
  2. Supplier linked to the bill must be INDIVIDUAL and has these fields completed:

    Field

    Description

    A2_NOME

    Name

    A2_CGC

    CPF/CNPJ

    A2_CBO

    Brazilian Classification of Occupations (CBO)

    A2_DTNASC

    Birthday

    A2_CODNIT

    Worker's Registration Number (NIT)

    A2_CATEG

    SEFIP Category

    A2_OCORREN

    SEFIP Occurrence

    A2_CATEFD (only from version 1.006)

    eSocial category 

    05. CONTROL OF INTEGRATED DATA (FLAG)

    When the RM line submits an answer stating the integration was successful, the field E2_SEFIP (SE2 - Accounts Payable table) is saved, signaling the bills payable integration status.
    For the 1.000 version, which does not submit information after integration, the contents for this field are:
  • Blank = Bill payable not integrated;
  • Saved with "X" = Integrated;


          For the 1600 version, which enables the submission of data from the bill when it is posted after being integrated, the contents are:

  • Blank = Bill payable not integrated;
  • Saved with "X" = Integrated;
  • Saved with "Y" = Integrated again after posting (Update);

06. BUSINESS RULE

  • The interval of dates entered in the questions of the routine FINA404 is used to filter the bills payable for the issue date (E2_EMISSAO);
    • From version 1006, besides the previous rule, the interval of dates begins to consider the bills posted in the period (through the field  E2_BAIXA). For this status, the integrated bills (flag E2_SEFIP = X), which are totally posted (E2_SALDO = 0), are considered;
  •  SEST and SENAT in the Protheus line is saved when it is grouped (field E2_SEST), but the values are sent individually in the integration. Configure parameters MV_ALSEST and MV_ALSENAT with the respective aliquots;
    • If parameters are not in the Protheus line environment, the 1.5% aliquots are considered for SEST and the 1.0% aliquots for SENAT;
    • This information is submitted from version 1006;
  • Data from multiple work relationships (Register of INSS Estimation - FINA027), are only considered when there is a bill ready to be sent. Therefore, this information is not considered in the integration separately - it depends on a bill, with a supplier linked to a Register of INSS Estimation;
    • This information is submitted from version 1006;
  • Bills payable with types (E2_TIPO) are not considered in the integration:  
    • Advance (PA);
    • Deduction (AB-|FB-|FC-|FU-|IR-|IN-|IS-|PI-|CF-|CS-|FE-|IV-);
    • Supplier Debit Note (NDF);
    • provisional (PR);

07. TABLES

  • Accounts Payable - SE2
  • Suppliers - SA2
  • Header of INSS Estimations - FJW
  • Items of INSS Estimation - FDX

07. RELARED INFORNATION