Calculation of the Value of the Fixed Asset
Invoice Total: R$ 1,000.00
Discount: R$ 100.00
ICMS (ATF001 – Subtract): R$ 180.00
IPI (ATF002 – Sum): R$ 6.50
Calculation:
R$ 1,000.00
– R$ 100.00 (Discount)
= R$ 900.00
– R$ 180.00 (ICMS)
= R$ 720.00
+ R$ 6.50 (IPI)
= R$ 726.50
✅ Value of the Fixed Asset: R$ 726.50
✅ The parameter MV_VLATFCT, combined with the Tax Configuration, represents a new mechanism and approach for defining the value of a fixed asset.
⚠️Although the parameter is of the Character type, it's not necessary to use quotation marks to start and end the formula.
🔔 The MV_VLATFCT parameter and the new method for defining the value of the fixed asset will only be activated when:
📝 The MV_VLATFCT parameter, along with the configurations of the Tax Configuration's calculation rule, will define the value of the fixed asset in all asset-related entries, including:
With the implementation of the Tax Configuration and the discontinuation of fields from the SF4 table, as documented in the CFGTRIB - Fields that Remain in the TES - Microsiga Protheus Line - TDN, it was necessary to develop a new parameter to define the value of the Fixed Asset in the Purchases x Fixed Asset Integration, along with a new concept for this value definition.
Problem
Currently, the default content of the MV_VLRATF parameter is as follows:
(SD1->D1_TOTAL - SD1->D1_VALDESC) + IIf(SF4->F4_CREDIPI == "S", 0, SD1->D1_VALIPI) - IIf(SF4->F4_CREDICM == "S", SD1->D1_VALICM, 0)
However, the use of fields from the SF4 table, such as F4_CREDIPI and F4_CREDICM, will no longer be allowed, as these fields will be discontinued with the implementation of the Tax Configuration.
Solution
Given this, it became necessary to adopt a new concept to define the value of a fixed asset.
New parameter: MV_VLATFCT
Name | MV_VLATFCT |
Description | Defines the value of the fixed asset according to the Tax Configuration. |
Type | Character |
Default | Empty (Blanck) |
This parameter will have a partly similar behavior to the MV_VLRATF parameter, but it will only be functional for fields in the SD1 table.
In other words, the parameter will allow a formula to be used to define the asset's value based exclusively on the fields in the SD1 table.
Example:
How the New Mechanism Works
With the result of this formula, the asset's value will be updated.
From this updated value, the system will internally verify whether the Entry Invoice that is generating the Asset has taxes to be calculated by the Tax Configuration, that is, whether the D1_IDTRIB field is filled in.
If taxes are defined, they can be added to, subtracted from, or have no impact on the value of the fixed asset, as established in the Cost rule of the Tax Document Calculation Rule.
Cost Rule x Fixed Asset
In the Tax Configuration, you can define the Cost operation within the Tax Document Calculation Rule.
The available options for this operation are:
OPERATION
The functionality for the Operation parameter will only be available from release 12.1.2410 onwards.
To configure it, go to: Tax Configuration → Inventory/Cost Rules → Cost Rule.
Example Registrations:
Linking the Cost to the Tax Document Calculation Rule:
Functionality
With the value of the fixed asset updated through the execution of the formula defined in the MV_VLATFCT parameter, the calculation rules configured at the time of Entry Document inclusion, if they have a defined Cost operation, will adjust this value according to the chosen operation:
Practical Example
Base formula (MV_VLATFCT):
(SD1->D1_TOTAL - SD1->D1_VALDESC)
Values used:
Step-by-step calculation:
1,000.00 – 100.00 = 900.00
900.00 – 120.00 = 780.00
Final result: The value of the fixed asset will be R$ 780.00.