Skip to content

Commit de095cc

Browse files
oco-odoojcs-odoo
authored andcommitted
[IMP] accounting: subformulas for aggregation engine in custom reports
odoo/enterprise@f398622 introduced two new subformulas for aggregations, but they were still missing in the doc. closes #4537 Signed-off-by: Castillo Jonathan (jcs) <[email protected]>
1 parent 32a2258 commit de095cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/applications/finance/accounting/reporting/customize.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,16 @@ expression's **label** (ex. **code.label**).
160160
The value of the arithmetic expression will be returned only if it is strictly between the
161161
provided bounds. Otherwise, it will be brought back to the closest bound.
162162

163+
`if_other_expr_above(LINE_CODE.EXPRESSION_LABEL, CUR(amount))`
164+
The value of the arithmetic expression will be returned only if the value of the expression
165+
denoted by the provided line code and expression label is greater than the provided bound.
166+
Otherwise, the result will be `0`.
167+
168+
`if_other_expr_below(LINE_CODE.EXPRESSION_LABEL, CUR(amount))`
169+
The value of the arithmetic expression will be returned only if the value of the expression
170+
denoted by the provided line code and expression label is lower than the provided bound.
171+
Otherwise, the result will be `0`.
172+
163173
`CUR` is the currency code in capital letters, and `amount` is the amount of the bound expressed in
164174
that currency.
165175

0 commit comments

Comments
 (0)