İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6304 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

It works. Thanks!

Thanks! This works.

ya it works thank u.

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eki 24
2116
5
Oca 24
17068
1
Mar 15
6033
8
Şub 24
12966
1
Mar 15
4923