Commit Graph
72 Commits
Author SHA1 Message Date
tanshu 6c83c74424 Chore: In overlord / sale / bill.service now the BillViewItem is just a view item
The data is kept as the original bill object and this view generated on every change. It has no sanctity.

To deal with the challenges of Selection of items in the bill.component.html created a bill selection item.
This is converted to string while checking else the selection model fails.

Feature: It now checks if Happy Hour items have equivalent regular items in each kot.
Feature: Discount won't apply to happy hour items.
Checks for both are both in front end and back end.
2020-12-16 22:34:41 +05:30
tanshu 28952402aa Fix: Loaded voucher was not showing H H name in Happy Hour products 2020-12-16 12:28:39 +05:30
tanshu 02e208cd4e Version Bump v5.4.0 2020-12-16 11:50:23 +05:30
tanshu e4500f0d46 Breaking: Discount is applicable on sale category and not on menu category
Fix the import, etc on this.
While entering discount in sale, it checks the max allowed.
2020-12-16 11:49:22 +05:30
tanshu e229ecefa2 Version Bump v5.3.1 2020-12-15 22:40:24 +05:30
tanshu 22de4f7624 Fix: Reports were not working as they were not adapted to the new Enums
Fix: The docker image borked on printing as it did not have the en_IN locale
Fix: Angular errored as it needed typescript < 4.1.0
Fix: chd yml had a typo in host name
2020-12-15 22:15:51 +05:30
tanshu 5a73387404 Version Bump v5.3.0 2020-12-14 18:27:10 +05:30
tanshu 4f5ba47d46 Added the docker files and ansible playbooks for two instances namely pkl and chd. 2020-12-14 17:58:00 +05:30
tanshu 294f53147f Version Bump: v5.2.0 2020-12-13 13:20:46 +05:30
tanshu afc58d566c Fix: Permissions for header-footer.
The persission Owner is only for Settle Option and Header / Footer
2020-12-13 13:19:42 +05:30
tanshu 3ad73dff1c Feature: Now a tax can be broken up into multiple components while bill printing.
This is especially for GST. The format for the tax name is
"Display name 1 (Ratio eg. 1/2) ; Display name 1 (Ratio eg. 1/2)"
eg.
"SGST on Food @ 2.5% (1/2) ; CGST on Food @ 2.5% (1/2)"
or
"UTGST on Food @ 2.5% (1/2) ; CGST on Food @ 2.5% (1/2)"

Feature:
All report printing now uses local aware number formatting for Indian locale.
2020-12-13 13:14:19 +05:30
tanshu 27aa4d12a6 Settle Options are now stored in the Database and can be updated 2020-12-13 09:45:24 +05:30
tanshu d65379a068 Chore: ng lint using the recommended @angular-eslint style 2020-12-08 18:50:46 +05:30
tanshu 130d9197e5 Version bump v5.1.0 2020-11-25 12:39:05 +05:30
tanshu e16e1822b8 Fix: Modifier Categories was not showing the names of Menu Categories in Modifier Category Detail Component. This was because the Menu Category Link had only the id field.
Took this time to improve the Modifier route.
2020-11-25 12:38:22 +05:30
tanshu d9e0397b21 Version bump v5.1.0 2020-11-25 10:07:26 +05:30
tanshu b583b90756 Fully working with the rule no explicit any 2020-11-25 09:27:42 +05:30
tanshu 84535ca9bb Version bump to v5.0.2 2020-11-22 23:21:54 +05:30
tanshu f7b4b29d3a Fix: Bill Type was not being shown properly 2020-11-22 23:20:43 +05:30
tanshu e8ae39cd7a Fix: Angular won't compile as it requires typescript < 4.1.0 2020-11-22 10:58:18 +05:30
tanshu 3f49bea039 Version Bump to v5.0.0 2020-11-22 10:14:51 +05:30
tanshu 6567f560ab Updated to angular 11
Now compiling with strict mode in typescript
Need to error checking now
2020-11-22 10:13:37 +05:30
tanshu cabd6f2ea1 Version bump v4.3.0 2020-11-15 13:00:58 +05:30
tanshu 88f5b26948 Import marks inactive products as valid till one day before import 2020-11-15 12:58:12 +05:30
tanshu 163b40e9e5 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
2020-11-15 12:26:24 +05:30
tanshu aead1f1b36 Version bump to v4.2.0 2020-11-13 13:24:55 +05:30
tanshu 2dd9f7d962 Guest book now shows table status and link to open table 2020-11-13 13:23:34 +05:30
tanshu ef1ee35b65 Version Bump v4.1.1 2020-11-13 09:35:33 +05:30
tanshu 67cb1e3d80 Fix: Save/Update voucher - timedelta was days instead of minutes
Fix: Product list for sale was sending product_version_id instead of version_id this was borking on products with multiple versions
Change: Update Product Prices initially does not show list. Only the date and Menu Category List
2020-11-13 09:34:49 +05:30
tanshu 9317150bde Version Bump v4.1.0 2020-11-12 12:33:26 +05:30
tanshu 5e180f48d5 Update Product Prices built 2020-11-12 12:32:16 +05:30
tanshu d5b2da4388 Product updates report. 2020-11-11 12:18:10 +05:30
tanshu 6f9394dc8d Chore: Start and Finish date in reports extracted to function 2020-11-11 10:09:07 +05:30
tanshu 8db9a7d757 Header / Footer editor added - Right now linked to products permission, which should be changed 2020-11-11 09:56:16 +05:30
tanshu 77fb8e8428 Did not add the docker entrypoint file
v4.0.1
2020-11-10 13:36:54 +05:30
tanshu de1b199da0 Version bump to v4.0.0 due to temporal products 2020-11-10 12:46:32 +05:30
tanshu de235f3d9e Product should now be fixed.
Need to allow later editing now.
2020-11-10 11:47:25 +05:30
tanshu a92726f5e6 Product list / detail / router fully working.
Need to test the sale / reports
2020-11-09 12:44:27 +05:30
tanshu 4aaa3fc72b Import data also adds all permissions to owner role 2020-11-08 20:01:27 +05:30
tanshu 94b63e4385 Product List and Query working 2020-11-08 19:09:31 +05:30
tanshu 0c9ebd29d7 Initial setup for temporal products table.
Updated the model and the data import.
Now for all the routers and then update products
2020-11-07 21:09:58 +05:30
tanshu 9ea143d233 version bump
v3.1.0
2020-10-29 07:46:11 +05:30
tanshu 4108040cdd new tag v3.1.0
Fix:
  Company references left after the field was removed
2020-10-29 07:32:04 +05:30
tanshu 969b774a25 Fixed Worker 2020-10-28 11:02:35 +05:30
tanshu f1a360a4ea Removed product_group_modifier import 2020-10-28 02:18:33 +05:30
tanshu 1e69c8eeeb Importing now working
except u-product_group_modifier. It does not fit in the new scheme. Will remove in next commit so that it is added to log if needed later.
2020-10-28 02:16:55 +05:30
tanshu f8683cf080 Devices have replaced Clients for authentication as well as location using sections.
Printing of reports done.
Main section is now a fixture

User and Devices list gives last login details.
2020-10-27 16:59:24 +05:30
tanshu cbc2f29e29 Bump to version 3.0.0
Printing done on:
 Cashier Report
 Discount Report
 Sale Report
2020-10-27 12:13:17 +05:30
tanshu 00fe2410b7 blacked, isorted, flake8ed and moved to arq/redis from celery/rabbitmq 2020-10-24 11:53:12 +05:30
tanshu 1d6baa9d1d fix: Worker command 2020-10-14 09:29:44 +05:30
tanshu fc6eebed19 Infrastructure to build the worker docker and run it. 2020-10-14 08:19:42 +05:30
tanshu 99f5f09c17 Bump to v2.0.0 2020-10-11 21:02:51 +05:30
tanshu b7f382cac8 Bill change should be working
Reduce quantity should be working.
2020-10-11 20:53:43 +05:30
tanshu 73f83f1aa7 Show proper error messages on Save Bill / Save Kot 2020-10-11 11:59:37 +05:30
tanshu 7baf79c3fa Fix: ValueErrors should be HTTPException 2020-10-11 11:20:12 +05:30
tanshu 9ecf0b5cc9 Display frontend / backend version at the homescreen 2020-10-11 11:13:06 +05:30
tanshu d677cfb1ea Blacked and isorted the python files
Prettied and eslinted the typescript/html files
2020-10-11 10:56:29 +05:30
tanshu b31db593c2 Updated to angular 10
Moved to eslint for linting
Added prettier for formatting
Fixed minor errors
2020-10-11 09:34:35 +05:30
tanshu 066d43a373 Moved barker one level down and using poetry for setup 2020-10-11 09:06:51 +05:30
tanshu 3f2a06c2cf Feature:
Print kot and print bill are working now using celery

Now also need to install RabbitMQ for clery to work
2020-10-01 11:43:43 +05:30
tanshu aaac5efea2 Feature:
Basic infra to print stuff, not working
2020-09-29 11:18:24 +05:30
tanshu 046504e097 Ported:
Change (Reprint bill)

Chore:
  Refactored save voucher so that the save function can be reused in change voucher route

Fix:
  Show voucher sent modifiers in a wrong format
  Inventory schema used rate instead of price
2020-09-29 11:03:03 +05:30
tanshu f8778fee74 Ported:
Split bill done - TODO: If the products have different price due to paid modifiers
2020-09-28 08:09:38 +05:30
tanshu cf34c2b855 Ported:
Table Merge/Move and Kot Merge/Move
2020-09-25 08:50:39 +05:30
tanshu bf09471e9e Fix:
Discount button was greyed out due to wrong check.
  Show was sending customer as empty dictionary which triggered an error in input as id was a required column
2020-09-24 09:18:58 +05:30
tanshu 578385f866 Chore:
Deduplicated the settle options function for save/update/void/receive payment

Ported:
  Void
  Receive payment
2020-09-24 08:47:09 +05:30
tanshu 6c06271315 Ported:
Guest Book
  Save bill
  Update bill
  Show bill

Fix:
  Tax details was sending the rate multiplied by 100 but not dividing it on save/update

Feature:
  Updated the auth service to check local storage for the latest user token
2020-09-24 07:39:46 +05:30
tanshu b19d8cc030 Ported:
Guest Book

Chore:
  Added New Day Offset and Timezone Offset in settings so that they can be shared consistently and also set in runtime.
2020-09-22 10:53:31 +05:30
tanshu cabdd505e0 Ported:
Customer
  Device
  Role
  Settings
2020-09-22 08:12:41 +05:30
tanshu 7b6c09cea3 All Reports done!! 2020-06-17 09:57:41 +05:30
tanshu 938bb67e0a All Masters Done!! 2020-06-15 21:40:12 +05:30
tanshu fdfd3dcbfb Added: Alembic for migrations
Moving from Pyramid to FastAPI
2020-06-14 18:43:10 +05:30