VAR-ANULCALCAM Configuration
=============================

Purpose:
This directory configures a system variable named ANULCALCAM that stores the current year
(optionally adjusted by a delta offset) in the TOTAL.VARSETARE table during ERP initialization.

Files:
------
- var-anulcalcam.ref: Reference file that copies the Groovy script and properties from misc/Scripts/varsetare-year
- varsetareref.properties: Configuration properties for this variable

Configuration Properties:
-------------------------
Required:
  VARIABLE_NAME=ANULCALCAM
    The name of the variable to store in TOTAL.VARSETARE

Optional:
  DELTA=<number>
    Numeric offset to add to the current year (default: 0)
    Example: DELTA=5 will store year+5

  explicatie=<text>
    Description/explanation stored in TOTAL.VARSETARE.EXPLICATIE field (default: empty)
    Example: explicatie=Calendar year for calculation

  type_numeric=true|false
    If 'true', stores value as numeric (TOTAL.VARSETARE numeric column) (default: false)
    If 'false' or omitted, stores value as character string
    Example: type_numeric=true

How It Works:
-------------
1. The varsetareref.properties file is loaded at runtime
2. VarsetareYear.groovy script reads VARIABLE_NAME from properties
3. Current year is retrieved and DELTA is applied (if configured)
4. Value is saved to TOTAL.VARSETARE using the appropriate remote service method
5. Explanation is updated if explicatie property is provided

Example Configurations:
-----------------------
# Store current year as character (default)
VARIABLE_NAME=ANULCALCAM

# Store current year as numeric
VARIABLE_NAME=ANULCALCAM
type_numeric=true

# With explanation and delta
VARIABLE_NAME=ANULCALCAM
DELTA=0
explicatie=Calendar year for calculation
