From 748fa168dd0991dd38495aa6a5e2a415d6f8f643 Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Thu, 25 May 2023 12:34:29 +0000 Subject: [PATCH] [IMP] accounting: subformulas for aggregation engine in custom reports https://github.com/odoo/enterprise/commit/f39862263c7e2332468a69736589a35d66d87b16 introduced two new subformulas for aggregations, but they were still missing in the doc. closes odoo/documentation#4559 X-original-commit: de095cc4add1378c6a638107d0ac8f4391a5824c Signed-off-by: Castillo Jonathan (jcs) --- .../finance/accounting/reporting/customize.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/applications/finance/accounting/reporting/customize.rst b/content/applications/finance/accounting/reporting/customize.rst index 075def90d..7ae55885b 100644 --- a/content/applications/finance/accounting/reporting/customize.rst +++ b/content/applications/finance/accounting/reporting/customize.rst @@ -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.