Script CPTSUB : CPTSUB
CALVACBPR: Choose tax rule
Use this entry point to choose a tax rule according to a customized algorithm.
Context and operating mode
Available variables
REGIME - The tax rule
Transaction
There is no database transaction in progress.
Log file
Depending on the context, a log file may or may not be open.
Detailed description
The entry point is called right at the beginning of the INIT_REGIME routine. Setting the REGIME variable to a desired tax rule stops the standard process and the desired tax rule is used instead.
CALPTEBPR: Manage payment terms
CALPTEBPR: Use this entry point to manage payment terms using a custom algorithm.
Context and operating method
Transaction
There is no database transaction in progress.
Log file
Depending on the context, a log file may or may not be open.
Code context
This entry point is called at the beginning of the INIT_CONDITIONS routine.
It allows overriding the standard payment term calculation logic with a custom algorithm.
To stop the standard process and apply custom logic, set the GPE variable to 1.
Available variables and masks
Variable | Description |
---|---|
GPE | Global variable. Set to 1 to stop the standard process and apply custom logic (default is 0) |
Open tables
No specific tables are opened by default. Table access depends on the custom logic implemented in the entry point.
CALCACBPR: Manage account codes
CALCACBPR: Use this entry point to manage account codes using a custom algorithm.
Context and operating method
Transaction
There is no database transaction in progress.
Log file
Depending on the context, a log file may or may not be open.
Code context
This entry point is called at the beginning of the INIT_COMPTE routine.
It allows overriding the standard account code logic with a custom algorithm.
To stop the standard process and apply custom logic, set the GPE variable to 1.
Available variables and masks
Variable | Description |
---|---|
GPE | Global variable. Set to 1 to stop the standard process and apply custom logic (default is 0) |
Open tables
No specific tables are opened by default. Table access depends on the custom logic implemented in the entry point.