跳至內容
選單
此問題已被標幟
1 回覆
6274 瀏覽次數

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
2091
5
1月 24
17043
1
3月 15
6028
8
2月 24
12951
1
3月 15
4918