TRTFAS script: TRTFAS
TRTFAS - Modification of the standard calculation for the VAT deduction coeff.
The TVACOEDEDUC entry point is used to replace the standard calculation for the VAT deduction coefficient with a specific calculation.
Context and operating mode
The input parameters are:
PASJCOE Liability coefficient
PTAXCOE Taxation coefficient
PADMCOE Admission coefficient
RDEDCOE contains the calculated VAT deduction coefficient. This coefficient can therefore be calculated in a specific way with the information available on entry.
SKPALWCTL - Skipping depreciation method STD control - specific rule
The SKPALWCTL entry point is used to skip the standard control that checks the validity of the specific rules applied to depreciation methods.
At the moment, a blocking control exists for all countries <> "FR".
Context and operating mode
Transaction block
There is one transaction in progress.
Call context
The entry point is located in the CONTROLE_METHOD() sub-program of the TRTFAS script, right before the validity control for specific rules performed against the depreciation method of each plan and against the country of the asset's company.
Available variables and masks
The [L] SKIP_CTL local variable is available. By default, this variable is initialized to 1 before the call to the SKPALWCTL entry point.
To prevent the standard control from being performed, the value of this variable must be modified in specific (value <>1).
Open masks
Mask |
Significant content |
Table Title |
METH [METH] |
Yes |
All the values of the depreciation plan and of the asset. |
|
|
|
|
|
|
|
|
|
UPDHEADAT - Modification of the accounting date of a sales invoice header
The UPDHEADAT entry point is used to modify the WHEADAT variable and
the WHEABPRDAT variable that will respectively load the SINVOICE [HEA] table, the ACCDAT field and the BPRDAT field.
In standard mode, the WHEADAT and WHEABPRDAT variables are loaded with the fixed asset disposal date.
Context and operating mode
Transaction block
There is one transaction in progress.
Call context
The entry point is located in the CRE_HEADER_BIC() subprogram of the TRTFAS script, just after loading the WHEADAT and WHEABPRDAT variables with the fixed asset disposal date.
Available variables and masks
- WHEADAT will contain the date that will then load the [F:HEA]ACCDAT accounting date in the SINVOICE table
- WHEABPRDAT will contain the date that will then load the [F:HEA]BPRDAT source date in the SINVOICE table
Open masks
Mask |
Significant content |
Table Title |
FASISSP [FASS] |
Yes |
All the values of the fields used for the asset disposal. |
|
|
|
|
|
|
|
|
|
UPDLINDAT - Modification of the accounting date of a sales invoice line
The UPDLINDAT entry point is used to modify the WHEADAT variable that must be set to the date set against the UPDHEADAT entry point.
In standard mode, the WHEADAT variable is loaded with the fixed asset disposal date.
Context and operating mode
Transaction block
There is one transaction in progress.
Call context
The entry point is located in the CRE_LINES_BIC() subprogram of the TRTFAS script, just after loading the WHEADAT variable with the fixed asset disposal date.
Available variables and masks
The WHEADAT variable will contain the date used to search the entry number and to run a chronological control based on the last assigned number.
Open masks
Mask/Tables |
Significant content? |
Content |
Mask FASISSP [FASS] |
Yes |
All the values of the fields used for the asset disposal. |
GTYPACCENT [GTE] table |
|
|
|
|
|
|
|
|