تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6257 أدوات العرض

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أكتوبر 24
2077
5
يناير 24
17016
1
مارس 15
6021
8
فبراير 24
12930
1
مارس 15
4888