Simplified some permissions
Renamed Accounts Audit to Audit Renamed Machines to Devices as it made sense Sections and Tables are now under Sections Permission Guest Book is now under Customers Permission Renamed Beer Consumption Report to Beer Sale Report Fix: Move Kot and Table to check what the final effect is
This commit is contained in:
@ -34,7 +34,6 @@ docker run -it -v /home/tanshu/Programming/csv:/mnt --link postgres:db --rm --en
|
||||
docker run -it -v /home/tanshu/Programming/csv:/mnt --link postgres:db --rm --env PGPASSWORD="123456" postgres:alpine bash -c 'psql -h db -U postgres petty -c "\copy reprints(id, user_id, date, voucher_id) from /mnt/u-Reprints.csv"'
|
||||
docker run -it -v /home/tanshu/Programming/csv:/mnt --link postgres:db --rm --env PGPASSWORD="123456" postgres:alpine bash -c 'psql -h db -U postgres petty -c "\copy settings(id, name, data) from /mnt/v-Settings.csv"'
|
||||
docker run -it -v /home/tanshu/Programming/csv:/mnt --link postgres:db --rm --env PGPASSWORD="123456" postgres:alpine bash -c 'psql -h db -U postgres petty -c "\copy settlements(id, voucher_id, settled, amount) from /mnt/w-VoucherSettlements.csv"'
|
||||
docker run -it -v /home/tanshu/Programming/csv:/mnt --link postgres:db --rm --env PGPASSWORD="123456" postgres:alpine bash -c 'psql -h db -U postgres petty < /mnt/z-RenamePermissions.sql'
|
||||
|
||||
# Show the file in code to see the hidden chars
|
||||
# od -t c ~/Programming/csv/n-Printers.csv
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user