[IMP] accounting: subformulas for aggregation engine in custom reports

f39862263c
introduced two new subformulas for aggregations, but they were still
missing in the doc.

closes odoo/documentation#4559

X-original-commit: de095cc4ad
Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
This commit is contained in:
oco-odoo 2023-05-25 12:34:29 +00:00 committed by Jonathan Castillo (jcs)
parent 7fbd316fb1
commit 748fa168dd

View File

@ -160,6 +160,16 @@ expression's **label** (ex. **code.label**).
The value of the arithmetic expression will be returned only if it is strictly between the
provided bounds. Otherwise, it will be brought back to the closest bound.
`if_other_expr_above(LINE_CODE.EXPRESSION_LABEL, CUR(amount))`
The value of the arithmetic expression will be returned only if the value of the expression
denoted by the provided line code and expression label is greater than the provided bound.
Otherwise, the result will be `0`.
`if_other_expr_below(LINE_CODE.EXPRESSION_LABEL, CUR(amount))`
The value of the arithmetic expression will be returned only if the value of the expression
denoted by the provided line code and expression label is lower than the provided bound.
Otherwise, the result will be `0`.
`CUR` is the currency code in capital letters, and `amount` is the amount of the bound expressed in
that currency.