Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6453 Представления

I know I can read the sum of all the rules in one category, like this

result = categories.CAT1+ categories.CAT2

But how do you read something like this?

result = rules.RUL1 + rules.RUL2
Аватар
Отменить
Лучший ответ

This behaviour is a little counter-intuitive. While you can get the cumulative value of rule categories from the categories dictionary, the rules dictionary contains only the hr.salary.rule objects themselves. To get the computed value of a rule you have to reference it directly by code:

result = RUL1 + RUL2
Аватар
Отменить
Автор

It works. Thanks!

Thanks! This works.

ya it works thank u.

Related Posts Ответы Просмотры Активность
1
окт. 24
2250
5
янв. 24
17218
1
мар. 15
6136
8
февр. 24
13165
1
мар. 15
5047