Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6321 Visualizzazioni

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
Avatar
Abbandona
Risposta migliore

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
Avatar
Abbandona
Autore

It works. Thanks!

Thanks! This works.

ya it works thank u.

Post correlati Risposte Visualizzazioni Attività
1
ott 24
2152
5
gen 24
17099
1
mar 15
6054
8
feb 24
13009
1
mar 15
4956