Skip to content

[ENH] Add abs() function to tracker calculations

For the task: https://avan.tech/item100037

  • [ENH] Add abs() function to tracker calculations

Implemented the abs() function for tracker field calculations in Tiki. This change allows users to compute the absolute value of numeric fields in their tracker calculations.

Changes include:

  • Added Abs.php to lib/core/Formula/Function to define the new abs() function.
  • Updated Currency.php to integrate the abs() function where necessary.
  • Modified Applicator.php to support the parsing and execution of the abs() function in formulas.

These changes enhance the flexibility and functionality of tracker field calculations by enabling absolute value computations.

Merge request reports