Commit Graph

218 Commits

Author SHA1 Message Date
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 eeb36d7f8b Version Bump v10.2.4 2021-11-10 21:41:25 +05:30
Amritanshu Agrawal 3dc8f0151e Version Bump v10.2.3 2021-11-10 12:12:08 +05:30
Amritanshu Agrawal bfdf70cdc4 Version Bump v10.2.2 2021-11-10 11:22:35 +05:30
Amritanshu Agrawal ec2b6d7293 Version Bump v10.2.1 2021-11-10 11:19:35 +05:30
Amritanshu Agrawal e44fc4d313 Version Bump v10.2.0 2021-11-10 11:01:33 +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 3b8c972c48 Version Bump v10.1.5 2021-11-08 17:19:52 +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 3d5d02a416 Version Bump v10.1.4 2021-11-08 10:08:55 +05:30
Amritanshu Agrawal 40d5914684 Chore: Updated dependencies 2021-11-08 07:48:52 +05:30
Amritanshu Agrawal 98b574307d Version Bump v10.1.3 2021-11-07 18:32:03 +05:30
Amritanshu Agrawal ca99aa00ed Version Bump v10.1.2 2021-11-02 16:39:31 +05:30
Amritanshu Agrawal 5e66db381b Version Bump v10.1.1 2021-11-02 14:15:13 +05:30
Amritanshu Agrawal 49aaa2fbe3 Version Bump v10.1.0 2021-11-02 14:01:51 +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 b3075577e6 Version Bump v10.0.2 2021-11-02 12:31:18 +05:30
Amritanshu Agrawal ce01a4d1f3 Version Bump v10.0.1 2021-11-02 12:00:34 +05:30
Amritanshu Agrawal b69a38d8e9 Version Bump v10.0.0 2021-10-31 18:54:21 +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 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 c3bd22fc9f Fix: Balance Sheet and Trial Balance would not update when changing date. 2021-09-25 11:48:56 +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 b1557bef88 DB Integrity checks for batch integrity and also updates quantities when it can. 2021-09-21 09:54:11 +05:30
Amritanshu Agrawal 176559466a Feature: Changed the unposted report to entries report with paging, sorting, etc. 2021-09-14 12:49:01 +05:30
Amritanshu Agrawal d34c8ea0a4 Rate Contract is checked during save and update of Purchase at the backend 2021-09-13 13:01:34 +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 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 0bd6f8eb03 Version Bump v9.4.4 2021-04-03 07:55:17 +05:30
Amritanshu Agrawal ef826d30c7 Fix: Overlord build would fail as angular requires TypeScript >=4.0.0 and <4.2.0 2021-04-02 18:48:51 +05:30
Amritanshu Agrawal 39c1f61dc5 Version Bump v9.4.3 2021-04-02 18:43:52 +05:30
Amritanshu Agrawal 15be0d5009 Version Bump v9.4.2 2021-02-04 08:50:17 +05:30
Amritanshu Agrawal 5d0852a74d Version Bump v9.4.1 2021-01-27 09:21:38 +05:30
Amritanshu Agrawal faea622ffc Fix: The look of the incentive component 2021-01-27 09:20:52 +05:30
Amritanshu Agrawal a883d5ab1c Version Bump v9.4.0 2021-01-25 13:15:34 +05:30
Amritanshu Agrawal d7f635b7b6 Chore: Split models into their own files 2021-01-25 12:44:17 +05:30
Amritanshu Agrawal 9e1da1d59a Version Bump v9.3.3 2020-12-18 14:43:16 +05:30
Amritanshu Agrawal 0b589a3ab6 Version bump v9.3.2 2020-12-12 10:27:49 +05:30
Amritanshu Agrawal 184dca62f6 Fix: Save product for new product would bork as productGroup as null and not undefined. 2020-12-12 10:26:12 +05:30
Amritanshu Agrawal 24ea8096c4 Version bump v9.3.1 2020-12-11 07:48:20 +05:30
Amritanshu Agrawal 158f3e0e36 Fix: Raw material cost detail report borked on sort at the end as order was not in RawMaterialCost schema. Although it is not needed in the frontend, added it as optional. 2020-12-11 07:47:36 +05:30
Amritanshu Agrawal ccf2f704b6 Fix: Post voucher was not working. Replace command had borked the url.
Fix: Attendace report file name contained single quotes and did not open in excel
2020-12-08 13:05:38 +05:30
Amritanshu Agrawal 1f21438a4c Version Bump v9.3.0 2020-12-08 12:10:35 +05:30
Amritanshu Agrawal 57ef355170 Fix: Login deleting old clients was conflicting with login history
Chore: Moved to angular linting using the recommended plugins / settings
2020-12-08 12:09:19 +05:30
Amritanshu Agrawal d5048bc455 Version Bump v9.2.0 2020-12-05 09:04:11 +05:30
Amritanshu Agrawal 9aeb71d566 User and Client lists show the last logins. 2020-12-05 09:03:11 +05:30
Amritanshu Agrawal c2e8c0382a Version bump to v9.1.1 2020-12-05 08:08:18 +05:30
Amritanshu Agrawal 02b87262a4 Version bump to v9.1.0 2020-12-04 13:03:01 +05:30
Amritanshu Agrawal 2d81f80c63 Moved all the schemas into their own logical files. 2020-12-04 13:02:13 +05:30
Amritanshu Agrawal 8ff8d6bc91 Version bump to v9.0.1 2020-11-26 07:07:06 +05:30
Amritanshu Agrawal 4c4c1b994e Fix: Employee and Account showed [object Object] in Department instead of the department name.
This is due to enabling strict mode in Typescript and changing the list department from string to object. But the html was not updated.
2020-11-26 07:06:09 +05:30
Amritanshu Agrawal 9cd4a4ef20 Version bump to v9.0.0 2020-11-24 08:05:27 +05:30
Amritanshu Agrawal 2972203148 Removed the use of any and enabled the rule in eslint.
Now according to me the conversion is final.
Testing is required.
2020-11-24 08:03:43 +05:30
Amritanshu Agrawal 715e35ef38 Fix: Vouchers post was not allowed as the check was wrong. 2020-11-23 17:29:32 +05:30
Amritanshu Agrawal 1b84ef0b11 Upgrade to angular v11 2020-11-23 17:12:27 +05:30
Amritanshu Agrawal afe746ecdc Strict done!! 2020-11-23 16:42:54 +05:30
Amritanshu Agrawal af343cb7f9 All datasources done. Now to wire them up in the components.
Plus ElementRefs are now optional as they cannot be initialized
2020-11-23 10:25:53 +05:30
Amritanshu Agrawal 39e3cc51bb Moving to strict.
Create form has now moved to constructor and route data subscribe is type safe.
2020-11-23 09:18:02 +05:30
Amritanshu Agrawal 30b1a3ef7d Version bump v8.2.4 2020-11-09 12:51:10 +05:30
Amritanshu Agrawal 2e3e451c35 Fix: Fingerprint now checked and is working
Version bump:
 v8.2.3
2020-11-06 12:56:55 +05:30
Amritanshu Agrawal 3e04d69419 Version bump
v8.2.2
2020-11-06 12:30:58 +05:30
Amritanshu Agrawal 0f6484cd2f Version bump v8.2.1 2020-11-03 21:55:34 +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 0ab81b25d0 Chore:
v8.2.0
2020-11-03 11:28:50 +05:30
Amritanshu Agrawal 0118cc7c73 Moved dockerfile to project 2020-11-03 11:23:48 +05:30
Amritanshu Agrawal 8a4fa430ad Version bump to v8.1.0 2020-11-02 23:40:27 +05:30
Amritanshu Agrawal d64cb54702 Updated dependencies 2020-11-02 23:38:38 +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 00321fe022 Removed tsline dependency 2020-10-10 10:57:39 +05:30
Amritanshu Agrawal b150f08b6c Increased package budgets so that the compile would not fail. 2020-10-10 08:51:51 +05:30
Amritanshu Agrawal 5ea09df272 Prettied, Linted and updated angular.json according to the latest schematic of Angular CLI.
Now all that is needed is to make it ready for strict compiling.
Removed eslint-plugin-prettier as it is not recommended and causes errors for both eslint and prettier

Bumped to v8.0.0
2020-10-10 08:45:05 +05:30
Amritanshu Agrawal 438a98334d Showing the frontend and backend version in the settings panel.
Bumped the version to 7.6.0
2020-10-07 23:27:54 +05:30
Amritanshu Agrawal 37910b71be Bump version
v7.5.0
2020-10-07 21:40:23 +05:30
Amritanshu Agrawal 4e05131b41 Fix: Errors raised were not HTTP Errors, but were value errors. This raised 500 errors on the front end without valid details.
v7.4.0
2020-10-07 19:38:08 +05:30
Amritanshu Agrawal cfeef1795d Feature: Allow math expressions on all journal inputs and also round them properly.
Chore:
  Prettied index.html, main.ts and styles.css
  Updated Dependencies
2020-10-07 18:42:22 +05:30
Amritanshu Agrawal cefb3ebdcc Removed old rules from eslint
Tried hand at testing by fixing the spec files with import. However, still many errors and given up now.
2020-10-02 16:24:29 +05:30
Amritanshu Agrawal d77053d92a Hack till https://github.com/brtnshrdr/angular2-hotkeys/pull/135 gets merged in angular2-hotkeys 2020-10-02 08:25:08 +05:30
Amritanshu Agrawal 834b7bf5e8 Version bump to v7.3.0 2020-10-01 21:42:33 +05:30
Amritanshu Agrawal 1350870f9e Moved from tslint to eslint as tslint was depreciated.
Added prettier and also prettied all the typescript files using prettier

ESLint is using the AirBnB rules which are the most strict to lint the files.
2020-10-01 21:28:12 +05:30
Amritanshu Agrawal 005d45032f Fix: Reset stock was not working because:
1. The frontend did not set the date format and that mangled the date string sent
 2. Backend was broken and was not acceping data in json format

Fix: Ledger would occasionally crap out due to rounding and floating point madness, removed the rounding limitation
2020-09-20 09:56:35 +05:30
Amritanshu Agrawal cb66700157 Feature/Fix: Auth service will check local storage during get user in case another window has refreshed the token 2020-09-13 08:34:47 +05:30
Amritanshu Agrawal 8b82cf8157 Fix: Purchase Return was being saved as Purchase entries
Fix: Receipt Vouchers could not be deleted as wrong permission was checked

v7.1.1
2020-09-13 07:25:27 +05:30
Amritanshu Agrawal 9b483e6d65 v7.1.0
Chore: Upgraded to Angular 10
Chore: Updated all frontend dependencies
2020-07-16 18:25:44 +05:30
Amritanshu Agrawal a04cb4cd4d Update: to 7.0.4
Fix: Balance Sheet was showing account in random heads
Fix: Batch was not showing in issue
Fix: At times, the Product Ledger created error on rounding and did not show.
2020-07-16 13:09:22 +05:30
Amritanshu Agrawal ad8a2d2cc3 Fix: Save account error was because in constructor type did not end in underscore
Fix: Employee save as checking for in None instead of is None

Feature: Checking the existing token for validity in constructor of auth service, this should prevent last login showing
Feature: Moved the middleware secret key into the env file

Chore: Replaced my own GUID() with postgres UUID() type
2020-06-30 11:44:19 +05:30
Amritanshu Agrawal 6ccb3634be Tag: v7.0.2
Fix: Attendance Type and Account Type objects were borking as their convenience methods were not returning anything
Fix: Employee Benefits and Incentive post voucher did not reload the page
Fix: For all vouchers, to prevent double data loading on save / update either reload data or navigate, don't reload data and then navigate so that the data appears once and then disappears
2020-06-02 08:35:36 +05:30
Amritanshu Agrawal b7a1c5b816 Fix: Relations were not working as after setting the id, if the object was none, then it set to None again.
eg. in Inventory if product_id was supplied and not the product object, product_id was set, but then when the product was set to None, the product_id was also gone

Version bumped to 7.0.1
2020-06-01 20:42:16 +05:30
Amritanshu Agrawal 7b4756fe1a Bumped the version to 7
Fixed double exception being thrown
Currency pipe broke the accounts pipe
2020-06-01 09:02:52 +05:30
Amritanshu Agrawal e24ca40b6b removed the package-lock file 2020-05-31 14:27:26 +05:30
Amritanshu Agrawal 972ee59837 Changed the frontend build location 2020-05-31 00:01:50 +05:30
Amritanshu Agrawal 013fce2e96 Settings working now. Everything working now.
Time for docker and beta test
2020-05-30 23:39:02 +05:30
Amritanshu Agrawal 95e92fc2bd Fixed: Star now showing in employee list 2020-05-30 16:18:25 +05:30
Amritanshu Agrawal dd799a8e2f Fixed Sorting and paging of Employees and Accounts 2020-05-30 16:18:08 +05:30
Amritanshu Agrawal d5bc818632 Clients also implemented.
I think the only things left are the login history and other past errors
2020-05-30 15:41:55 +05:30
Amritanshu Agrawal 7edac38435 Sliding session implemented by using jwt interceptor to refresh the token 10 minutes before expiry 2020-05-30 14:09:38 +05:30
Amritanshu Agrawal 8ae67863eb Voucher Post and Delete working!!
Also figured out why a lot of exceptions are generating 500 errors.
Those errors are again caught by the general exception catcher in the end and re thrown.
Need to fix this.
2020-05-30 12:06:37 +05:30