Commit Graph

39 Commits

Author SHA1 Message Date
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
4a12ee0834 Allow editing of product version with the right permission. 2021-09-04 12:52:05 +05:30
db5f2731be Feature: Added a column called print in bill to the table customer.
This will prevent printing all customer's names and phone numbers in the bill in case of simple walkins.
This is a breaking change as there is schema changes in the database.
It also bolds the customers who are to be printed in the bill in the running tables list.
2021-06-28 08:41:32 +05:30
73850560aa Customer discount with prefill discount in sales. 2021-04-02 14:34:07 +05:30
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
b85e930ace Moved all auth schemas into their own files. Updated imports. 2020-12-21 11:18:58 +05:30
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
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
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
27aa4d12a6 Settle Options are now stored in the Database and can be updated 2020-12-13 09:45:24 +05:30
d65379a068 Chore: ng lint using the recommended @angular-eslint style 2020-12-08 18:50:46 +05:30
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
b583b90756 Fully working with the rule no explicit any 2020-11-25 09:27:42 +05:30
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
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
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
9ecf0b5cc9 Display frontend / backend version at the homescreen 2020-10-11 11:13:06 +05:30
d677cfb1ea Blacked and isorted the python files
Prettied and eslinted the typescript/html files
2020-10-11 10:56:29 +05:30
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
938bb67e0a All Masters Done!! 2020-06-15 21:40:12 +05:30
fdfd3dcbfb Added: Alembic for migrations
Moving from Pyramid to FastAPI
2020-06-14 18:43:10 +05:30
Amritanshu
2474e3ef25 Fixed a few errors which showed up when ng build --prod was used
Removed the loading bar component as it was giving build troubles and can be added back later
Added the HttpClientModule import to app.module without which it will not run
2019-08-19 17:50:04 +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
2fcff26e34 Move Table with confirm 2019-08-10 17:22:25 +05:30
Amritanshu
7d06a2f961 Save Bill Works 2019-07-13 21:32:18 +05:30
Amritanshu
bcad4cdae3 No automatic signout
Voucher basic working
running tables shifted to cards from buttons, this gives us immense styling oportunities
2019-07-12 12:36:38 +05:30
Amritanshu
4513e8b263 Bills initially working just as proof of concept
ng linted
modifier categories list is better at displaying data sanely now
2019-07-11 12:17:41 +05:30
Amritanshu
d69ab0063a Big Chunk of updates on way to making the sales portion working 2019-07-06 13:46:18 +05:30
Amritanshu
7b08fe611f Feature:
SectionPrinter is now working
Migration:
Section, Printers, SectionPrinters working
2019-06-25 16:44:59 +05:30
Amritanshu
142a0f5a8a Section 2019-06-23 19:29:33 +05:30
Amritanshu
20801afc8a Removed IsModifierCompulsory from MenuCategory as it is now not needed and minimum in ModifierCategory set to non-zero to achieve the same.
Fix: DiscountLimit was not scaled to 100 in MenuCategory detail. So it is now chaled in the json and scaled back in the frontend for the list as that was not supposed to be scaled.
Feature: Modifier is now done
Fix: In product save, it was checking menu_category second time again instead of sale_category
2019-06-22 08:49:33 +05:30
Amritanshu
e1c42d4470 Modifier Category table added as a parent of modifiers
They are also linked to products / menu categroies as to which products they can be used on
The linking to menu categories is done in the frontend, database is linked directly to products
Treeview for menu categories yet to be done in modifier category detail form
2019-06-20 17:45:28 +05:30
Amritanshu
05f8058a15 Product Group renamed to Menu Category
Extracted Product Group -> Group_type to a a new object called Sale Category.
Moved tax from product to Sale Category for uniform taxes on types of sales.
2019-06-20 13:15:23 +05:30
Amritanshu
93743bdc8e Users 2019-06-20 00:17:44 +05:30
Amritanshu
63f5f60842 Still in progress 2019-06-17 13:23:00 +05:30
Amritanshu
52e978b3b0 Product Group 2019-06-16 10:14:10 +05:30
Amritanshu
459ab244ff Tax done 2019-06-15 23:09:43 +05:30
Amritanshu
5093bdc391 Tables List and Detail working
TODO: Save SortOrder also, Drag and Drop ordering
2019-06-14 09:28:30 +05:30
Amritanshu
d59c60e81d Initial commit for the Angular part. We are nowhere yet. 2019-06-14 00:32:34 +05:30