FCY_FILTER: Additional filter on the sites.

This FCY_FILTER entry point is used to complete the standard filter made on the document line table in order to take into account the postings in the VAT declaration on debits program.

Context and operating method

Transaction

There is no transaction in process.

Log file

There is an open log file.

Call context

This entry point is called for each company concerned by the declaration, in the site table.

Available variables and masks

Depending on the content of the GFONCTION variable, the DCLVATFRA or DCLVATBEL mask is available and contains the release parameters of the function. The GFONCTION variable is initialized to DCLVATFRA or DCLVATBEL depending on whether it is a French or Belgian VAT declaration/debits.

The OPT local variable contains the value of the DCLVATDAT parameter.

The COMPANY [CPY] and TABCUR [TCU] tables are open and contain the company being processed as well as the currency of the main general ledger.