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
This commit is contained in:
Amritanshu
2019-08-25 15:08:59 +05:30
parent 05860fb0b9
commit 6d0f30503a
98 changed files with 527 additions and 1079 deletions

View File

@ -0,0 +1,9 @@
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;