Commit Graph

256 Commits

Author SHA1 Message Date
Amritanshu Agrawal da9d58025c Fix: Reports should now take the Timezone Offset into consideration 2021-06-26 08:49:26 +05:30
Amritanshu Agrawal 567fb836b3 Fix: Kots should be sorted by date as a relationship of the voucher. This was causing them to appear in random order in sales. 2021-06-22 05:34:02 +05:30
Amritanshu Agrawal 1c222872d2 Fix: Inactive Menu Categories should not show up in sales.
Trying to better cache dockerfile
2021-06-21 12:37:49 +05:30
Amritanshu Agrawal 5d5439ae3b Version Bump v9.3.5 2021-06-21 12:04:59 +05:30
Amritanshu Agrawal 4530a183c9 Fix: KOT Printing time was wrong. It showed the voucher time instead of kot time. 2021-06-21 12:04:02 +05:30
Amritanshu Agrawal 7795f5ebef Version Bump v9.3.4 2021-06-21 10:48:19 +05:30
Amritanshu Agrawal 27205f7790 Feature: Allow password change 2021-06-21 10:45:45 +05:30
Amritanshu Agrawal 6e284de75b Version Bump v9.3.3 2021-06-19 12:32:41 +05:30
Amritanshu Agrawal 41431829f0 Version Bump v9.3.2 2021-06-19 10:51:48 +05:30
Amritanshu Agrawal b47715bc22 Chore: Updated dependencies
Chore: Added the set -e command to deploy so that it quits on errors
2021-06-19 10:51:37 +05:30
Amritanshu Agrawal 70d76f9951 Version Bump v9.3.1 2021-06-19 08:20:09 +05:30
Amritanshu Agrawal d14250c0c7 Fix: Voucher Update would not filter out Zero quantity inventories. 2021-06-19 08:19:48 +05:30
Amritanshu Agrawal 7cf6775ea1 Version Bump v9.3.0 2021-06-14 07:40:56 +05:30
Amritanshu Agrawal d9a6c5d20f Fix: Open bill regex and the data sent by front-end was not compatible. 2021-06-14 07:40:43 +05:30
Amritanshu Agrawal 83aa47b33a Version Bump v9.2.9 2021-06-13 18:40:03 +05:30
Amritanshu Agrawal 66e541d50b Fix: Permission on Print Sale Report 2021-06-13 18:39:55 +05:30
Amritanshu Agrawal 9961f2c3a1 Version Bump v9.2.8 2021-06-13 18:05:07 +05:30
Amritanshu Agrawal 1f516e75e6 Version Bump v9.2.7 2021-06-13 17:59:13 +05:30
Amritanshu Agrawal defba7636c Version Bump v9.2.6 2021-06-13 17:54:46 +05:30
Amritanshu Agrawal e1b824dce5 Version Bump v9.2.5 2021-04-27 07:23:47 +05:30
Amritanshu Agrawal f78ad68235 Fix: The route to update sort order of Menu Categories was not written. 2021-04-27 07:22:32 +05:30
Amritanshu Agrawal 59bab991fd Version Bump v9.2.4 2021-04-24 09:10:37 +05:30
Amritanshu Agrawal 87402871a5 Version Bump v9.2.3 2021-04-24 00:47:41 +05:30
Amritanshu Agrawal 74e67a98e6 Fix: Editing printed bill will also print the new kot (if any) 2021-04-24 00:45:14 +05:30
Amritanshu Agrawal e144175fe0 Version Bump v9.2.2 2021-04-24 00:06:33 +05:30
Amritanshu Agrawal e66716710a Fix: Checking for product reductions would check the product version id and not the product id resulting in wrong error message that the quantitity cannot be reduced. 2021-04-24 00:05:06 +05:30
Amritanshu Agrawal 76b27417d4 Chore: Updated dependencies 2021-04-23 13:17:14 +05:30
Amritanshu Agrawal a29e9b8789 Version Bump v9.2.1 2021-04-23 01:00:59 +05:30
Amritanshu Agrawal 2b22d6c4b5 Feature: When a new product is added, it adds modifiers which apply to the whole menu category. 2021-04-23 01:00:35 +05:30
Amritanshu Agrawal 35a431d37e Fix: Do not store timezone in database. I am using UTC everywhere and use of timezones messes up date comparison. 2021-04-23 00:58:24 +05:30
Amritanshu Agrawal 581d9ca507 Version Bump v9.2.0 2021-04-17 14:33:50 +05:30
Amritanshu Agrawal 12f63cec73 Fix: Bill when printed was mangling up the taxes and amounts massively.
This was when we would make a dictionary of inventories and update quantities.
2021-04-17 14:32:55 +05:30
Amritanshu Agrawal 2612da063b Version Bump v9.1.3 2021-04-15 20:13:20 +05:30
Amritanshu Agrawal 438e99b6b0 Fix: Section Printer update would keep adding multiple default rows.
Fix: Kot select printer would have 1-2 rows, one with the null menu category and another (maybe) with the correct menu category.
2021-04-15 20:12:52 +05:30
Amritanshu Agrawal 862892d7a1 Version Bump v9.1.2 2021-04-12 09:02:53 +05:30
Amritanshu Agrawal d92cd295e1 Fix: Product list would not show as MenuCategoryLink needs list of products 2021-04-12 09:01:46 +05:30
Amritanshu Agrawal 0477fde460 Version Bump v9.1.1 2021-04-10 08:57:43 +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 ac0b8d2565 Version Bump v9.1.0 2021-04-09 09:34:37 +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 c0a4956fd4 Version Bump v9.0.5 2021-04-06 09:33:39 +05:30
Amritanshu Agrawal b9c3b7eda5 Fix: Running tables view was showing wrong datetime. 2021-04-06 09:33:12 +05:30
Amritanshu Agrawal 32c74c65fc Version Bump v9.0.4 2021-04-06 08:51:17 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal 823808d402 Version Bump v9.0.3 2021-04-05 08:21:31 +05:30
Amritanshu Agrawal 54d205eebe Fix: Printer edit shows the proper hex values in printer edit and import the right hex value from old database 2021-04-05 08:20:45 +05:30
Amritanshu Agrawal e1ed264674 Version Bump v9.0.2 2021-04-02 18:53:56 +05:30
Amritanshu Agrawal 91451eebc9 Feature: Guestbook phone autosearch also searches names. 2021-04-02 18:52:22 +05:30
Amritanshu Agrawal 78dcd6b92a Version Bump v9.0.1 2021-04-02 18:30:58 +05:30
Amritanshu Agrawal 4c867138e2 Fix: Kots had the wrong time. 2021-04-02 18:30:42 +05:30
Amritanshu Agrawal c3df28eb64 Version Bump v9.0.0 2021-04-02 14:34:38 +05:30
Amritanshu Agrawal 73850560aa Customer discount with prefill discount in sales. 2021-04-02 14:34:07 +05:30
Amritanshu Agrawal faf83f9356 Version Bump v8.2.0 2021-04-02 07:00:16 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal 0da16e9548 Feature: Added the customer module to list / edit customers. This is needed to add the customer discount functionality 2021-04-02 06:34:31 +05:30
Amritanshu Agrawal 214c40fbde Version Bump v8.1.0 2021-03-26 08:55:20 +05:30
Amritanshu Agrawal d5b4dfeaca Feature: The guestbook now autocompletes on phone number 2021-03-26 08:54:31 +05:30
Amritanshu Agrawal 095f4fe473 Fix: Reprint was not physically printing the bill. 2021-03-26 07:19:57 +05:30
Amritanshu Agrawal 7ff546a442 Removed dangling file 2021-03-26 07:19:34 +05:30
Amritanshu Agrawal 11600de3a8 Version Bump v8.0.0 2021-03-24 01:47:04 +05:30
Amritanshu Agrawal 0b30ce258c Version Bump v7.3.0 2021-03-20 08:06:20 +05:30
Amritanshu Agrawal 0775d12271 Version Bump v7.2.0 2021-03-19 08:06:54 +05:30
Amritanshu Agrawal c29fde0cb0 Printer Cut Code should be properly handled now in editing as well.
Worker will retry a failed job.
The worker was using the wrong queue name.
2021-03-19 08:06:37 +05:30
Amritanshu Agrawal dc6e7fe467 Version Bump v7.1.2 2021-03-19 06:55:32 +05:30
Amritanshu Agrawal 592f26af20 Fix: The server was also using the worker settings to communicate with redis.
This led to it using the default host and port as the backend .env files do not contain worker settings.
2021-03-19 06:54:55 +05:30
Amritanshu Agrawal e99b8f3070 Version Bump v7.1.1 2021-03-18 21:04:09 +05:30
Amritanshu Agrawal e8d178a248 Fix: ORM Borked when models were split into their own files and product could not find this relation 2021-03-18 18:03:28 +05:30
Amritanshu Agrawal 088982c6d4 Printer import now assigns the cut code for TM-m30
Also, hard-coding of the cut string is removed.
Now need to see how it will be handled in update printer
2021-03-18 17:52:54 +05:30
Amritanshu Agrawal 30685e10a8 Version Bump v7.1.0 2021-03-18 07:12:55 +05:30
Amritanshu Agrawal 4257db020d Version Bump v7.0.0 2021-03-17 10:02:17 +05:30
Amritanshu Agrawal d851714136 Printing working now. The env file for the worker needs to know the printer name.
Then, the address can be used to print the data.
2021-03-17 09:43:19 +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 716c74c974 Version Bump v6.3.0 2020-12-25 11:47:35 +05:30
Amritanshu Agrawal 6257313792 Version Bump v6.2.0 2020-12-24 12:59:44 +05:30
Amritanshu Agrawal 161896154d Feature: Open bill using bill number 2020-12-24 12:58:46 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal 7550ced477 Version Bump v6.1.5 2020-12-21 11:24:42 +05:30
Amritanshu Agrawal b85e930ace Moved all auth schemas into their own files. Updated imports. 2020-12-21 11:18:58 +05:30
Amritanshu Agrawal c6da3b9e38 Version Bump v6.1.4 2020-12-21 08:03:15 +05:30
Amritanshu Agrawal 4386ee45b8 Fix: Add Tax was not working as TaxIn required a name with length more than 1. 2020-12-21 08:02:36 +05:30
Amritanshu Agrawal f65c19ce1a Version Bump v6.1.3 2020-12-20 08:05:21 +05:30
Amritanshu Agrawal 9b55d037f2 Fixed: Add new modifier category error 2020-12-20 08:04:53 +05:30
Amritanshu Agrawal 4e3362c614 Version Bump v6.1.2 2020-12-19 10:43:03 +05:30
Amritanshu Agrawal 7bd46a946e Version Bump v6.1.1 2020-12-19 09:09:51 +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 36915b41c1 Version Bump v6.1.0 2020-12-18 13:25:34 +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 608dde4619 Fix: Modifier Category was borking as it was sending the product version id instead of product id in modifier category info 2020-12-18 12:53:08 +05:30
Amritanshu Agrawal 63f5871350 Version Bump v6.0.0 2020-12-16 22:40:36 +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 28952402aa Fix: Loaded voucher was not showing H H name in Happy Hour products 2020-12-16 12:28:39 +05:30
Amritanshu Agrawal 02e208cd4e Version Bump v5.4.0 2020-12-16 11:50:23 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal e229ecefa2 Version Bump v5.3.1 2020-12-15 22:40:24 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal 5a73387404 Version Bump v5.3.0 2020-12-14 18:27:10 +05:30
Amritanshu Agrawal 4f5ba47d46 Added the docker files and ansible playbooks for two instances namely pkl and chd. 2020-12-14 17:58:00 +05:30
Amritanshu Agrawal 294f53147f Version Bump: v5.2.0 2020-12-13 13:20:46 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal 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