Topic: Access setup: Edit one's own transactions

hi all,

there is Edit other users transactions which is very helpful. However, I want limit some users from editing their own transactions as well. How do I go about that?

Thanks in advance.

Re: Access setup: Edit one's own transactions

Sales Transactions Permissions:

Sales orders edition
Sales deliveries edition
Sales invoices edition

Re: Access setup: Edit one's own transactions

from which menu to Edit Sales Invoice or Direct invoice

Thanks in Advance

Re: Access setup: Edit one's own transactions

Read the Wiki.

Sales => Customer Transactions => Sales Invoices (Type) => Edit Icon.

Post's attachments

EditInvoice.png 49.2 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Access setup: Edit one's own transactions

I'm still not answered. If a user enters a transaction like customer payment, they can edit that transaction later. That is what I want to prevent.

Setup > Access Setup > Edit other users transactions helps block users from editing other users transactions. But how can I prevent a user from editing their own transactions (like customer payments)?

Please help, I really need this.

Re: Access setup: Edit one's own transactions

@davidkumi, you need to change the core as below

Paste the code below at Line 660 in includes\datachecks.inc

if (!$_SESSION['wa_current_user']->can_access('SA_EDITOWNRSTRANS'))
    {
        $audit = get_audit_trail_last($trans_type, $trans_no);

        if ($_SESSION['wa_current_user']->user == $audit['user'])
        {
            if (!$msg)
                $msg = '<b>'._("You have no edit access to transactions created by YOURSELF.").'</b>';
            display_note($msg);
            display_footer_exit();
        }
    }

Add the code below at Line 131 in includes/access_levels.inc

  'SA_EDITOWNTRANS' => array(SS_SPEC|7, _("Edit Own transactions")), 

Hope this works

www.boxygen.pk

Re: Access setup: Edit one's own transactions

@joe: This may be integrated into thec ore, but study it's ramifications on related entries / derived / child entries of such "owners".