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.
- Digital Certificate: If it is not configured, configure it now.
- Environment: Indicate whether the environment is a Production or a Test one.
- WebServices Module: If the provider's city has more than one WebServices standard, you must indicate the one used. Otherwise, this parameter is obsolete. Approved cities are working with only one standard model 0.
- Version: Indicate the version of Municipal Electronic Service Invoice layout. The version 1 is used for all cities.
- SIAFI Code: Enter the standard SIAFI code of provider's city.
4. Configure data requested and confirm them.
5. Click Transfer. A description screen is displayed concerning the transfer of Invoices to the City Hall.
- NF Series: Enter the series of the invoice specified in the parameter MV_ESPECIE.
- Initial Invoice: Enter the initial invoice to be sent.
- Final Invoice: Enter the final invoice to be sent.
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:
- Messages: This option enables you to view all attempts of transfer to the City Hall, occurrences of each transfer, and errors returned from the City Hall.
- Refresh: This option enables you to update the monitor to check status changes.
- Schema: Enables you to validate the XML file that has been (or will be) sent to the city Hall. This process validates all schemas. If there is any incomplete information in the XML, it is displayed in the Schema validation message.
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:
- .DOT Directory: Enter the directory where standard print file (.DOT) is saved. Example: C:\MP10\SYSTEM\.
- .DOT File: Enter the standard print file name with .DOT extension. Example: RPS.DOT.
- Initial Issue: Select in the calendar or enter the initial issue date of RPSs to be selected for print.
- Final Issue: Select in the calendar or enter the final issue date of RPSs to be selected for print.
- Initial Customer: Enter the code of initial customer of RPSs to be selected for print. If you want to select all RPSs of the period, regardless of customers, leave this question blank.
- Final Customer: Enter the code of final customer of RPSs to be selected for print. If you want to select all RPS of the period, regardless of customers, enter ZZZZZZ.
- Concerning Automatic Option: If the automatic option is selected on the next screen, enter:
- Print: To send the selected RPSs to the printer automatically.
- Save: To save the selected RPSs for future print.
- Target Directory: If the option Save was selected in the previous question, you must define in which directory the RPSs generated will be saved. Example: C:\RPS\.
- Initial RPS: Enter the initial RPS number to select the documents to be printed. If you want to process all RPS of previous selections, leave this question blank.
- Final RPS: Enter the final RPS number to select the documents to be printed. If you want to process all RPS of previous selections, enter ZZZZZZ.
- Print Cancelled Documents: Indicate whether canceled documents must be considered in the selection of RPSs for print.
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.
- Manual: The RPS selected is processed and sent to the template file in MS-Word®, which can be handled.
- Automatic: All RPSs displayed in the window are directly printed or saved for future print, as defined in the report questions.
- Manual and Automatic: RPSs are generated according to the model defined by .DOT file.
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:
- Initial Date: Select in the calendar or enter the initial issue date of RPSs to be selected for print.
- Final Date: Select in the calendar or enter the final issue date of RPSs to be selected for print.
- Initial Customer: Enter the code of initial customer of RPSs to be selected for print. If you want to select all RPSs of the period, regardless of customers, leave this question blank.
- Final Customer: Enter the code of final customer of RPSs to be selected for print. If you want to select all RPS of the period, regardless of customers, enter ZZZZZZ.
- Initial RPS: Enter the initial RPS number to select the documents to be printed. If you want to process all RPS of previous selections, leave this question blank.
- Final RPS: Enter the final RPS number to select the documents to be printed. If you want to process all RPS of previous selections, enter ZZZZZZ.
- Number of Copies: Enter the number of copies to be generated for each RPS selected by the routine.
- Print Cancelled Documents: Indicate whether canceled documents must be considered in the selection of RPSs for print.
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:
- When NFS-e is sent to TOTVS Service SPED - NF sent;
- When the NFS-e sent has data integrity problems - NF not authorized;
- After NFS-e query - NF authorized.
Notes concerning some options:
- View Doc.: Enables you to view the invoice selected. This option views the Outflow Invoice.
- Filter: Enables you to change the filter, without leaving and entering the routine again.
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).