The COMPANY [CPY] and TABCUR [TCU] tables are open and contain the company being processed as well as the currency used.
This DAE3FILTRE entry point is used to complete the standard filter made on the document line table to take into account the unmatched postings in the VAT declaration on cash receipts program.
There is one transaction in progress.
There is an open log file.
This entry point is called at the end of a company's VAT declaration on collection processing in order to process the unmatched postings.
The [L]DAE3FILTRE variable is used to enter the selection criterion. The condition is evaluated in the company accounting document lines loop for which the amount of the declared VAT is reset to zero.
The DCLVAT mask is available and contains the release parameters of the function.
Variable or mask | Definition |
DCLVATOTH [DIA] Mask | VAT declaration |
Char DAE3FILTRE(250) | Filter |
SOC char | Company |
Char SITE | Site |
Char GTYPGEN | Main General Ledger |
Date DATDEB | Matching start date |
Date DATFIN | Matching end date |
Char TTYP(1..NBTYP) | Variable table containing the document types to be taken into account in the VAT declaration on collection. |
Table | Significant content | Table title |
COMPANY | X | Companies |
TABCUR | X | Currency table |
FACILITY |
| Sites |
This entry point is used to insert additional logic just before the posting to the temporary DCLVAT table in order to modify the value of certain fields in the table or to initialize specific/custom fields that have been added.
The DCLVAT table is used by the VAT declaration on debit report.
There is one transaction in progress.
There is an open log file.
This entry point is called immediately before posting to the temporary table DCLVAT [DVL]. Two ‘Write [DVP]’ are made in the VAT declaration on debits program.
A record used for the storage of selection criteria (only the fields CPY, STRDAT, ENDDAT, SIM, OPTDAT and NUMRPT are entered
A record used for recording the declaration.
The DCLVATOTH mask is available and contains the function release parameters.
Open tables
Table | Significant content | Table title |
COMPANY | X | Companies |
TABCUR | X | Currency table |
FACILITY |
| Sites |
DCLVATPAY | X | Temporary VAT declaration on collection table |
This entry point is used to take over in the VAT declaration on collection program to exclude certain entries when reading the entries belonging to the matching group.
Transaction
There is one transaction in progress.
Log fileThere is an open log file.
Different call casesThis entry point is called during the read of entry lines of the document belonging to the matching group being processed. The read is carried out on the GACCENTRYD table open with the [DAE2] abbreviation. This entry point is used to exclude certain entry lines from the standard program that loads into the variable grids the bases and VAT amounts that must be taken into account by the VAT declaration on collections.
The OK_DAE2 variable is set to 1 in standard before calling the entry point. If this variable is reset to zero in the specific program, the entry will not be taken into account.
Available variables and masksThe DCLVATOTH mask is available and contains the function release parameters.
Open tables
Table | Significant content | Table title |
COMPANY | X | Companies |
TABCUR | X | Currency table |
FACILITY |
| Sites |
DCLVATPAY | X | Temporary VAT declaration on collection table |