Commit Graph

81 Commits

Author SHA1 Message Date
Amritanshu Agrawal 0b9ffc652b Mypy: The OTP Field is nullable 2021-11-23 09:57:09 +05:30
Amritanshu Agrawal 9d088aa95e Extensive mypy checking. 2021-11-21 12:18:26 +05:30
Amritanshu Agrawal 1a3248ad70 Fix: Products could be added without skus rendering them useless
Feature: Change of product in purchase / issue / Purchase return allowed.
2021-11-11 20:52:28 +05:30
Amritanshu Agrawal ffd46bf717 Feature: Recipe module mostly working. What needs to be done is duplicating recipes and export for checking.
Feature: Non Contract Purchases Report
2021-11-10 10:57:18 +05:30
Amritanshu Agrawal 952f030e8d Fix: Deleting voucher fucked up due to cascading changes was not 2021-11-08 17:19:27 +05:30
Amritanshu Agrawal 2d2a6a785b Fix: All entries was not working as assert was truthy and not checking for None 2021-11-07 18:48:06 +05:30
Amritanshu Agrawal abe99f0187 Chore: Added type hints for sqlalchemy and checked a lot of them using mypy
There can be many errors now
2021-11-07 18:30:14 +05:30
Amritanshu Agrawal 4df8c916ab Fix: Recipe was crashing the whole thing 2021-11-02 16:39:15 +05:30
Amritanshu Agrawal 30e3288b1e DB Normalization: Moved fractionUnits back to Product from SKU as it is better suited there.
Feature: Created the ProductSku schema for the product/sku autocomplete
2021-11-02 14:00:15 +05:30
Amritanshu Agrawal 0574f9df14 Chore: Changed the account_type and voucher_type enum.
The account type enum is not stored in the database as an enum.
The voucher_type enum is now a table in the database.

Feature: Closing stock can now be saved and in each department.
2021-10-31 18:41:06 +05:30
Amritanshu Agrawal e96ef38173 Fix: Purchase update error. There is no longer product_id in Inventory. Also, now issuing direct updates instead of updating the models. 2021-09-30 17:19:36 +05:30
Amritanshu Agrawal 1647d356c9 Feature: Added product Stock Keeping Units to prevent duplicate products. A lot of refactoring because of this.
Removed: Reset Stock as it was never used and don't think it is even needed with this new batch system.
Fix: Incentive update was not working
2021-09-27 14:22:31 +05:30
Amritanshu Agrawal 6d0d95070b Moved the batch integrity report from settings to its own report in products with permission of product ledger.
It also automatically fixes the issue prices.
2021-09-24 14:40:51 +05:30
Amritanshu Agrawal ceaf93d1cd Fix: Prevent duplicate valid attendances 2021-09-11 17:21:01 +05:30
Amritanshu Agrawal dee053c115 Added: Rate Contract Module. To implement: Checking this during purchase. 2021-09-11 15:43:18 +05:30
Amritanshu Agrawal 074e45fe69 Chore: Renamed the auth tables to remove the prefix 2021-09-11 06:02:09 +05:30
Amritanshu Agrawal 2820813cb6 Refactor: Moved various Schemas into their files
Feature: Complex voucher locking where specific types of vouchers and accounts can be locked and the locks can also be times to expire after some time.
Highest index takes priority
2021-09-10 13:21:43 +05:30
Amritanshu Agrawal 350edf7126 Removed timezone information from columns. Time will be stored in UTC coordinates.
Moved to Sqlalchemy 1.4 model and SessionFuture.

Upgraded to Angular 12

Upgraded the python dependencies
2021-09-07 12:59:18 +05:30
Amritanshu Agrawal d7f635b7b6 Chore: Split models into their own files 2021-01-25 12:44:17 +05:30
Amritanshu Agrawal 9aeb71d566 User and Client lists show the last logins. 2020-12-05 09:03:11 +05:30
Amritanshu Agrawal 2d81f80c63 Moved all the schemas into their own logical files. 2020-12-04 13:02:13 +05:30
Amritanshu Agrawal c8681b2994 Fix: Add product was borking as during check_inventories_are_valid the product_id of inventory was Null 2020-11-09 12:50:16 +05:30
Amritanshu Agrawal ba4f8a4831 Fix:
Update password works
 Updated the precision and nullability for models
 Batch was sending non round quantity_available
 Amounts were not being displayed in daybook

 Moved dockerfile from root to have a consistent build environment
2020-11-03 21:50:30 +05:30
Amritanshu Agrawal d9eb335ef3 Blacked, isorted, etc the python file
Was also moving the validation from schemas to models/validations
2020-11-02 23:18:56 +05:30
Amritanshu Agrawal 886b11be23 Error is batch list router fixed
v8.0.2
2020-10-11 16:29:19 +05:30
Amritanshu Agrawal 14930954a2 Fix: Batch autocomplete would bork on empty string as it would try to split Null
v8.0.1
2020-10-11 16:02:41 +05:30
Amritanshu Agrawal 889cac237c Moved brewman python project down a level into its own folder 2020-10-10 11:19:15 +05:30
Amritanshu bc7b4217cd Rebase: Moved the whole structure down one directory depth. 2013-10-14 09:29:57 +05:30
Tanshu db6b7a4881 Feature: Started using lo-dash for many javascript functions
Feature: Payment and receipt last account selected and choose it instead of cash in hand on history back.
Fix: Focus on account typeahead in payment and receipt.
Refactor: Refactored blank_voucher to use additional info only and to output chosen account in purchase / receipt

Signed-off-by: Tanshu <tanshu@gmail.com>
2013-10-05 17:15:36 +05:30
Tanshu 1def5873bc Fixed: Employees would not autocomplete. 2013-10-03 17:46:01 +05:30
Tanshu 218a1781a8 Feature: Discontinued Ledgers / Products will not show up in Vouchers reducing confusion. 2013-10-03 15:58:16 +05:30
Tanshu 62918bcee5 Feature: Account reconcilliation built.
Fix: Made most of the columns on entities_vouchers NOT NULL.
Fix: Renamed ReconcilliationDate to ReconcileDate NOT NULL
Fix: IsReconciled is the check on reconcilliation.
Feature: Changed output of formatted currency to numbers with formatting in html.
Feature: Html number formatting with indian locale info enables lakhs and crores formatting of currency.
TODO: Started work on reset stock.  Not working yet
TODO: Satrted work on Server-sent Events directive, not working yet
Feature: Created accounting, clr and percent filters
2013-10-03 15:42:43 +05:30
Tanshu f8bdf9d731 Feature: Batch is not allowed to be issued to a previous date. Only exception is if purchase is made in a new date, product issued and then the purchase is moved to an old date. Will fix that in future commit. 2013-10-01 16:52:21 +05:30
Tanshu 414a1717a5 Feature: Account rebasing built. 2013-10-01 16:52:21 +05:30
Tanshu 64c1820867 Feature: Deletion of active accounts and employees built.
Feature: Many columns made non-nullable to better safeguard data.
Fixed: Employee save/update did not work due to misplaced date check.
2013-10-01 16:52:19 +05:30
Tanshu d452e2ada9 Added: Support for fixtures in Ledger, Employee, Product, ProductGroup and CostCenter.
Database updated accordingly.
2013-10-01 16:52:18 +05:30
Tanshu d187c1ee2f Added settings table to store user settings.
Added settings page, view, route and controller.
Added lock_date setting to prevent changes to voucher upto and including that date.

The sql for this update is:

CREATE TABLE settings (
	"SettingID" UUID NOT NULL,
	"Name" VARCHAR(255) NOT NULL,
	"Data" BYTEA,
	PRIMARY KEY ("SettingID"),
	UNIQUE ("Name")
);

INSERT INTO auth_roles ("RoleID", "Name") VALUES ('d52de0be-9388-4b0b-a359-7e122ab6e53a', 'Lock Date');

Signed-off-by: Tanshu <tanshu@gmail.com>
2013-07-08 01:33:02 +05:30
Tanshu 30a38f7ed9 Updated Thread / Messaging to show unread / read messages
Showing subscribers in main.html
Messages are considered read when the message is opened by the user.
Fixed error left from before where batch date was not updated on updating purchase voucher.
2013-06-24 13:53:51 +05:30
Tanshu a2587cda60 Fixed critical error in Batch table 2013-06-21 16:27:27 +05:30
Tanshu 5972dd6b75 Updated batch to use a date instead of string as name.
to update this step, also execute the following sql in the database.

update entities_batches set "Name" = '01-Jan-2012' where "Name" = 'Old Products';
alter table entities_batches alter column "Name" type timestamp without time zone using "Name"::date;
2013-06-21 16:20:50 +05:30
Tanshu b9845a2dc1 Allowed superuser to edit posts in threads.
Catch IntegrityError in TryCatchDecorator
Check for duplicate title in threads
2013-06-20 14:28:35 +05:30
Tanshu 6bf884da66 Hopefully now the probem displaying thread age should be fixed.
Default arguments of python funtions are evaluated only on definition time.

Signed-off-by: Tanshu <tanshu@gmail.com>
2013-06-07 14:57:56 +05:30
Tanshu 7650fffea0 get_age made more robust plus fixed minutes error.
Made Voucher.creation_date, last_edit_date and Attendance.creation_date tz aware
2013-06-06 23:24:27 +05:30
Tanshu 01298ebadb Fixed password change not allowed for non Privilaged users.
Fixed storing utc dates in message tables.
Created utc class for time-aware dates.
Updated home to show age of Threads and open in new window available.
Modified message detail template to show editable by privileged user.
Added subscribers to thread detail.
Improved markup for message-detail to use less space.
Improved the chosen directive for when there is no create option.
Added method 'Names' to user resource for use in message subscribers.
Payment and Receipt clear typeahead on adding ledgers.


TODO: Implement thread read status per user.
TODO: Implemented edit post functionality for privileged user.
TODO: Implement thread filtering on main page for subscribers

Signed-off-by: Tanshu <tanshu@gmail.com>
2013-06-06 16:56:05 +05:30
Tanshu 6225da9ec8 Added the full messaging module.
Added ace.ajax.org editor for messaging.
Added showdown for showing markdown in messaging.
Added chosen for multi-select tags.
2013-05-29 13:28:37 +05:30
Tanshu bff0ef7ff9 Fixed employee_code references to employee_id in Fingerprint and related functions.
Updated windows install guide.
2013-04-17 14:08:09 +05:30
Tanshu ddd6883172 Made the model User.by_name() case insensitive 2013-04-15 12:43:33 +05:30
Tanshu eaa32d9c3a removed database trasfer code. 2013-04-15 00:24:57 +05:30
Tanshu 77e3945f1e To Upgrade Bengali Data 2013-04-14 16:39:55 +05:30
Tanshu 6b89a93bde Trying to catch database locked error 2012-12-25 13:55:28 +05:30