1. By accessing Municipal NFS-e, run the routine that searches for access to TOTVS Service SPED (TSS).

2. Take a look at the text messages carefully and answer all the questions.

Important:

Enter the URL where TOTVS Service SPED server is. URL nomenclature follows the standard used on Internet browsers.  Address must be specified, considering the hardware where Application Server - Microsiga Protheus® of ERP is. Thus, using the localhost means that ERP Server and TOTVS Service SPED are in the same hardware. 

3. By accessing the browser, before any operation, you must configure the use environment in order to send the invoices correctly.

4. Configure data requested and confirm them.

5. Click Transfer. A description screen is displayed concerning the transfer of Invoices to the City Hall.

6. Check data and click Next.

7. When processing is successful, a screen is displayed with a message indicating that the transfer by Microsiga Protheus® to TOTVS Service SPED was successfully completed.

8. Click Finish.


After transfer, the application of integration with Electronic Service Invoice, TOTVS  Service SPED, manages the queue of Invoices received and performs integration with the City Hall. This transaction can be monitored by the Monitor option, in the routine footer.

After transfer, the following options are available:



NFS-e Print - City Hall

Procedure only performed after transfer and return from the City Hall authorizing the generation.

NFS-e can be issued on the taxpayer's City Hall website.

Important:

  • Only RPS dispatch for invoice authorization is enabled in Microsiga Protheus®.

Due to unavailability of cancellation services, they must be made directly on the taxpayer's City Hall website.



RPS (Temporary Service Receipt) Print - Microsiga Protheus®

After RPS issue and positive return from the City Hall, RPSs can be printed through two different options: integration with MS-Word® or by the graphical printing routine.

Integration with MS-Word®

The routine provides a standard model to print RPS, through a .DOT file. This file can have its layout changed, according to the needs of each company. Then, just open the .DOT file in MS-Word® and make the necessary changes.

This routine does not work in Linux environment because MS-Word® cannot be used. If the environment is Linux, you must use the graphical printing routine.


1. Access RPS Print and fill out the fields:

2. Click Confirm. A new window is displayed with the RPSs selected through routine parameters. In this window, there are two print options on the left: Manual and Automatic.


Print by graphical routine

Enables RPS to be printed as a chart, in a predefined layout , which cannot be changed by the user.

1. Access RPS Grap. Print and fill out the fields:

2. Click The routine returns to the description window. Click Confirm again to start printing. RPSs are generated in the number of copies defined in the routine parameters.

Important:

The logo used in RPS print is the same one used in Microsiga Protheus® reports, which must be in \SYSTEM directory and have the following name:

LGRLXXZZ.BMP, where:

  • LGRL indicates the logo file name;
  • XX indicates the logo file company;
  • ZZ indicates the logo file branch.

If the logo file is the same one for all branches, you just need the LGRLXX.BMP file, that is, only the company file.



Caption Notes

Caption colors are changed after each interaction between the system and TOTVS  Service SPED, and also in the following situations:


Notes concerning some options:

RPS Replacement

After sending an RPS to the city hall, authorized and converted into an Invoice, it can be replaced with another RPS. Thus, the city hall cancels it automatically.

Example

The RPS 1 was sent, authorized and converted into NFS-e 1. However, due to some problem, it is replaced with RPS 2. When the RPS 2 is authorized and converted into NFS-e 2, the NFS-e 1 is internally cancelled by the city hall.

Not all city halls use this service. Thus, depending on the city hall, there is no return in the query via WebService of a replaced NFs-e. Therefore, the monitor and the ReturnInvoices have some differences.

Import of City Hall Return File

When an invoice is sent through the city hall website, it returns a file with data of the Electronic Invoice generated. This file has information, such as Receipt, NF-e Number and Lot.

To store this data in the system, use the Return Imp. option.

Despite the file is imported through ERP, information in it is only used in the tables of Webservice server (SPED051, SPED053 and SPED055).