opensourcepos / opensourcepos

Open Source Point of Sale is a web based point of sale application written in PHP using CodeIgniter framework. It uses MySQL as the data back end and has a Bootstrap 3 based user interface.

Home Page:http://www.opensourcepos.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

suspended sale by x employee,,, when unsuspended by admin, the sale (employee changes to admin)

hoststatic opened this issue · comments

I have an issue where there are 3 employees - an admin with an employee ID of 1, and two other employees. Currently, if another employee suspends a sale and then the admin unsuspends it, the sale is saved with the admin as the user, not the employee who originally suspended it.

Is there a way to change this behavior? I would like the admin to be able to "unsuspend as admin" multiple suspended sales from multiple employees in some scenarios, but keep the original suspending employee attached to each sale. How can I achieve this?

Thank you in advance for any help fixing this issue.

solved, added a rule in the register to check url if it contained sales/suspend to change the button and call the new version of compelete() from sales controller