Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6320 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 24
2152
How to delete Confirmed Salary Slip? แก้ไขแล้ว
5
ม.ค. 24
17099
1
มี.ค. 15
6054
8
ก.พ. 24
13009
1
มี.ค. 15
4956