Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6340 Widoki

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
Awatar
Odrzuć
Najlepsza odpowiedź

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
Awatar
Odrzuć
Autor

It works. Thanks!

Thanks! This works.

ya it works thank u.

Powiązane posty Odpowiedzi Widoki Czynność
1
paź 24
2171
5
sty 24
17125
1
mar 15
6067
8
lut 24
13037
1
mar 15
4971