Páginas filhas
  • Offline Accounting - CTBAFIN - Financial - P12

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

Índice

01.  OVERVIEW

This routine aims at generating offline accounting entries for financial operations.

...

  1. In the Offline Accounting window, a descriptive screen of the routine is displayed.
  2.  Click "Parameters".
    1. The system displays the parameters screen.
  3. Configure them according to field help instructions.
  4. Observe the following parameter:  Separates  
    1. Separate By?
      1. Period=The generation of accounting document generates an accounting document for each period date.
      2. Document = For each financial document (bills, for example) accounted, an accounting document is generated (similar operation to the online accounting, where each accounted bill generates a new accounting document).
      3. Process = For each accounted process (Addition Payable, Addition Receivable, Posting Payable, Posting Receivable, Bank Transaction etc.), a new accounting document is generated.
Dica
titleTips

See more information on both cases - Document and Process - in the PARAMETERS APPLIED section in the Parameters/Separate by table


5. Check parameters and confirm them.

The system returns to the routine's description screen.

6. Confirm to start processing.

Important!
Informações
title
Nota

To run this routine, they must be registered in the SIGACTB.be able to perform the routine, it is necessary to register, in SIGACTB: 

  • Accounting Calendar -
 CTBA010
  • CTBA010
  • Accounting Currency - CTBA140

After registeringmaking the registrations, you should bind the currencies to the calendars.Currencies

  • Currency X
Calendars
  • Calendar -
CTBA200  

...

  • CTBA200
Dica
titlePerformance Tip

The performance of the accounting routine, because it covers all operations of the financial module, implies the gathering of information from several tables, and this makes the maintenance of the Database Application (DBMS) an essential element to obtain better time results and avoid waste. Visit the links below for more details on this maintenance:

In addition, it is worth mentioning:

  • Check if the LIB, AppServer, Smartclient, DBAccess, and License Server versions are the same as the last ones available in the Customer Portal because some improvements are constantly being implemented to optimize performance for the Protheus 12 environment;
  • Updates to DBAccess and AppServer must be performed simultaneously in most cases because changes made to the AppServer dbapi library are reflected in DBAccess.


Other tools for environment/performance support and analysis:


03. PARAMETERS APPLIED


Deck of Cards
effectDuration0.5
historyfalse
idsamples
effectTypefade
Card
defaulttrue
id1
labelParameters

Question

Description

Display Acc. Entry?

Select Yes or No to indicate whether to display the accounting entry when booking online.

Example:

No.

Group Acc. Entry?

Select Yes or No to indicate whether to group entries in a single line if accounts, cost center, item, and value class are the same in the entries.

Example:

No.

Account for issues?

Indicates by selecting between the options By the issuing dt. (Accounting Dt. = E2_EMIS1/E1_EMISAO) and By the Database (dDataBase).

The accounting of accounts payable is based on the date of inclusion of the bill in the system. This occurs so that accounting postings are not made in periods already closed. 


Informações
titleConcept

The accounting of accounts payable is based on the date of inclusion of the bill in the system. This occurs so that accounting postings are not made in periods already closed. 

For example, when making a purchase on October 28, 2021, from a supplier in Manaus, the invoice is issued on October 28, 2021, and the cargo is delivered in Sao Paulo on November 3, 2021. Assuming that the company has already made the monthly closing of the accounting, it could not account using the date of issue of the invoice (October 28, 2021). Due to this type of circumstance, conceptually, we must account using the date of entry of the invoice into the system.


For accounts receivable, the bill generation date is considered.  

Example:

06/24/2019

From Date?

This indicates the start of the date interval to filter records for offline accounting.

Example:

06/1/2019

To Date?

This indicates the end of the time interval to filter records for offline accounting.

Example:

06/30/2019

From Portfolio?

Indicates, by selecting between the options Receivable, Payable, Check, or All, whether the accounting entry will filter by bill nature.

Example:

No.

Account postings?

Indicates, by selecting between options By Posting Dt. (by the bill's posting date), By Typing Dt. (by the time when the user typed it), or By Avail. Dt. (by the date of availability typed by the user to account in the date of the bill transaction, not by the bill's posting date), for the accounting entry filter.

Example:

No.

Cons. branches below?

Indicates by selecting Yes or No, whether the following two parameters will be considered in offline accounting or not through the branch filter that the user has access to.

Example:

No.

From Branch?

Indicates by typing which branch will be the beginning of the filter interval for offline accounting.

Example:

D MG 01

To Branch?

Indicates by typing which branch will be the end of the filter interval for offline accounting.

Example:

ZZZZZZZZ

Update summarized?

Indicates, through the Yes or No options, whether summarized accounts (child accounts of detailed accounts) will be updated in offline accounting.

Example:

No.

Separate by?

Indicates through the Period, Document, or Process options.

Example:

  • Period: For each Branch/Date informed, 01 (one) accounting document gathering the various financial processes will be generated; 
  • Document: Each financial record must generate 01 (one) accounting document;
  • Process: 01 (one) accounting document will be generated for each financial process.



Informações
titleNOTICE: Definitions

1.   CTBAFIN treats as a financial document: 

  • Each issue of a bill (payable or receivable);
  • Each bill posting operation (payable or receivable - except those linked to a bordereau);
  • Each bill posting operation linked to a bordereau (payment or receipt), with the bordereau being the Financial Document;
  • Financial Application or Financial Loan;
  • Redemption of financial application or payment of financial loan;
  • Check issuance or posting;
  • Advances or Rendering of Travel Accounts.

2.   The CTBAFIN process is treated as:

  • Accounts Payable Issuance; 
  • Accounts Receivable Issuance;
  • Posting of Accounts Payable;
  • Posting of Accounts Receivable;
  • Bank transactions (Applications, Redemptions, Deposits, Withdrawals, or Bank Transfers);
  • Issuance and/or posting of checks;
  • Travel-related operations (Advances, Rendering of Accounts, etc.).

Account Bordereau?

Indicates, by means of the Total Bordereaux or Bordereau/Bordereau options, if the LP 532 accounting (Bosting of bordereau bills) will be dismembered or if daily accounting of the total of all bordereaux will take place (Documentation on the concept applied to the LP 532

Deck of Cards
effectDuration0.5
historyfalse
idsamples
effectTypefade
Card
defaulttrue
id1
labelParameters

Indicate through the selection between the options By issue date ( Accounting Date = E2_EMIS1 / E1_EMISSAO ) and By Database (dDataBase).

Question

Description

Display Accounting Entry?

It indicates through the selection between the options Yes and No, if the accounting entry must be displayed when the accounting is online.
Example:
No.

Group Accounting Entry ?

It indicates through the selection between the options Yes and No, if the accounting entries must be grouped in a single row, if the accounts, cost center and value class are equal in the entries performed.
Example:
No.

Account Issues ?

Informações
titleConcept

Accounting for accounts payable is based on the date of inclusion of the bill in the system. This is so that accounting entries are not made in periods that have already ended.

For example, when making a purchase on 10/28/21 from a supplier in Manaus, the invoice is issued on 10/28/21 and the cargo is delivered in São Paulo on 11/3/21.

Assuming that the company has already carried out the monthly accounting closing, the company could not account using the date of issuance of the invoice (10/28/21). Due to this type of circumstance, conceptually we must account for using the date of entry of the note into the system.

For the accounts receivable, the bill generation date is considered.  

Example:

06/24/2019

From Date ?

It indicates through the selection From Date?, the beginning of the interval of time to filter the records for the offline accounting.

Example:
06/1/2019

To Date ?

It indicates through the selection To Date?, the end of the interval of time to filter the records for offline accounting.

Example:
06/30/2019

From Portfolio ?

It indicates through the selection between the options Receivable, Payable, Check or All, if the accounting entry will filter by the bills nature.
Example:
No.

Account Posting ?

It indicates through the selection between the options By Posting Date (by the bill posting date), By Digit Date (by the user digital date) or By Availability Date (by the availability entered by the user to account the bill transaction date, and not by the bill posting date) for the accounting entry filter.

Example:
No.

Consider Branches Below ?

It indicates through the selection of the options Yes and No, if the two following parameters are considered in the offline accounting or not, through the branches filter.

Example:
No.

From Branch ?

It indicates which branch will be the start of the filter interval for offline accounting.

Example:
D MG 01

To Branch ?

It indicates which branch will be the end of the filter interval for offline accounting.

Example:
ZZZZZZZZ

Update Summarized ?

It indicates through the options Yes or No, if the summarized accounts (child accounts of the detailed accounts) are updated in the offline accounting.

Example:
No.

Separate by ?

It indicates through the options Period (period chosen by the user before in the questions From Date ? and To Date ?), Document (separate by bordereau included in the chosen period) or Process (separate by bordereau in which there are several bills linked to the it).

Example:
No.

Account Bordereau ?

It indicates through the options Total Bordereau or Bordereau/Bordereau, if the accounting of the LP 532 (Posting of bills in the bordereau) will be separated bordereau by bordereau, or daily, the total accounting of all bordereau (Document on concept applied to LP 534)

Example:

No.

Consider Original Source Branch?

It indicates through the selection the options Indicates, by selecting Yes or No, if whether the following two parameters are will be considered in the offline accounting or not , through the origin source branch filter.

Example:

No.

Branch From Branch ?

It indicates Indicates by typing which branch will be the start beginning of the filter interval for offline accounting.

Example:

D MG 01

To Branch?

It indicates Indicates by typing which branch will be the end of the filter interval for offline accounting.

Example:

ZZZZZZZZ

Book Prov. Bill?

Indicates whether provisory

Accounting Provisional Bill ?

It indicates if the provisional bills must be accountedbooked.

Example:

No.

Card
defaulttrue
id2
labelParameters (SX6)

Parameter

Description

Default Content

MV_CFINTHR

Number The number of threads to be used in the quantity of the threads to be used in Financial (CTBAFIN), minimum 1, maximum 15.to speed up the accounting queue (CTBAFIN), with a minimum of 2 and a maximum of 30.
Each processing instance requires that the minimum number of records be equal to or greater than 200.
 
Check this page MV_MXRCTHR

1

MV_FINLOG

It indicates Indicates whether or not the financial module offline accounting of the Financial module will generate the non-accounted unaccounted records log (.T.) or in warnings alerts (.Ff.)Document. Documentation{+}https://tdn.totvs.com/x/zN6pHg+

.F.

MV_DIRDOC

Destination The target directory where the knowledge base files are files of the Knowledge Base will be stored.

\DIRDOC|\

MV_CTBUPRC

Define if you want Defines whether to account through using the new accounting model, with dynamic procedures for validations and addition inclusion of data CT2 and CV3 data (.T.).

.F.

MV_TIPOLOG

Enter 1 to generate the log file in txt or 2 to generate the report.

1

MV_SLDBXCR

It indicates Indicates how the balance of the posting of the accounts receivable posting will be controlledtracked, only when the check is cleared, or during compensated or at the time of the posting (B, C).

The offline accounting uses the configuration of this parameter as follows:

  • Value B: Use the Uses LP 520 through the Posting posting record - SE5->E5_TIPODOC = VL
  • Value C: Use the Uses LP 559 through the record of the check clearance compensation date - SEF->EF_DTCOMP

B

MV_CTCHQBX

Defines at what moment the accounting of when the check will be accounted for on the posted bill will occur: 1 = GeneratedGeneration,  2 2 = Release.

1

MV_CTMOVPA

It indicates if Indicates whether the LP 513 Online Offline Accounting will occur through by the Bill (SE2) or Bank Banking Transaction (SE5) of the Anticipated Advance Payment, 1="SE2" / 2="SE5".

1

MV_CTBAGP

Define Defines whether the PCC bills are accounted for by their grouped bills groupings or not (Default = .F.).

.F.

MV_NATTROC

Determine Determines which nature will be used in the generation of change output from outflow of SIGALOJA and FRONTLOJA.

"TROCO"

MV_GPDOCTB

Determine the Lps Determines that LPs 560 and 561 (Bank Transfer) are grouped in a single  will be grouped into the same accounting document when the question "Separate by?" has is set to Document value.

.F.

MV_BXCNAB

Define whether the posting of the bills in Defines whether the CNAB return bill posts must be grouped, (S) Yes or (N) No.

N

MV_UNIAO

Used to identify the code given to the Federal Revenue Secretariat to pay the Income Tax.

UNIAO

MV_MUNIC

Used to identify the code given to the City Finance Secretariat to pay ISS. 

MUNIC

MV_ORDLCTB

Define the order of accounting entries in the batch/integration doc, "L"-Default Standard Entry Order, "E" Incoming Order and "T" - Type of Balance.

L

MV_CTBINTE

1 - Accounting by bill, 2 - Accounting by sales (Use only for integration)

1

MV_DATADE

Start date of reference for valid entries in accounting.

20010101

MV_DATAATE

End date of reference for valid entries in accounting.

20020531

MV_CTBAIXA

Type of Cash Accounting (Accounts Payable), (B) Posting, in the generation of (C) Check or in (A) Both cases.

C

MV_CARTEIR

Bank codes operating in portfolio.

MV_CTBFLAG

It indicates the accounting flags of the offline routines will be flagged in the accounting entry transaction - SIGACTB.

.F.

Identify the code given to the Federal Revenue for payment of Income Tax.

UNION

MV_MUNIC

Identifies the code of the finance department of the municipality for ISS collection. 

MUNIC

MV_ORDLCTB

Sets the order of accounting postings in the integration batch/doc, "L"=Default standard entry order, "E" Inflow order, and "T" = Balance Type.

L

MV_CTBINTE

1 - Accounting by bill, 2 - Accounting by sale (Use only for integration)

1

MV_DATADE

Start date of the period for entering valid entries for accounting.

20010101

MV_DATAATE

End date of the period for entering valid entries for accounting.

20020531

MV_CTBAIXA

Type of Post Booking (Acc. Payable): (B) Posting, in the generation of (C) Check or (A) Both cases.

C

MV_CARTEIR

Codes of banks in the portfolio.


MV_CTBFLAG

Indicates at which time the selection of the accounting flags in the financial records will be made:
- .T. value (Recommended) - through the accounting module - SIGACTB - where there is a transaction tracking (*);
- value .F. (Default) - Through the SIGAFIN module itself: CTBAFIN  - where there is no transaction tracking, i.e. the flag selection occurs without checking that errors or cancelations have occurred.



Informações
titleDatabase - Transaction Tracking

A transaction is a single work unit. If a transaction succeeds, all data changes made during the transaction are confirmed and become a permanent part of the database. If a transaction finds errors or needs to be canceled and or reversed, all data changes will be deleted.

Source: Microsoft - SQL documents

.F. (Default)

.T. (Recommended)

MV_BX10925

Defines when the withholding of PIS, COFINS, and CSLL taxes is processed: 1 = At Posting or 2 = At Issue

MV_BX10925

Define the handling of the withholding PIS, COFINS and CSLL taxes, 1 = During Posting or 2 = In the Issuance.

1

MV_CTMSFIL

Used in the offline accounting of the Financial financial module with the question "Consider Original Source Branch" = YES. .T. = Consider FILORIG fields FILORIG /.F. = MSFIL..F.

.F.

MV_MXRCTHR

The minimum number of records for a thread to be used in multi-thread processing.

200

MV_CNOUTR

Trace/Log for analysis in the performance of the accounting integration - MV_CONOUTR




Âncora
composition-deck-samples
composition-deck-samples

...

Below is the list of entry points available in the Offline Accounting (CTBAFIN) routine.

Entry Point

Note

F370CTBUSR

Entry The entry point at the end of the processing for complementary user additional processes.

DocumentDocumentation: {+}http://tdn.totvs.com/display/PROT/DT_PONTO_ENTRADA_FIM_CONTABILIZACAO_OFFLINE_FINANCEIRO+

F370E5F

Use Used as a string complement of the string in the SE5 data filter in the accounting.

Document: {+}http://tdn.totvs.com/display/public/mp/F370E5F+-+Complementa+filtro+--+11763+Documentation: F370E5F - Entry Point to filter SE5 records from the CTBAFIN routine

F370E2F

Used as a string complement of the string in the SE2 data filter in the accounting.in the SE2 data filter in accounting.

Documentation: F370E2F - Entry Point to filter SE2 records from the CTBAFIN routine

F370EFK

Allows you to change the sorting key of the check accounting in the offline accounting routine.

Documentation: Document: {+}http://tdn.totvs.com/display/public/mp/F370E2F+-+Complementa+filtro+--+11762+pages/releaseview.action?pageId=6071542

F370E5K

Allows you to change the sorting key of the SE5 bank transactions accounting. 

Documentation: https

F370EFK

Allow editing the ordering key of the accounting of checks in the Offline Accounting.

Document: {+}http://tdn.totvs.com/pages/releaseview.action?pageId=6071542+x/4wsOAw

F370E1F

It confirms the selection of the bill for accounting.

Documentation: F370E1F - Entry Point to filter SE1 records from the CTBAFIN routine

F370E1W

Changes the condition of the repeat loop "while" executed in table SE1.

Documentation: http

F370E5K

Allow editing the ordering key of the SE5 Bank Transactions accounting. 

Document: {+}https://tdn.totvs.com/x/4wsOAw+pages/viewpage.action?pageId=185752211

F370NATP

Handles what will be calculated in the offline accounting routines - FINA370 and CTBAFIN.

Documentation:

F370E1F

Confirm the selection of the bill for accounting.

Document: {+}http://tdn.totvs.com/pages/viewpage.action?pageId=6071024+.totvs.com/pages/viewpage.action?pageId=185736570

F370E5MBX

Allows you to add post types to a list of items that should not be booked.

Documentation: F370E5MBX - Allows you to enter posting purposes that will not participate in the accounting of bank transactions - SE5.

F370E5R

Used in the treatment for accounts receivable accounting.

Documentation:

F370E1W

Edit the the "while" loop executed in the SE1 table.

Document: {+}http://tdn.totvs.com/display/pages/viewpage.action?pageId=185752211+public/mp/F370E5R+-+Contabiliza+contas+a+receber+--+11765

F370E5P

Used in the treatment of accounting payable.

Documentation:

F370NATP

Manipulate what will be calculated in the Offline Accounting routines - FINA370 and CTBAFIN.

Document: {+}http://tdn.totvs.com/pages/viewpagereleaseview.action?pageId=185736570+6071027

F370E5MBX

Allow adding types of posting, which will not be accounted, to a list of items.Document: F370E5MBX - Allow entering the posting reasons that will be part of the bank transactions accounting.

F370BORD

Used to validate Standard Entries.

F370EFF

Used to filter SEF data at the time of accounting.

Documentation: F370EFF - Entry Point to filter SEF records from the CTBAFIN routine

F370EUF

Used to filter data from SEU bills in accounting.

Documentation:

F370E5R

Used when handling accounts receivable accounting.

Document: {+}http://tdn.totvs.com/display/public/mp/F370E5R+-+Contabiliza+contas+a+receber+--+11765+

F370E5P

Used when handling the accounts payable

Document: {+}http://tdn.totvs.com/pages/releaseview.action?pageId=6071027+

F370BORD

Used to validate Standard Entry.

/F370EUF+-+Filtra+dados+--+11768

CtbPFO7

The entry point for positioning in table FO7 in the accounting of travel rendering of accounts before the execution of standard entries 8B3, 8B5.

Documentation:

F370EFF

Used to filter data of the SEF during accounting.

Document: {+}http://tdn.totvs.com/display/public/mp/F370EFF+-+Filtra+dados+--+11767+

F370EUF

Used to filter data from SEU bill in the accounting.

Document: {+}http://tdn.totvs.com/display/public/mp/F370EUF+-+Filtra+dados+--+11768+

CtbPFO7

Entry point to place the FO7 table in the accounting of the provision of account of trips, before the execution of the standard entries 8B3, 8B5.

Document: {+}http://tdn.totvs.com/display/PROT/DT_CTBPFO7_Ponto_de_Entrada+

05. STANDARD ENTRY

...

defaulttrue
id2
labelParameters (SX6)

...

titleInformation

...

05. STANDARD ENTRY

Informações
titleInformation

LP configuration models - Financial

Informações
titleLP 501 and 502 - Behaviors

The inclusion of the RA-type bill is made using standard entry 501. This can be done online using the Accounts Receivable (FINA040) routine, or offline using the Offline Accounting routine (CTBAFIN).

When the inclusion of the RA-type bill has already been accounted for, regardless of whether it was Online (FINA040) or Offline (CTBAFIN), the accounting of the deletion of the RA-type bill will be carried out by the Accounts Receivable routine (FINA040) using the standard entry 502.

If the inclusion of the RA-type bill is not accounted for, the deletion of this bill will also not be accounted for via the Offline Accounting routine (CTBAFIN).

Informações
titleAccounting FLAG: Behavior

Accounting FLAGS are saved from the moment the record passes through the assessment of the rule defined in the standard entry (CT5_VLR01), whether it is met (return .T.) or not (return .F.).

Therefore, once the LPs are present and active, the system will make the respective flag selection on the linked records regardless of the returned value and the manipulation of the records in the accounting screen (even if the rows are deleted)

06. NOTE

  • When the TopConnect is used (Relational Database), the accounting may be processed in batch mode through the Schedule routine (automatic execution), through the Configurator Configuration module.
  • The  E5_NODIA, E5_DIACTB fields are only completed when the accounting is through document.

...

Offline accounting with multiple processes – Financial

Entry Points.

Semaphore - Table F74 - Control of Simultaneous Processing in the Financial

532 Posting of Bills Per Payment Bordereau