跳至内容
菜单
此问题已终结
1 回复
6352 查看

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.

相关帖文 回复 查看 活动
1
10月 24
2172
5
1月 24
17130
1
3月 15
6071
8
2月 24
13044
1
3月 15
4975