hello congratulations...great job can you help me put some rules in the system? 1 - a seller cannot see or delete Purchase Order of other sellers, when logging in he can only see and edit his orders, if its status is pending or canceled, if approved the PO can no longer be deleted or edited. 2 - each user can only view, edit or delete their purchase orders. thanks
@@alojhelynjoyv.9864 because in that area the function being called is "delete_rent" but it should be calling "delete_po". Eg line 91 on /admin/purchase_orders/index.php says $(document).ready(function(){ $('.delete_data').click(function(){ _conf("Are you sure to delete this rent permanently?","delete_rent",[$(this).attr('data-id')]) }) but it should be $(document).ready(function(){ $('.delete_data').click(function(){ _conf("Are you sure to delete this purchase order permanently?","delete_po",[$(this).attr('data-id')]) }) the function delete_po is in \purchase_order\classes\Master.php