Commit Graph

18 Commits

Author SHA1 Message Date
Amritanshu Agrawal c13047e812 Fix: Check if moved/merged kots could lead to negative products of a situation where happy hour products were more than regular products.
Case:
  Kot 1:
    Beer Mug => 2 regular, 2 happy hour
  Kot 2:
    Beer Mug => 2 Regular
  Kot 3:
    Beer Mug => -2 Regular

Then move Kot 2 to new table would leave the voucher with 2 hh and 0 regular
Also, just move did not check if products were going negative.
2023-03-24 10:17:06 +05:30
Amritanshu Agrawal 56ae7500cc Feature: Allow bills without items so that tables can be seated from the guest book.
Feature: Allow guest book entries to be associated with running vouchers
Feature: Allow removing customer from voucher
2023-03-24 09:09:13 +05:30
Amritanshu Agrawal 47afb7e29c Always ensure that a "KOT" Bill Number was generated even if the bill was straight printed. 2023-03-24 08:44:48 +05:30
Amritanshu Agrawal e46fe7f90e Feature: Tax Regimes are added so that different bills with different series can be printed for Different regimes such as VAT and GST
Chore: Model relationships updated to make them simpler
Chore: Bill printing majorly refactored for it

Due to the sheer depth of the changes. There can be showstoppers. Please test it carefully
2023-03-05 23:50:41 +05:30
Amritanshu Agrawal 5c7985e392 Chore:
Moved to sqlalchemy 2.0
Added type checking as much as possible
Updated angular to 15
Moved from Angular flex layout to tailwind css

Started developing on vscode with devcontainers
2023-02-20 18:49:17 +05:30
Amritanshu Agrawal 61bb62475b Chore: Updated dependencies and moved to Python 3.10 method of type hinting 2022-06-21 08:41:57 +05:30
Amritanshu Agrawal 9c0936e772 Fix: Didn't convert a few queries to 2.0 format. Caught some error with mypy, but don't know if that approach is usable. 2021-04-10 08:57:04 +05:30
Amritanshu Agrawal 978f0fcdff Chore: Move to sqlalchemy 2.0 querying style using the future flags on sqlalchemy 1.4 2021-04-09 09:31:36 +05:30
Amritanshu Agrawal ea2bfb1c0c Chore: Moved individual models into their own files.
Chore: Updated dependencies.
2021-03-17 09:39:56 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal 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
Amritanshu Agrawal 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
Amritanshu Agrawal 27aa4d12a6 Settle Options are now stored in the Database and can be updated 2020-12-13 09:45:24 +05:30
Amritanshu Agrawal 00fe2410b7 blacked, isorted, flake8ed and moved to arq/redis from celery/rabbitmq 2020-10-24 11:53:12 +05:30
Amritanshu Agrawal b7f382cac8 Bill change should be working
Reduce quantity should be working.
2020-10-11 20:53:43 +05:30
Amritanshu Agrawal 7baf79c3fa Fix: ValueErrors should be HTTPException 2020-10-11 11:20:12 +05:30
Amritanshu Agrawal d677cfb1ea Blacked and isorted the python files
Prettied and eslinted the typescript/html files
2020-10-11 10:56:29 +05:30
Amritanshu Agrawal 066d43a373 Moved barker one level down and using poetry for setup 2020-10-11 09:06:51 +05:30