Índice | ||||||
---|---|---|---|---|---|---|
|
Informações | ||
---|---|---|
| ||
Essa rotina foi ajustada para atender a Lei Geral de Proteção de Dados (Lei n° 13.70), sendo que alguns campos que apresentam informações consideradas como dados sensíveis e/ou pessoais, serão ofuscados deixando de ser legíveis. |
...
Procedure automatically performed in the Bank Transactions routine (FINA100) without the display of screen - no interaction from the user required.
Used in customizations in which the process does not required user's interactions (MSEXECAUTO) Transactions routine (FINA100) without the display of screen - no interaction from the user required.
Used in customizations in which the process does not required user's interactions (MSEXECAUTO)
Aviso | ||
---|---|---|
| ||
Por se tratar de um controle interno, o campo "Tipo de Movimentação" (E5_TIPODOC), tem as seguintes características:
A partir de 04/11/2020, esse campo passou a ser gravado com "DH". |
Important
As this is an internal control, the field "Type of Transaction" (E5_TIPODOC) has these features:
...
From 11/04/2020, this field began to be recorded as "DH".
Example of automatic routine Expandir origem
#INCLUDE "Protheus.ch"
User Function TST100()
Local nOpc := 0
Local aFINA100 := {}
Private lMsErroAuto := .F.
While .T.
nOpc := 0
nOpc := Warning("FINA100 EXECAUTO TEST", "Choose the menu option of the routine FINA100 to be executed via EXECAUTO",{"PAY","RECEIVE","DELETE","CANCEL","TRANSF.","ST. TRANSF."})
If nOpc == 1
aFINA100 := { {"E5_DATA" ,dDataBase ,Nil},;
{"E5_MOEDA" ,"M1" ,Nil},;
{"E5_VALOR" ,500 ,Nil},;
{"E5_NATUREZ" ,"001" ,Nil},;
{"E5_BANCO" ,"001" ,Nil},;
{"E5_AGENCIA" ,"001" ,Nil},;
{"E5_CONTA" ,"001" ,Nil},;
{"E5_BENEF" ,"TESTE AUTO - BENEF" ,Nil},;
{"E5_HISTOR" ,"TESTE AUTO - AUTO" ,Nil},;
{"NCTBONLINE" ,1 ,Nil}} //1=Yes;2=No
MSExecAuto({|x,y,z| FinA100(x,y,z)},0,aFINA100,3)
If lMsErroAuto
MostraErro()
Else
MsgAlert(" Bank transaction payable included successfully !!!")
EndIf
ElseIf nOpc == 2
aFINA100 := { {"E5_DATA" ,dDataBase ,Nil},;
{"E5_MOEDA" ,"M1" ,Nil},;
{"E5_VALOR" ,1500 ,Nil},;
{"E5_NATUREZ" ,"001" ,Nil},;
{"E5_BANCO" ,"001" ,Nil},;
{"E5_AGENCIA" ,"001" ,Nil},;
{"E5_CONTA" ,"001" ,Nil},;
{"E5_HISTOR" ,"TESTE AUTO - AUTO" ,Nil},}
{"NCTBONLINE" ,1 ,Nil}} //1=Yes;2=No
MSExecAuto({|x,y,z| FinA100(x,y,z)},0,aFINA100,4)
If lMsErroAuto
MostraErro()
Else
MsgAlert(" Bank transaction receivable included successfully !!!")
EndIf
ElseIf nOpc == 3
dbSelectArea("SE5")
SE5->(dbSetOrder(1))
SE5->(dbSeek(xFilial("SE5")+DToS(dDataBase) ))
aFINA100 := { {"E5_DATA" ,SE5->E5_DATA ,Nil},;
{"E5_MOEDA" ,SE5->E5_MOEDA ,Nil},;
{"E5_VALOR" ,SE5->E5_VALOR ,Nil},;
{"E5_NATUREZ" ,SE5->E5_NATUREZ ,Nil},;
{"E5_BANCO" ,SE5->E5_BANCO ,Nil},;
{"E5_AGENCIA" ,SE5->E5_AGENCIA ,Nil},;
{"E5_CONTA" ,SE5->E5_CONTA ,Nil},;
{"E5_HISTOR" ,SE5->E5_HISTOR ,Nil},;
{"E5_TIPOLAN" ,SE5->E5_TIPOLAN ,Nil} }
MSExecAuto({|x,y,z| FinA100(x,y,z)},0,aFINA100,5)
If lMsErroAuto
MostraErro()
Else
MsgAlert("Deleted successfully!!!")
EndIf
ElseIf nOpc == 4
dbSelectArea("SE5")
SE5->(dbSetOrder(1))
SE5->(dbSeek(xFilial("SE5")+DToS(dDataBase) ))
dbSkip() //placed only for this test sequence
aFINA100 := { {"E5_DATA" ,SE5->E5_DATA ,Nil},;
{"E5_MOEDA" ,SE5->E5_MOEDA ,Nil},;
{"E5_VALOR" ,SE5->E5_VALOR ,Nil},;
{"E5_NATUREZ" ,SE5->E5_NATUREZ ,Nil},;
{"E5_BANCO" ,SE5->E5_BANCO ,Nil},;
{"E5_AGENCIA" ,SE5->E5_AGENCIA ,Nil},;
{"E5_CONTA" ,SE5->E5_CONTA ,Nil},;
{"E5_HISTOR" ,SE5->E5_HISTOR ,Nil},;
{"E5_TIPOLAN" ,SE5->E5_TIPOLAN ,Nil} }
MSExecAuto({|x,y,z| FinA100(x,y,z)},0,aFINA100,6)
If lMsErroAuto
MostraErro()
Else
MsgAlert("Canceled successfully!!!")
EndIf
ElseIf nOpc == 5
aFINA100 := { {"CBCOORIG" ,"001" ,Nil},;
{"CAGENORIG" ,"001" ,Nil},;
{"CCTAORIG" ,"001" ,Nil},;
CNATURORI" ,"001" ,Nil},;
{"CBCODEST" ,"002" ,Nil},;
{"CAGENDEST" ,"002" ,Nil},;
{"CCTADEST" ,"002" ,Nil},;
{"CNATURDES" ,"002" ,Nil},;
{"CTIPOTRAN" ,"CH" ,Nil},;
{"CDOCTRAN" ,"123456" ,Nil},;
{"NVALORTRAN" ,2500 ,Nil},;
{"CHIST100" ,"TESTE TRF VIA EXECAUTO" ,Nil},;
{"CBENEF100" ,"TESTE TRF VIA EXECAUTO" ,Nil},;
{"NAGLUTINA" ,2 ,Nil},; //1=Sim;2=No
NCTBONLINE" ,1 ,Nil}} //1=Yes;2=No
}
MSExecAuto({|x,y,z| FinA100(x,y,z)},0,aFINA100,7)
If lMsErroAuto
MostraErro()
Else
MsgAlert("Transfer successfully executed!!!")
EndIf
// Reversal of Transfer
ElseIf nOpc == 6
aFINA100 := { {"AUTNRODOC" ,"123456" ,Nil},;
{"AUTDTMOV" ,dDataBase ,Nil},;
{"AUTBANCO" ,"001" ,Nil},;
{"AUTAGENCIA" ,"001" ,Nil},;
{"AUTCONTA" ,"001" ,Nil} }
MSExecAuto({|x,y,z| FinA100(x,y,z)},0,aFINA100,8)
If lMsErroAuto
MostraErro()
Else
MsgAlert("Transfer canceled successfully!!!")
EndIf
EndIf
If nOpc == 0
Exit
Endif
Enddo
Return(Nil)
This option allows adding an amount payable to the bank transactions.
...
List of parameters applied to FINA100 and its processing
Âncora | ||||
---|---|---|---|---|
|
Question | Description |
Group Entries? | Enter option "YES" so the accounting entries generated through the transactions are grouped in a single entry |
Display Acc.Entry? | Enter option "YES" so the accounting entries generated through the transactions are displayed on screen or "NO", otherwise |
Accounts online? | Enter "YES" if accounting of entries related to transactions online, or "NO", otherwise. |
Inf. Cc. in the Apportion? | Select option "Yes" so the accounts related to the apportionments are informed, or "No", otherwise. |
Parameters (SX6)
Question | Description | Default |
MV_FINLMCH |
MV_CTBFLAG | Indicates if the accounting flags of the offline routines are selected through the accounting entry transaction - SIGACTB. | .F. |
MV_EXDTDSP | It allows changing the availability date in the integration via automatic routine (FINA100). | .F. |
MV_DTMOVRE | It allows the use of a retroactive date from the system database to add bank transactions. | .F. |
MV_USEFRE | It controls the Checkbooks (not found in BRA environment) | .F. |
MV_NUMLIQ | Settlements sequence number. Maximum quantity allowed of 6 characters. | 000001 |
MV_LIBCHEQ | Option to release bank balance when checks are generated before posting. | S |
MV_CLIPAD | Standard customer for pre-dated checks | 000001 |
MV_ESTADO | Acronym of the system user company to calculate the ICMS (7, 12 or 18%). | SP |
MV_FORPAD | Standard supplier for pre-dated checks. | 999999 |
MV_DTMOVDR | Number of continuous days the user may have in relation to the base date when adding the bank transaction | 30 |
MV_DIASCRD | It determines the number of days to be added to the system base date to determine the credit date of a bank transfer (FINA100) | 0 |
MV_MOEDA |
MV_SIMB | It configures the symbol used by the currency 1 of the system (not found in BRA environment) | BRL |
MV_FATOUT | Time out to select user record (in seconds). If the user takes longer, the screen is closed. | 900 |
MV_MCONTAB | Accounting module used by the Advanced CTB = SIGACTB (Managerial Accounting) CON = SIGACON (Accounting) | CTB |
MV_CXFIN | Finance General Cash | CX1/00001/0000000001 |
MV_CARTEIR | Codes of banks in the portfolio. |
MV_CMC7FIN | Indicates the use of CMC7 reader in the Financial Content . S = Use CMC7 N = Do not use CMC7 | N |
MV_BXDTFIN | It does not allow posting payment date earlier than the date in the parameter MV_DATAFIN (1=Allow, 2=Do not Allow) | 2 |
MV_DATAFIN | Deadline for financial operations | 19800101 |
The Bank Transaction is used to perform entries between accounts by feeding the balance in the SE8 - Bank Balances table, and by registering the transactions in the SE5 = Bank Transaction table. This basic characteristic does not generate revenues and expenses for the company, only controlling inflows and outflows of values between accounts.
...
Tip
a. In case of a Bank Transfer, and the value is wrong, enter an opposite entry. All of the transfers in "Bank Transfer" are registered for information safety.
b. For any option chosen in the Tp.Trans. (Type of Transfer) there will be bank transaction, updating the SE5 (Bank Balance), SE5 (Bank Transaction), FK5 (Bank Transactions) and FKA (Transactions Tracking) tables.
c. Characteristics of bank transfer transactions between Checking Account:
Type of Transaction | Number Check (E5_NUMCHEQ) | Document (E5_DOCUMEN) |
Origin/Outflow | Even if the bank transaction if not executed in check (CH type, for example), this field is filled out with the document number displayed on the screen. This is the legacy manner to check the outflow process, but there will not be generation of check in the SEF table, even if the transaction is in cash ($ type) or bank transfer (TB type). | Not completed. |
Target/Inflow | Not filled out. | Even if the bank transaction if not executed in check (CH type, for example), this field is filled out with the document number displayed on the screen. This is the legacy manner to check the inflow process, but there will not be generation of check in the SEF table, as the transaction comes from other checking account. |
d. Only the use of asterisk ( *** ) is allowed when typing the document number for "Trans Type" equal to "TB" or "CH".
For example:
...
LP | Generator Fact | On | Off (CTBAFIN) |
516 | Addition of bank transaction payable with apportionment | X | X |
517 | Addition of bank transaction receivable with apportionment | X | X |
557 | Cancellation of bank transaction payable with apportionment | X | X |
558 | Cancellation of bank transaction receivable with apportionment | X | X |
560 | Bank transfer - source bank outflow | X | X |
561 | Financial transfer - source bank inflow | X | X |
562 | Bank transaction payable | X | X |
563 | Bank transaction receivable | X | X |
564 | Cancellation bank transaction payable | X | X |
565 | Cancellation bank transaction receivable | X | X |
Configuration of standard entries for this routine
Entry point | Description |
F100BROW | The entry point is executed before the bank transaction browser. |
FA100PAG | The entry point will be used after the recording of the accounting data of accounts payable in the bank transaction. |
FA100REC | The entry point is used after the recording of data and the accounting of the accounts receivable in the bank transaction. |
FINATROC | Executed after the recording of all transactions receivable and accounting data. Used only by the SIGALOJA environment. Document: FINATROC - Recording of transaction receivable data – 12069 |
FA100VLD | Allows the user to create validations in relation to access to deletion and cancellation of bank transaction. |
FA100CA2 | executed after the confirmation of Deletion of Bank Transaction, before the deletion and accounting. |
FA100CAN | The entry point will be used after the deletion of bank transactions before the accounting. |
FA100Get | allows the customer to fill out the bank transfer screen data automatically. |
FA100TRF | executed before the transfer and returns .T. to record the transfer or .F. otherwise. |
F100DOC | used to edit the check number during the transfer between banks and bank branches. |
A100BL01 | executed after the recording of bank transfer data. |
FA100DOC | Is used to manipulate the variable cDocTran. Return: value that must be in cDocTran Parameters: cBcoOrig, cAgenOrig,cCtaOrig,cTipoTran |
A100TR01 | used in the recording of bank transaction transfer. |
A100TRA | A100TRA entry point complements the A100TR01 entry point. This entry points receives a parameters array with this content: lEstorno, cBcoOrig, cBcoDest, cAgenOrig, cAgenDest, cCtaOrig, cCtaDest, cNaturOri, cNaturDes, cDocTran,cHist100. |
A100TR02 | used during the recording of bank transfer data |
A100TRB | A100TRB entry point complements the A100TR02 entry point.This entry point receives a parameters array with this content: lEstorno, cBcoOrig,cBcoDest, cAgenOrig, cAgenDest,cCtaOrig,cCtaDest,cNaturOri,cNaturDes,cDocTran, cHist100. |
A100TR03 | executed after the recording of the bank transfer data. After recording the SE5 of Source/Target banks after the accounting. |
A100TRC | A100TRC entry point complements the A100TR03 entry point.This entry point receives a parameters array with this content: lEstorno, cBcoOrig, cBcoDest, cAgenOrig, cAgenDest, cCtaOrig, cCtaDest, cNaturOri, cNaturDes, cDocTran, cHist100. |
F100TOK | Validates the bank transaction data. |
FA100TRF | The entry point FA100TFR is executed before the transfer and returns .T. To record the transfer or .F. otherwise. |
FA100ROT | Allows the addition of customized buttons in theEnchoiceBar of the Bank Transaction routine. |
FA100OKP | Used to block the addition of transactions payable in the Bank Transactions routine. If it returns true, the transaction is regularly performed, otherwise, there will not be addition of transaction. Logic return. |
FA100OKR | Used to block the addition of transactions payable in the Bank Transactions routine. In case the return is true, the transaction is regularly executed, otherwise, the transaction will not be added. Logic return. |
A85CHPDT | Allows the user to perform the own treatment to select the third party checks that may be used in the type of payment entered in the option differentiated payment. |
F100FBRW | The entry point is executed before the bank transaction browser. |
...