Mini-Inventory-and-Sales-Management-System icon indicating copy to clipboard operation
Mini-Inventory-and-Sales-Management-System copied to clipboard

The available quantity is always 0 for users of type 'basic', even though the quantity is not 0 in admin.

Open asok44 opened this issue 2 years ago • 3 comments

inbentory

asok44 avatar Mar 14 '23 16:03 asok44

same problem here. Haven't found the cause yet.

RBReif avatar Apr 07 '23 19:04 RBReif

Demo website is same problem too, @amirsanni

turboenator avatar Jul 27 '24 08:07 turboenator

I may have found the cause, it's the superOnly() function in libraries/Genlib.php that prevents access if the user is not logged in or the role is not "Super" for Items. If you want "available quantity" to work with "Basic" type users, you can temporarily disable the code: $this->genlib->superOnly(); by adding // before //$this->genlib->superOnly(); in controllers/Items.php (around line 18) And find another way to prevent access if user is not logged in or role is not "Super" can Add New Item

turboenator avatar Aug 09 '24 02:08 turboenator