Commit Graph

24 Commits

Author SHA1 Message Date
Amritanshu Agrawal f6deea265c Fix: Error is checking length of bills 2023-03-19 23:08:14 +05:30
Amritanshu Agrawal 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
Amritanshu Agrawal 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
Amritanshu Agrawal 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
Amritanshu Agrawal 61bb62475b Chore: Updated dependencies and moved to Python 3.10 method of type hinting 2022-06-21 08:41:57 +05:30
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 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
Amritanshu Agrawal 38ccaa167c Fix: If there were products with differing discounts in the final bill, the printed bill would show the wrong amount when it summed up the products. It would apply the discount rate of the first instance of the product too all of it. 2021-07-04 08:21:24 +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 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 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 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 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 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 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
Amritanshu Agrawal 5e180f48d5 Update Product Prices built 2020-11-12 12:32:16 +05:30
Amritanshu Agrawal de235f3d9e Product should now be fixed.
Need to allow later editing now.
2020-11-10 11:47:25 +05:30
Amritanshu Agrawal 1e69c8eeeb Importing now working
except u-product_group_modifier. It does not fit in the new scheme. Will remove in next commit so that it is added to log if needed later.
2020-10-28 02:16:55 +05:30
Amritanshu Agrawal 00fe2410b7 blacked, isorted, flake8ed and moved to arq/redis from celery/rabbitmq 2020-10-24 11:53:12 +05:30
Amritanshu Agrawal b7f382cac8 Bill change should be working
Reduce quantity should be working.
2020-10-11 20:53:43 +05:30
Amritanshu Agrawal d677cfb1ea Blacked and isorted the python files
Prettied and eslinted the typescript/html files
2020-10-11 10:56:29 +05:30
Amritanshu Agrawal 066d43a373 Moved barker one level down and using poetry for setup 2020-10-11 09:06:51 +05:30