В оригинальном описании сущностей встречаются подобные конструкции:
"amountWeightedConverted": {
"type": "float",
"readOnly": true,
"notStorable": true,
"select": "opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100",
"where": {
"=": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) = {value}",
"<": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) < {value}",
">": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) > {value}",
"<=": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) <= {value}",
">=": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) >= {value}",
"<>": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) <> {value}"
},
"orderBy": "amountWeightedConverted {direction}",
"view": "views/fields/currency-converted"
},
Можно чуть подробнее про формат описания вычислимых полей?
"amountWeightedConverted": {
"type": "float",
"readOnly": true,
"notStorable": true,
"select": "opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100",
"where": {
"=": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) = {value}",
"<": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) < {value}",
">": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) > {value}",
"<=": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) <= {value}",
">=": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) >= {value}",
"<>": "(opportunity.amount * amount_currency_alias.rate * opportunity.probability / 100) <> {value}"
},
"orderBy": "amountWeightedConverted {direction}",
"view": "views/fields/currency-converted"
},
Можно чуть подробнее про формат описания вычислимых полей?
Comment