Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6297 Lượt xem

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
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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
Ảnh đại diện
Huỷ bỏ
Tác giả

It works. Thanks!

Thanks! This works.

ya it works thank u.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 24
2113
5
thg 1 24
17057
1
thg 3 15
6033
8
thg 2 24
12965
1
thg 3 15
4921