Hello,
I wanna add (with code) a INT field to User to set "Weight in Sales Distribution", with a value between 0 and 100.
And I wanna add (with code) a CHECKBOX field to Teams to set "This team uses Weight of User".
Logic: 1) I'll get the "This team uses Weight of User", if TRUE, I'll get all users and the value of "Weight in Sales Distribution". 2) I'll sum all and get the weight to send more leads to one user or other user.
With Layout Manager and Entities I've solved, but I wanna do it with code.
Anyone know how to do this in code?
I wanna add (with code) a INT field to User to set "Weight in Sales Distribution", with a value between 0 and 100.
And I wanna add (with code) a CHECKBOX field to Teams to set "This team uses Weight of User".
Logic: 1) I'll get the "This team uses Weight of User", if TRUE, I'll get all users and the value of "Weight in Sales Distribution". 2) I'll sum all and get the weight to send more leads to one user or other user.
With Layout Manager and Entities I've solved, but I wanna do it with code.
Anyone know how to do this in code?
Comment