Commit Graph
60 Commits
Author SHA1 Message Date
tanshu e0ef5e7b64 Fix: Rounding error prevented some bills from getting settled. This is related to the half even rounding in python. 2021-06-26 08:45:24 +05:30
tanshu 12a361aff1 Fix: Could not print bill if discount permission not allowed 2021-06-13 17:54:04 +05:30
tanshu 4e827c2bd0 Feature: Added ability to change / choose pax once the table is running. 2021-04-09 09:33:53 +05:30
tanshu 07d13898c3 Fix: Dates in old imported data should be at UTC time.
Fix: Use utc now for dates to have consistent dates across timezones.
2021-04-06 08:50:37 +05:30
tanshu 73850560aa Customer discount with prefill discount in sales. 2021-04-02 14:34:07 +05:30
tanshu 97579ea9d3 Dates and times should now be handled properly once the server is set on UTC time and the proper timezone offset environment variable is set. 2021-04-02 06:58:38 +05:30
tanshu 47381527c2 Feature: Added feature to click a name in receive payment to fill in the amount in that column 2021-03-26 07:20:51 +05:30
tanshu 669821a643 Using Half-Round-Even rounding in the bill amounts as this is what python round uses.
When the bill amounts were Odd number + .5, payment could not be received as javascript rounded it up, but python rounded it down.
We are now using the python rounding (Half Round Even / Banker's Rounding) in the bill service.
2021-03-20 08:05:50 +05:30
tanshu 41d4ef1200 Added feature: Split bill by Sales Category if no item is selected. 2020-12-25 11:47:03 +05:30
tanshu 161896154d Feature: Open bill using bill number 2020-12-24 12:58:46 +05:30
tanshu 98c75f66c9 Fix: Cancel bill printing if discount dialog is cancelled. 2020-12-24 09:26:34 +05:30
tanshu 7b327b4fda Feature: Discount will only update the sale types which have been updated in the form. 2020-12-24 09:26:05 +05:30
tanshu 565cffaef1 Fix: Kot move fixed. Kot id was missing on move. Also, voucher_type KOT as truthy not and would give bill not found error. 2020-12-24 09:10:55 +05:30
tanshu 8bb6235e67 Fix: Receive Payment
Since the amount Behaviour Subject pipe was not being subscribed to
and the original Behaviour Subject as being subscribed,
 amountVal was not being populated. Now it will be.
This was creating problem where amount in receive payment was always 0
Added a check in the backend so that if any part of bill remains unsettled, it will give an error instead of silently accepting and removing the entry.
2020-12-19 09:09:10 +05:30
tanshu b70b01b726 Back to table / product group order changed to have the back button in the beginning
The bill now highlights the happy hour products.
2020-12-18 13:24:50 +05:30
tanshu f28cf1eea0 Split bill working along with all checks.
Update bill ensures that the total number of happy hour punches of a product in a bill are less than or equal to the regular punches
2020-12-18 13:24:05 +05:30
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 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 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 b583b90756 Fully working with the rule no explicit any 2020-11-25 09:27:42 +05:30
tanshu f7b4b29d3a Fix: Bill Type was not being shown properly 2020-11-22 23:20:43 +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 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 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 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 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 fdfd3dcbfb Added: Alembic for migrations
Moving from Pyramid to FastAPI
2020-06-14 18:43:10 +05:30
Amritanshu 0c0a2990a8 In case of a table with no guest, it will ask for pax 2019-08-26 15:11:28 +05:30
Amritanshu a12f093828 Renamed void_reason to reason so that we can store the employee name in case of Staff and NC reason in case of NC bills.
Settling NC and Staff bills now asks for Staff name / NC reason
2019-08-25 23:22:50 +05:30
Amritanshu 05860fb0b9 Added nav-bar to show home link and user status 2019-08-22 14:15:02 +05:30
Amritanshu 04fb6dfcab Fix: Move table was checking !x instead of !!x and so was not working
Added checks to void bill, split bill and move table
2019-08-21 17:02:06 +05:30
Amritanshu 461db9d8fa Fix: Wrong permission of sales 2019-08-21 15:40:46 +05:30
Amritanshu 2c0c91b136 Modifiers popup not scrolling fixed 2019-08-21 15:39:01 +05:30
Amritanshu 5603c5d8fb Fix: Product units 2019-08-21 14:27:11 +05:30
Amritanshu fd1111f378 Display units in Sale / Product and don't show brackets when no units entered 2019-08-21 14:13:53 +05:30
Amritanshu 70d31fea5e Feature: Sale Analysis is working
Fix: Cashier Checkout multiple entries
2019-08-20 23:02:42 +05:30
Amritanshu 29850e367e Fix: Sales was not working as it was checking the wrong permission
Fix: Type in title of cashier checkout html
Fix: Import was adding everthing to first user as initially users were not being imported
2019-08-20 00:12:01 +05:30
Amritanshu 55ec2f8763 Fix: get_bill_id now skips the 10000th number so that it displays properly in our system
Bill now shows the bill details on the top

Started adding checks for disabled features during sales.
2019-08-18 22:05:33 +05:30
Amritanshu e697631cd4 Move / Merge KOT Done.
We need to check if it is the only kot and raise an error if it is.
Split Bill Done
2019-08-18 17:05:27 +05:30
Amritanshu dcaf23b390 Tax is added directly to product for sale
Auth guard and auth service simplified and fixed so that user is updated upon login
Home component changed to use square buttons
Fixed showing the totals in the bill

ng linted the project
2019-08-11 01:37:14 +05:30
Amritanshu d7fdf751b9 Made the voucher calls more readable 2019-08-10 19:43:35 +05:30