I am using role permissions manager, but the role permission user doest not allow setting different settings for different types of journal vouchers separately.
On Wednesday, August 6, 2014 9:21:43 AM UTC+5, Sunil Kumar wrote:
Hi Asad,
Instead of setting properties on specific type of voucher, giving permission to the user through "Role permission manager" should solve your purpose.
(Setup > users & permission > Role permission manager)
I am using role permissions manager, but the role permission user doest
not allow setting different settings for different types of journal
vouchers separately.
On Wednesday, August 6, 2014 9:21:43 AM UTC+5, Sunil Kumar wrote:
Hi Asad,
Instead of setting properties on specific type of voucher, giving permission to the user through "Role permission manager" should solve your purpose.
(Setup > users & permission > Role permission manager)
Asad, That is not possible right unless you write a custom script.
On 06-Aug-2014, at 5:59 pm, Asad Hassan Larik <as...@gmail.com> wrote:
I am using role permissions manager, but the role permission user doest
not allow setting different settings for different types of journal
vouchers separately.
On Wednesday, August 6, 2014 9:21:43 AM UTC+5, Sunil Kumar wrote:
Hi Asad,
Instead of setting properties on specific type of voucher, giving permission to the user through "Role permission manager" should solve your purpose.
(Setup > users & permission > Role permission manager)
I have the same requirement. For me only Accounts Manager and Administrator should be able to save any type of Journal Voucher. The other roles can only save Credit or Debit notes.
I tried to solve the issue with this custom script:
cur_frm.cscript.custom_validate = function(doc) {
if (user_roles.indexOf("Accounts Manager")==-1 || user_roles.indexOf("Administrator")==-1) {
if (doc.voucher_type != "Debit Note" || doc.voucher.type != "Credit Note") {
msgprint("You can only select Debit Note or Credit Note");
validated = false;
}
}
}
But this is not working. No problem with an account having the Adminsitrator or Accounts Manager roles, but with other roles I get the warning message even if I chose Debit or Credit Note.