Commit Graph
100 Commits
Author SHA1 Message Date
tanshu 5534b3983d Moved back from devcontainer to normal as ubuntu now has python 3.11 2023-07-20 06:59:32 +05:30
tanshu e685941804 Version Bump v11.5.0 2023-04-09 15:43:00 +05:30
tanshu 8bc7d66123 Fix: Prevent creation of customer with blank name when adding a guest book item.
Fix: Also prevent creation of customer with blank phone number when adding a guest book.
Feature: Show the old bill of a customer in guest book
Fix: In reprint, allow changing of customer
Chore: Updated dependencies
2023-04-09 15:42:32 +05:30
tanshu 302ed4a18f Version Bump v11.4.2 2023-03-24 12:46:54 +05:30
tanshu 2fb2e01ca1 Feature: Allow edit of time in guest book.
Feature: Guest book row color is the same as running table colors
2023-03-24 12:46:42 +05:30
tanshu 94cc8ccd47 Version Bump v11.4.1 2023-03-24 10:17:16 +05:30
tanshu 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
tanshu 5c697dd43a Version Bump v11.4.0 2023-03-24 09:10:20 +05:30
tanshu 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
tanshu 1b4c26733d Chore: Refactor nil inventories and kots checking 2023-03-24 08:49:19 +05:30
tanshu 88bda14002 Fix: Typo 2023-03-24 08:48:33 +05:30
tanshu 7a8017087b Fix: Update pax if changed
Fix: Tax was associated with inventory, not just tax_id so that if along with adding an inventory, the bill is printed then it can be used to get regime information.
Chore: Refactored checking for nil inventory and kots.
2023-03-24 08:48:18 +05:30
tanshu 1297a4e7d2 Cancel VoucherType was added 2023-03-24 08:45:52 +05:30
tanshu 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
tanshu 4db26722a3 Fix: Debugging was left in the report 2023-03-24 08:43:54 +05:30
tanshu b2db7e8f9c Version Bump v11.3.3 2023-03-19 23:08:22 +05:30
tanshu f6deea265c Fix: Error is checking length of bills 2023-03-19 23:08:14 +05:30
tanshu f1d145e76f Version Bump v11.3.2 2023-03-19 23:05:00 +05:30
tanshu 22f61427b0 Fix: Cashier report was only showing the last amount of aggregate items.
When it was not added to info, the amount also got reset to 0

Feature: Disabled total slip for single bills
2023-03-19 22:44:38 +05:30
tanshu f9fc6dba0d Version Bump v11.3.1 2023-03-19 14:43:45 +05:30
tanshu e56a753053 Fix: Users without ability of edit printed products where not able to set quantity to zero in the bill 2023-03-19 14:43:40 +05:30
tanshu 03918fee80 Version Bump v11.3.0 2023-03-19 09:56:58 +05:30
tanshu c14e64ce85 Feature: The menu engineering report now recalculates the percentages based on filter 2023-03-19 09:56:48 +05:30
tanshu 4e4cebf5d4 Chore: Moved the formatting to the main style sheet because it was used everywhere.
Also, moved to sass to get theme colors from the material design library
2023-03-18 23:29:10 +05:30
tanshu d39712a347 Feature: Made a Menu Engineering Report 2023-03-18 23:20:11 +05:30
tanshu 40a357edc8 Version Bump v11.2.0 2023-03-17 10:18:40 +05:30
tanshu 1a08066c2d Feature: Cancelled bills are now separate from void bills.
Void bills are automatically generated when printed bills are changed.
Manually cancelled bills are called cancelled bills.
2023-03-17 08:27:30 +05:30
tanshu a62018ad1f Version Bump v11.1.2 2023-03-14 13:27:40 +05:30
tanshu da46591313 Fix: Happy hour product button color was being overwritten by the face color 2023-03-14 13:27:05 +05:30
tanshu a1ccf973cd Version Bump v11.1.1 2023-03-14 00:15:50 +05:30
tanshu 65700d2760 Fix: Date was not updated when the bill was printed. 2023-03-14 00:15:35 +05:30
tanshu 77c7b167ef Version Bump v11.1.0 2023-03-13 23:52:56 +05:30
tanshu efa2af396d Chore: Moved from css to sass, god knows what to do now.
Chore: Prettier line length changed to 120 from 100
Fix: Hard coded the face as the primary color to make the buttons stand out
2023-03-13 23:52:44 +05:30
tanshu b021861ba3 Version Bump v11.0.2 2023-03-13 21:22:24 +05:30
tanshu 245937ecf2 Fix: The dialogs were not rendering properly.
The select table dialog was long and narrow.
The billtype was selection was also not showing properly.
2023-03-13 21:22:07 +05:30
tanshu 3af0b0ac96 Version Bump v11.0.1 2023-03-13 20:40:10 +05:30
tanshu 4fffdd85d6 Fix: Merge table did not delete the old bills and fucked up.
Fix: Bill settlement report was not in order
2023-03-13 20:38:55 +05:30
tanshu 7da9212cf7 Version Bump v11.0.0 2023-03-13 11:11:42 +05:30
tanshu 0f1660ef5a Fix: Regime was stripping the whitespaces from header 2023-03-06 22:02:21 +05:30
tanshu 7d0874093c Fix: New Product did not work due to missing quantity is the schema
Fix: New Product would not auto add modifiers
2023-03-06 21:42:09 +05:30
tanshu 516b22ed1c Refactored customer discount and choose discount. They were using the same schema unnecessarily which was leading to confusion. 2023-03-06 21:04:44 +05:30
tanshu c5eaeb1497 Fix: Receive payment did not show display reason 2023-03-06 10:35:17 +05:30
tanshu f408e84af3 Added traceback to save voucher to better understand why an error occurs. 2023-03-06 10:21:27 +05:30
tanshu 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
tanshu 802eded568 Due to update to sqlalchemy, fixed schema nullability 2023-02-26 19:51:29 +05:30
tanshu 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
tanshu 792ccf923f Chore:
Upgraded to Angular 14
2022-07-06 09:04:10 +05:30
tanshu f637f01954 Version Bump v10.3.3 2022-06-21 12:40:35 +05:30
tanshu 236c746e1c Fix: Suddenly got errors saying that the redis.enqueue job was running in a different loop 2022-06-21 12:39:51 +05:30
tanshu a4db3b24f0 Version Bump v10.3.2 2022-06-21 08:54:51 +05:30
tanshu 9f4ec3697c Fix: Frank service changed to beacon from knox 2022-06-21 08:54:45 +05:30
tanshu 9fe84800a7 Chore: Dockerfile also updated 2022-06-21 08:53:37 +05:30
tanshu f73de53d21 Version Bump v10.3.1 2022-06-21 08:44:58 +05:30
tanshu e37d160b7c Fix: Square brackets made the expression a list and the next generator would not work on it 2022-06-21 08:44:00 +05:30
tanshu 61bb62475b Chore: Updated dependencies and moved to Python 3.10 method of type hinting 2022-06-21 08:41:57 +05:30
tanshu 2f1f9eee1f Version Bump v10.3.0 2022-04-26 09:07:07 +05:30
tanshu f9124abb6c Moved ssh and redis tunneling from knox to beacon 2022-04-26 09:03:10 +05:30
tanshu 09a8fdfecc Chore: some mypy fixes 2022-04-26 08:59:42 +05:30
tanshu 7a2ccb7fb1 Fix: Sale Report won't add sales of printed but yet unsettled bills to Category wise sale. 2022-04-26 08:47:55 +05:30
tanshu 1eccd7f9d5 Version Bump v10.2.2 2022-04-16 17:29:49 +05:30
tanshu a213c1a0b5 Added: Process id to log.
Added: Max workers to all .envs
Added: Leardall service
Added: beacon redis tunnel
2022-04-16 17:28:00 +05:30
tanshu 1a8992c296 Version Bump v10.2.1 2022-04-16 08:44:24 +05:30
tanshu 676719917a Fix: Wrong parameter to gunicorn run. This as anyway a bit of trial and error 2022-04-16 08:44:17 +05:30
tanshu 1071b57484 Version Bump v10.2.0 2022-04-16 07:59:48 +05:30
tanshu 3eaf4cd41d Using gunicorn to run upto 4 workers. This should fix the problems of the whole program crashing. 2022-04-16 07:57:18 +05:30
tanshu c494284517 Linting broke for v10+ as the regex only matched one digit 2022-04-03 07:32:35 +05:30
tanshu 34ced063a1 Version Bump v10.1.1 2022-04-03 07:31:38 +05:30
tanshu 59f47e046b Version Bump v10.1.0 2022-04-03 07:31:27 +05:30
tanshu 54c797d1a8 Set strict mode on the scripts 2022-04-03 07:27:12 +05:30
tanshu d43aab0b23 Chore: Updated linter changed this. 2022-04-03 07:26:40 +05:30
tanshu 1f1a9a13cd Chore: Update dependencies
Version Bump v10.1.0
2022-04-02 10:00:31 +05:30
tanshu d9d5754e26 Removed async as I suspect it was crashing the entire application. 2022-04-02 09:59:26 +05:30
tanshu a174f6b847 Fix: Product sale report would mix different product versions as it was checking the product id and not version id
Feature: Cannot add na product to bill
2021-12-29 07:49:23 +05:30
tanshu 1a4e51051c Version Bump v10.0.0 2021-10-29 08:06:35 +05:30
tanshu ee7a24fa77 Minor cleanup 2021-10-29 08:06:23 +05:30
tanshu ef9e28c95b Docker: Updated the dockerfile and deploy script to better use docker cacheing 2021-10-28 09:55:09 +05:30
tanshu 0837aebfb8 Chore: Updated dependencies 2021-10-27 10:30:57 +05:30
tanshu 124cf4d9ff Fix: Username unique index was case sensitive and this allowed duplicate names.
Feature: Moved temporal products into their own module and reverted the products module
2021-10-27 09:27:47 +05:30
tanshu debe0df7b7 Chore: Fix import of Observable to be from rxjs and not rxjs/internal. It was maybe causing optimization bailouts 2021-09-20 09:30:00 +05:30
tanshu 5ff954deb6 Fix: Customers with no discount wouldn't show properly in sale / select customer 2021-09-20 09:16:54 +05:30
tanshu b70a296d8b Version Bump v9.8.0 2021-09-19 22:42:38 +05:30
tanshu 6379e5f4e3 Choose / Edit / Create customers during billing. 2021-09-19 22:42:27 +05:30
tanshu c478290da0 Added the public keys of knox and buttercup as well
Disabled password logins to harden the system
2021-09-13 10:03:07 +05:30
tanshu 5bea488181 Allow the renaming of the main section by temporal product permission.
Allow deleting sections which do not have tables, but have associated section printers.
2021-09-04 13:14:27 +05:30
tanshu 63dfe05044 Chore: Changed the Section Printer from Menu Categories to Sale Categories. This is more logical, in the older software, there as no concept of sale categories so menu categories was used.
This should make the whole thing much easier to update and read.
2021-09-04 12:57:56 +05:30
tanshu 4a12ee0834 Allow editing of product version with the right permission. 2021-09-04 12:52:05 +05:30
tanshu f929a731cb Feature: In the Beer Sale Report, you can choose the type of consumption
Chore: Sorted the product sale report by name
Fix: Voided bills now also include the old bill number
2021-08-17 07:37:17 +05:30
tanshu 1515c33e7b arq is right now not compatible with aioredis 2.0.0 So pinning the aioredis to 1.3.1 for the time being 2021-08-10 11:38:44 +05:30
tanshu beae4a07c6 Fix: Update Product Prices was one was used instead of all in query. 2021-08-10 09:31:08 +05:30
tanshu 1ef7f98a07 Version Bump v9.6.0 2021-08-10 07:50:28 +05:30
tanshu 70c9d22bbc Fix: Void bill now saves old bill id 2021-08-10 07:50:08 +05:30
tanshu baefaeb228 Fix: Show would repeat the string n times instead of multiplying the integer 2021-08-09 23:07:04 +05:30
tanshu 5e0e99340e Fix: Beer Sale Report checking for wrong dates. 2021-08-09 21:02:51 +05:30
tanshu 5402d229f8 Fix: Product Sale Report would overwrite old value instead of adding to it in case the product had been updated and contained multiple product versions. 2021-08-07 17:03:16 +05:30
tanshu 2f440a4127 Feature: Sale Category also shows the products in it to make it easier to check for errors. 2021-08-06 08:23:36 +05:30
tanshu 0b3ec5da16 Fix: Product Detail / List would not show the quantity. 2021-08-06 08:20:18 +05:30
tanshu afa4fd4711 Fix: Import was not working as Customer Model changed and borked the initial commit of the database. Created a table in the function to remove dependence from the model.
Now poetry requires "poetry run" before commands to run them in the container. Updated for it.
2021-07-31 16:26:25 +05:30
tanshu eedc571ade Updated the docker and ansible files for setting up and building / running rasberry pi with the frank service
Still need to manually copy the new id_rsa created on the pi to knox.
2021-07-24 12:58:24 +05:30
tanshu 5cd0acc7a9 Feature: Added Happy Hour Discount in the bill display and changed Net amount to Gross Amount.
Changed the color of running / printed tables to a brighter colors.
2021-07-05 08:38:26 +05:30
tanshu c2483ae321 Fix: Edge cases where rounding due to changed quantities in printing was altering the final amount in decimals, at times resulted in final rounding to change up or down. 2021-07-05 08:28:38 +05:30