Commit Graph

256 Commits

Author SHA1 Message Date
Amritanshu Agrawal 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
Amritanshu Agrawal 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
Amritanshu Agrawal b19d8cc030 Ported:
Guest Book

Chore:
  Added New Day Offset and Timezone Offset in settings so that they can be shared consistently and also set in runtime.
2020-09-22 10:53:31 +05:30
Amritanshu Agrawal cabdd505e0 Ported:
Customer
  Device
  Role
  Settings
2020-09-22 08:12:41 +05:30
Amritanshu Agrawal 7b6c09cea3 All Reports done!! 2020-06-17 09:57:41 +05:30
Amritanshu Agrawal 938bb67e0a All Masters Done!! 2020-06-15 21:40:12 +05:30
Amritanshu Agrawal 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 6d0f30503a Renamed Report permissions to make more sense
Removed the void and reprints report and added it to the bill settlement report
updated the import to add a new sql to be executed later to update the settlements and report permission names
Export works on all reports
2019-08-25 15:08:59 +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 ee54e36dda Added routes for serving index.html for various routes.
Depreciated: Customers
TODO: Reprint, Setting, Change (ie. voucher void and reprint)
2019-08-21 16:16:46 +05:30
Amritanshu 992a6b6767 Fix: Checkout was broken 2019-08-21 14:37:46 +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 b898e26dc6 Added the final missing Voids or Reprints report aslo.
Ready for beta 1.
Removed voucher.is_void in favour voucher_type == void
2019-08-21 13:23:41 +05:30
Amritanshu 2b04b624b3 Discount Report Done 2019-08-21 12:31:52 +05:30
Amritanshu 8f6c5930ee Beer consumption report done 2019-08-21 11:12:30 +05:30
Amritanshu 243c3cb280 Bill Settlement Report Done (Bill Details)
TODO: Rename Bill Details Permission to Bill Settlement Report
2019-08-21 10:02:28 +05:30
Amritanshu 0f00d96dc9 Product Sale Module done (Sales Detail) -- need to rename the permission 2019-08-21 09:27:19 +05:30
Amritanshu 241568622e Feature: Tax Analysis 2019-08-21 08:32:12 +05:30
Amritanshu abc29844d3 Fixed a lot of permissions 2019-08-21 00:07:46 +05:30
Amritanshu 70d31fea5e Feature: Sale Analysis is working
Fix: Cashier Checkout multiple entries
2019-08-20 23:02:42 +05:30
Amritanshu 63c7a541dc Fix: Importing was messed up
Fix: Cashier checkout kept changing the date
2019-08-20 14:42:43 +05:30
Amritanshu f9e784b12f Cashier checkout should now work 2019-08-19 15:58:02 +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
Amritanshu 40a958a935 Void Bill Working 2019-08-10 18:49:05 +05:30
Amritanshu 2fcff26e34 Move Table with confirm 2019-08-10 17:22:25 +05:30
Amritanshu ff8f4ffb16 Receive payment working.
TODO: Nested subscribe in Receive Payment in sales-home-component.ts should be refactored into something more readable.
2019-08-09 14:55:38 +05:30
Amritanshu c81b92c336 Fix: import script to fit the new structure of voucher table (is_printed field removed, voucher_type != KOT is now assumed to be printed)
Fix: Take-away bill type is now removed
Fix: Table overview now shows the right amounts
Voucher Save and Update should now work
Discounts now working (permissions are not checked)
2019-08-08 13:31:30 +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 87076d9c00 Guest book 2019-06-25 17:13:56 +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 6ace2078bd Added the Sales Categories to migrate updated the others 2019-06-20 19:50:03 +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 16455fdcac TODO: Refactor the product and productgroup tables as per the comments added.
rename the product group table to either product category or menu category
move the group_type field from productgroup to products and name it sales category eg. Food, beverage, etc. also, set the tax for sales category and not individual product
Added the printers permission to end of permissions and only for owner, set them right
2019-06-20 01:59:11 +05:30
Amritanshu c51a9bd5ff Users fix 2019-06-20 00:28:39 +05:30
Amritanshu 93743bdc8e Users 2019-06-20 00:17:44 +05:30
Amritanshu 2b2624c9c2 Roles 2019-06-19 23:55:42 +05:30
Amritanshu 63f5f60842 Still in progress 2019-06-17 13:23:00 +05:30
Amritanshu 32500665b5 Table Sort Order Done 2019-06-16 21:08:18 +05:30
Amritanshu bcb158b837 Product Error on *ngIf, new a dealbreaker, but not sure. 2019-06-16 20:50:38 +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
tanshu 1a1fa7881d The Backend for the new narsil
Most of the things done. Need to implement a few reports and management.
Changed the method of handing the Validation Exception
2017-03-31 12:25:28 +05:30