Commit Graph
28 Commits
Author SHA1 Message Date
tanshu 1a08066c2d Feature: Cancelled bills are now separate from void bills.
Void bills are automatically generated when printed bills are changed.
Manually cancelled bills are called cancelled bills.
2023-03-17 08:27:30 +05:30
tanshu 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
tanshu 802eded568 Due to update to sqlalchemy, fixed schema nullability 2023-02-26 19:51:29 +05:30
tanshu 124cf4d9ff Fix: Username unique index was case sensitive and this allowed duplicate names.
Feature: Moved temporal products into their own module and reverted the products module
2021-10-27 09:27:47 +05:30
tanshu 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
tanshu 4a12ee0834 Allow editing of product version with the right permission. 2021-09-04 12:52:05 +05:30
tanshu afa4fd4711 Fix: Import was not working as Customer Model changed and borked the initial commit of the database. Created a table in the function to remove dependence from the model.
Now poetry requires "poetry run" before commands to run them in the container. Updated for it.
2021-07-31 16:26:25 +05:30
tanshu 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
tanshu 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
tanshu 73850560aa Customer discount with prefill discount in sales. 2021-04-02 14:34:07 +05:30
tanshu 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
tanshu 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
tanshu ea2bfb1c0c Chore: Moved individual models into their own files.
Chore: Updated dependencies.
2021-03-17 09:39:56 +05:30
tanshu 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
tanshu 4f5ba47d46 Added the docker files and ansible playbooks for two instances namely pkl and chd. 2020-12-14 17:58:00 +05:30
tanshu 27aa4d12a6 Settle Options are now stored in the Database and can be updated 2020-12-13 09:45:24 +05:30
tanshu 88f5b26948 Import marks inactive products as valid till one day before import 2020-11-15 12:58:12 +05:30
tanshu 163b40e9e5 Simplified some permissions
Renamed Accounts Audit to Audit
Renamed Machines to Devices as it made sense
Sections and Tables are now under Sections Permission
Guest Book is now under Customers Permission
Renamed Beer Consumption Report to Beer Sale Report
Fix: Move Kot and Table to check what the final effect is
2020-11-15 12:26:24 +05:30
tanshu a92726f5e6 Product list / detail / router fully working.
Need to test the sale / reports
2020-11-09 12:44:27 +05:30
tanshu 4aaa3fc72b Import data also adds all permissions to owner role 2020-11-08 20:01:27 +05:30
tanshu 94b63e4385 Product List and Query working 2020-11-08 19:09:31 +05:30
tanshu 0c9ebd29d7 Initial setup for temporal products table.
Updated the model and the data import.
Now for all the routers and then update products
2020-11-07 21:09:58 +05:30
tanshu 4108040cdd new tag v3.1.0
Fix:
  Company references left after the field was removed
2020-10-29 07:32:04 +05:30
tanshu 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
tanshu 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
tanshu 00fe2410b7 blacked, isorted, flake8ed and moved to arq/redis from celery/rabbitmq 2020-10-24 11:53:12 +05:30
tanshu fc6eebed19 Infrastructure to build the worker docker and run it. 2020-10-14 08:19:42 +05:30
tanshu 066d43a373 Moved barker one level down and using poetry for setup 2020-10-11 09:06:51 +05:30