PHP - Bank Reconciliation

3

I'm developing an application that will need banking reconciliation functionality.

For this, the standard cnab 400 should be used for Banco do Brasil. I need to generate the batch file and handle the return file. However, I did not assimilate as well as it should be.

For Banco do Brasil I could not find a tutorial or something to guide me.

Could anyone help me?

    
asked by anonymous 11.06.2015 / 22:05

1 answer

5

Banco do Brasil will make available to you every day a return file with the lowering of the tickets made the previous day (sometimes older) through internet banking. The return file is a normal text file if I do not engage with the .ret extension. It works as follows, the first line is the Header (Recorder Header) and contains the account data and the purpose of that file, the last is the Trailler Record of the file and only records the end of it, the rest of the file Detail) represents the records that have occurred, can represent write-off, liquidation, protest, among others. To know what each field of the file represents, you have to read the bank manual. Access the Manual BB here have all the manuals , what you need is the CBR643 (CNAB400) .

Be aware that even though BB does not register, BB generates the empty return file, without Detail Record.

    
11.06.2015 / 23:17