Commit Graph

133 Commits

Author SHA1 Message Date
Amritanshu Agrawal 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
Amritanshu Agrawal 4a12ee0834 Allow editing of product version with the right permission. 2021-09-04 12:52:05 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal 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
Amritanshu Agrawal 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
Amritanshu Agrawal 8c5d941850 Fix: Kots with product quantity = 0 were allowed. So blank kots could be added. 2021-07-04 08:32:55 +05:30
Amritanshu Agrawal 5ece52ad55 Added option to view Voided bills 2021-07-02 09:05:37 +05:30
Amritanshu Agrawal 17702a433b Fix: Bill Deactivate guard was running when printing kots / bills when items were added to new kot. 2021-07-02 09:05:07 +05:30
Amritanshu Agrawal 1287d8f7ac Fix: Whitespaces around the password/username were causing login failures. 2021-06-30 07:12:53 +05:30
Amritanshu Agrawal 0d41c0e345 Feature: Exit guard if bill is dirty is sales to prevent accidentally backing out of a bill with data. 2021-06-29 08:58:07 +05:30
Amritanshu Agrawal fd2659eee5 Added device location to home screen. 2021-06-28 08:41:58 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal 7247ac34f4 Feature: Product Sale Report printing. 2021-06-27 08:08:20 +05:30
Amritanshu Agrawal a1a1c10dff Fix: Remove legacy otp from login and show the right device id. 2021-06-26 09:14:36 +05:30
Amritanshu Agrawal 77dad64eab Fix: Login errors were not helpful as error.details NOTICE THE "S" typo gobbled up the error message.
Also changed client to device
2021-06-26 08:46:22 +05:30
Amritanshu Agrawal e0ef5e7b64 Fix: Rounding error prevented some bills from getting settled. This is related to the half even rounding in python. 2021-06-26 08:45:24 +05:30
Amritanshu Agrawal ca3a599386 Fix: The bill settlement report was showing the wrong time, without taking into account the timezone. 2021-06-23 22:27:28 +05:30
Amritanshu Agrawal 27205f7790 Feature: Allow password change 2021-06-21 10:45:45 +05:30
Amritanshu Agrawal 72b0e0e97d Chore: Crud 2021-06-19 12:35:12 +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 12a361aff1 Fix: Could not print bill if discount permission not allowed 2021-06-13 17:54:04 +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 2f0ef397cf Fix: Disable pull to refresh in chrome. 2021-04-24 09:09:57 +05:30
Amritanshu Agrawal f410d4a69e Fix: Hopefully this will disable adroid chrome pull to refresh according to
https://developers.google.com/web/updates/2017/11/overscroll-behavior
2021-04-24 00:47:16 +05:30
Amritanshu Agrawal 4e827c2bd0 Feature: Added ability to change / choose pax once the table is running. 2021-04-09 09:33:53 +05:30
Amritanshu Agrawal 4448869652 Fix: Menu category would only show active ones. 2021-04-09 09:32:08 +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 73850560aa Customer discount with prefill discount in sales. 2021-04-02 14:34:07 +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 d5b4dfeaca Feature: The guestbook now autocompletes on phone number 2021-03-26 08:54:31 +05:30
Amritanshu Agrawal 3705ceb95b Search Added to Product List. 2021-03-26 08:01:30 +05:30
Amritanshu Agrawal 47381527c2 Feature: Added feature to click a name in receive payment to fill in the amount in that column 2021-03-26 07:20:51 +05:30
Amritanshu Agrawal 669821a643 Using Half-Round-Even rounding in the bill amounts as this is what python round uses.
When the bill amounts were Odd number + .5, payment could not be received as javascript rounded it up, but python rounded it down.
We are now using the python rounding (Half Round Even / Banker's Rounding) in the bill service.
2021-03-20 08:05:50 +05:30
Amritanshu Agrawal 41d4ef1200 Added feature: Split bill by Sales Category if no item is selected. 2020-12-25 11:47:03 +05:30
Amritanshu Agrawal 161896154d Feature: Open bill using bill number 2020-12-24 12:58:46 +05:30
Amritanshu Agrawal 98c75f66c9 Fix: Cancel bill printing if discount dialog is cancelled. 2020-12-24 09:26:34 +05:30
Amritanshu Agrawal 7b327b4fda Feature: Discount will only update the sale types which have been updated in the form. 2020-12-24 09:26:05 +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 b85e930ace Moved all auth schemas into their own files. Updated imports. 2020-12-21 11:18:58 +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 89c93862bf Added links to Sales and Guest Book on the Nav Bar 2020-12-19 09:32:27 +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 b70b01b726 Back to table / product group order changed to have the back button in the beginning
The bill now highlights the happy hour products.
2020-12-18 13:24:50 +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 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 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
Amritanshu Agrawal 27aa4d12a6 Settle Options are now stored in the Database and can be updated 2020-12-13 09:45:24 +05:30