This routine accomplishes the freight calculation of the customer invoice inflow lots. After the calculation, the lot may become blocked; for example, blocked because of credit or transport (excess weight). If this happens, you must perform the release of credit or of transport and recalculate freight.
Upon freight calculation, the transport documents are created (CTRC - Road Transport Bill of Lading), related to the customer's invoice inflow lots, using for this calculation the freight table entered in the Customer Contract.
For districts that use the Electronic Invoice, Protheus allows transporters who issue Provisional Service Receipts - RPS, to search the authorized Electronic Invoices on the city administration offices' return file, through the Electronic Import Invoice. |
Parameters Involved in Freight Calculation
Indicates the way invoices are created, in which:
a) If the parameter's content is 1 (SE1 - Accounts Receivable), the freight calculation creates receivable bonds.
b) If the parameter's content is 2 (DT6 - transport Documents), the freight calculation does not create receivable bonds.
To create invoices, use the Manual Invoice or Automatic Invoice.
Determines whether the base value for freight calculation is per product or per the total of invoices comprising the freight, which may be configured with:
T - The base value for the freight calculation is per product.
F - The base value for the freight calculation is per the total of invoices comprising the freight.
See the freight calculation per product or inflow lot example.
Determines the closing date for creating transport documents or reversing documents.
Determines whether the Electronic Bill of Lading is sent to SEFAZ automatically after the freight calculation.
This parameter regards situations in which the vehicle has left to perform a pickup but has not yet returned to the branch of origin; however, the branch already has all the data needed for creating the bill of lading.
In case it is configured with a .T. (true), the system assumes the pickup trip which was in transit also performs the delivery, thus, the bill of lading is created attached to the pickup trip, not allowing its delivery through another trip.
When the parameter content is .F. (false), the pickup trip is not configured to deliver, thus, allowing the creation of another trip to perform delivery of the bill of lading.
Example:
In the Sao Paulo branch, the vehicle has left to perform a pickup trip in Rio de Janeiro and, on its way back, took the opportunity to deliver the goods in Campinas. As the delivery already was in the pickup trip's return route, it was not necessary to return to the Sao Paulo branch and perform the delivery trip later. Thus, by using the trip, the branch reduced the transport cost.
Note:
This parameter is validated only if the MV_TMSCFEC parameter is configured with a .T. (true), indicating the carrier uses closed cargo.
Allows you to define whether Sundays are considered valid dates for the calculation.
When this parameter is set as T, the outbound invoice or sales order items are grouped in a single outbound invoice item, for cases when the product and TIO are equal.
This parameter works with the parameter MV_TMSCFEC and depends on it to enable the process of Closed Load. The parameter MV_ENTSAGE is responsible for defining whether a scheduling process must be used in this process to create the delivery trip.
If the parameter is configured with F, the Delivery Trip is not generated without scheduling. If it is configured with T, a Planned Delivery Trip is generated.
Check the other Parameters involved in Freight Calculation.
In the parameter, enable or disable the Freight Calculation procedures.
When configured with content .T. (True), it enables the procedures in the Freight Calculation.
When configured with content .F. (False), it disables the procedures in the Freight Calculation.
This parameter works toguether with the CTECAN parameter.
When set to .T. (True), it allows you to cancel CT-e in contingency mode FS-DA, when parameter CTECAN is enabled.
Besides calculating freight, this routine checks if values of collection or delivery TDA are within the values defined as minimum or maximum to collect this component. At the bottom of the screen, the composition of items are displayed; one of them, in the Composition column, refers to TDA component. |
Routines and Processes Involved in Freight Calculation
The routine queries the existence and validity of customer contracts.
For freight table related information, the system checks the standard freight table's data, or of the alternative freight table, if any.
Validations:
Refer to the Freight Table Configuration topic.
Refer to the Tariff Table topic.
In the Customer Profile register, if the Mandatory Adjustment is completed with a Yes, the system checks for the existence of adjustments for the customer. If there are not, the lot is blocked.
Query the Freight Table Adjustment and Customer Profile topics.
Query the Freight Components topic.
Invoice Grouping
The routine checks data related to grouping typed invoices, checking the amount of CTRCs to be created.
In the Customer Profile register, the fields CTRC Maximum Weight, Invoice per CTRC, Group Invoices, and Grouping Customer are completed.
The Grouping Customer field, defined in the customer's profile, is used to group customer invoices with different senders. Its aim is to determine a single billing value for the freight, calculating the proportion between the weights of each customer's invoices. Thus, several documents are created, the sum of which results in a single freight value for payment, derived from the sum of all of the shipping customer's invoices.
Addressee Customer Type Configuration
To meet legislation for the rendering of transport services, as determined by item II of Clause 52 of RICMS, /2000 (Clause 54, paragraph II of RICMS/1991), when the goods to be shipped by the requesting taxpayer are destined to ICMS contributor (…), the percentage applied to the tax calculation is 7%.
In this same hypothesis (...), when the addressee is a non ICMS paying individual or a corporation, the applicable percentage for calculating the tax is 12% (Clause 54, Items 1 and 56 of RICMS/2000; Clause 54 paragraph 1, Items 2 and 3, RICMS/1991).
For such purpose, the calculation for getting the ICMS percentage is performed from the addressee customer type.
Product Registration for Tax Calculation Purposes
Example: You must register an ICMS product, determining the ICMS value to be calculated in the freight.
Refer to the Products topic, Tax folder.
The existence of another route
The freight calculation and the validations are performed for both routes.
Lot invoices
The calculation is performed as follows:
See Also