Dear all,
Thanks for reading this topic. I have 3 locations, I set 3 users manage 3 stock. But salesman at this location can sell products from others location (They click at "Deliver from Location:" and change Location and sell) I can not control. I thought over about that and had 2 ways.
1. I lock drop list of Deliver from Location. And they can not sales at another location.
2.    There are 2 cases:
        + If they have permission, (they can transfer Items) a "Inventory Item Status" windows appear. They can transfer Items if they want. It will be recorded at history.
        + If they don't have permission,  a "Inventory Item Status" windows appear. a notice displays and said contact with administrator.
Can you help me to resolve it?

Dear joe and others,
Thanks for all your help. In cash Sale Invoice or (Sales Quotation Entry, Sales Order Entry, Direct Delivery ,Direct Invoice ), I want to block "Deliver from Location:" for user I set up. How can I do?
I create 3 users, I assign to 3 Locations. When user login, "Deliver from Location:" is assigned for him. But I don't want them edit or change.
Can you help me. I don't want salesman of this Location sell products from other location.
Thanks so much!

Dear joe,
Thanks for all your help. In cash Sale Invoice or (Sales Quotation Entry, Sales Order Entry, Direct Delivery ,Direct Invoice ), I want to block "Deliver from Location:" for user I set up. How can I do?
I create 3 users, I assign to 3 Locations. When user login, "Deliver from Location:" is assigned for him. But I don't want them edit or change.
Can you help me. I don't want salesman of this Location sell products from other location.
Thanks so much!

First of all,
Thanks administrators and all people can help me about this software. My English is not good, so if I get some mistake, plz don't laugh me!


foreach ($module->lappfunctions as $appfunction)
{
   if ($appfunction->label== "")
       echo "<div class='empty'>&nbsp;<br></div>\n";
   elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
      {
         $lnk = access_string($appfunction->label);
          echo "<div><a class='$class' href='$appfunction->link'$lnk[1]> $img $lnk[0]</a><br></div>\n";
       }
}

I Want to change the sentenses to Images, I want to fix all the functions by Image, and if the User login but can't Access I change another Imagers.

I tried to do that:
1- In Head Function: for example
switch ($sel_app)
{

case "orders":
  //Show the Images for Sales (I Sprit it for link)
.......

}
2- In Display Function
I Want to change foreach() ---> to Switch() and per function, I put an Image. If user can Access, user can Click Link, else I put other image.

Who can help me!