Nota Fiscal Numbers in Fiscal Books

When you run the programs to generate blocks A, B, C or E for fiscal books reporting, the system populates the field for the nota fiscal series based on the value that exists in the NFe Header (F76B01TE) table for electronic nota fiscal records. For inbound transactions, the system populates the F76B01TE table when you enter receipts and enter the electronic nota fiscal number from your supplier. The system uses the Vendor Invoice Number field in the Accounts Payable Ledger table (F0411) to retrieve the nota fiscal number from the NFE Legal Number field in the F76B01TE table.

The programs that generate blocks A, B, C and E are:

  • Fiscal Note - Block A (R76B0530)

  • Electronic Reporting – Fiscal Notes Services (R76B0540)

  • Fiscal Note - Block C (R76B0550)

  • Fiscal Books - Block E (R76B0570)

The fields in the flat files that include the nota fiscal series number are:

  • Field 7 (SER) in register A020 in block A.

  • Field 7 (SER) in register B 020 in block B.

  • Field 7 (SER) in register C020 in block C.

  • Field 7 (SER) in register E020 in block E.

When you run one of the programs to populate block A, B, C or E, the system uses the length of the legal nota fiscal number in the B76ELN field in the F76B01TE table to determine how to write the series number for the flat file. The system writes the value for the nota fiscal series as follows:

  • If the length of the legal nota fiscal number is 13 characters, the system leaves the SER field in the flat file blank.

    The system saved a length of 13 characters in the F76B01TE table for records processed before the software changes for processing notas fiscais for the telephone industry.

  • If the length of the legal nota fiscal number is 15 characters, the system writes characters 14 and 15 to the SER field in the flat file.

    The system saves a length of 15 characters when the user enters a 2-character series number when working purchase receipts or inbound standalone notas fiscais.

  • If the length of the legal nota fiscal number is 24 characters, the system writes S.U. (SERIE UNICA) to the SER field in the flat file.

    The system saves a length of 24 characters when you leave the NF Series field blank when working with purchase receipts or inbound standalone notas fiscais. The 24 characters consist of 13 characters for the nota fiscal legal number and the text SERIE UNICA. For example, if you enter 123456789 as the nota fiscal legal number and leave the nota fiscal series field blank when you enter a purchase receipt, the 24 characters saved to the nota fiscal legal number field in the F76B01TE table is 0000123456789SERIE UNICA.