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

In salary rules I can get worked days by value:

worked_days.WORK100.number_of_days

How to get number of days for leaves "Sick Leaves", "Legal Leaves" and other leave types that has more than one word?

Because this would not work:

worked_days.Sick Leaves.number_of_days 
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

yes Emad Jaddou, I know that it works when you have one word but leaves and payslips that has leaves included in its lines are as documents, so it would be better to have it with names that was given to leaves. The solution with quotes does not work. To have it as a variable:

leaveName = "Sick Leaves"
worked_days.leaveName.number_of_days

also does not work.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

best thing is to name them as one word, this should work as I tried that. It is possible also if you add quotes "" but I have not tried that.

worked_days.SickLeaves.number_of_days  
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 20
3367
2
thg 7 25
3673
1
thg 7 25
2858
0
thg 12 24
1566
0
thg 12 23
1415