barker/DB/z-RenamePermissions.sql
Amritanshu 6d0f30503a Renamed Report permissions to make more sense
Removed the void and reprints report and added it to the bill settlement report
updated the import to add a new sql to be executed later to update the settlements and report permission names
Export works on all reports
2019-08-25 15:08:59 +05:30

9 lines
801 B
SQL

update permissions set name = 'Beer Consumption Report' where name = 'Beer Consumption';
update permissions set name = 'Bill Settlement Report' where name = 'Bill Details';
update permissions set name = 'Cashier Report' where name = 'Cashier Checkout';
update permissions set name = 'Product Sale Report' where name = 'Sales Detail';
update permissions set name = 'Sale Report' where name = 'Sales Analysis';
update permissions set name = 'Tax Report' where name = 'Tax Analysis';
delete from role_permissions where permission_id = (select id from permissions where name = 'Void or Reprinted Bill Report');
delete from permissions where name = 'Void or Reprinted Bill Report';
update settlements as s set settled = 9 from vouchers v where v.id = s.voucher_id and v.voucher_type = 5 and s.settled = 1;