Note

This routine was adjusted to comply with the General Personal Data Protection Law (Statute No. 13.70), so that some fields containing data regarded as sensitive and/or personal are blurred, becoming illegible.


The return file sent by the bank with information about the status of the bills under collection at the collecting agent is processed in this routine. The bills returning with information related to the posting are automatically posted, bank transactions and balance updates are generated, and these postings are accounted.

If a customer has paid a bill twice, the system generates an RA bill, crediting the customer for the duplicated payment. For this to happen, parameter MV_REC2TIT must be configured. When it is set to 1, the RA is generated and, when it is set to 2, the system continues without performing a new posting or transaction.

To post bills with multiple nature apportionments, set parameters MV_MULNATB and MV_MULNATR to .T.

If needed, use the MV_LOCREC parameter to enter the directory of the CNAB files that are returned from the bank and will be processed.

The system allows you to select the CNAB template to be used for bank receipt: Template 1 or Template 2.

As the return file from the bank is in .TXT format, the system converts this format into .DBF so that its data can be interpreted.

 Important:
In the Cnab return, the bills' posting is multi-functional, i.e., enables this process to occur in different branches when the data sent to the bank is IDCNAB; if the key is sent with the bills data, the data is handled per company.
You can define the use of an official account if set in the Bank Parameters routine.



 Note:
This routine features integration with RM Classis Net.
For technical details about the procedures of Deployment, Usage, Table Synchronization among Bases, and Parameterization for Generation, check the Protheus X Classis Integration Manual available on the TDN portal.
Also, check the information about Education Management.


If the Schedule routine and the EAI Adapter are configured, integration between TIN (TOTVS Real State Enterprising) and Protheus is possible for sending and receiving XML files according to the XSD ratified by TOTVS®.  


Procedures

For receiving CNAB receivable from the bank:

  1. In Return of CNAB Receivable, select Parameters.

The system displays the routine parameterization screen.

2. Configure the parameters according to the field help instructions.

Pay attention to the following questions:

Process Branch?:  determine if the return processing must consider only bills from the Current Branch or bills from All Branches if the IDCNAB resource is used.

Online Booking?: determine the booking of the CNAB return.

Consider Bank Retention?: a standard must be defined for using this question because, if it is constantly edited, the bills' due dates may not be corrected when the bills are transferred to a collection status or portfolio.

3. Check the data and confirm.

4. After filling in the parameters, select Receive File in the routine maintenance window.

The system then starts searching and converting data from the file according to the parameters configured.
 

 Important:
If any parameter is incorrect, the system will display an error message and the solution.
In case of reprocessing files, i.e., when the system receives a file and identifies it as already processed, a message with the name of the file processed, the user who processed it, the last line read from the file and the number of times that this file was processed is displayed on the screen. Then, confirmation of re-processing of this file is requested.
If the option is Reprocess, the system continues to read this return file from the last line processed, preventing that a bill already posted (paid) generates a credit bill (RA) for the customer. This happens when the company uses the parameter MV_REC2TIT = 1.


 


SEE ALSO