Commit Graph

384 Commits

Author SHA1 Message Date
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 58f6d6578b Merge branch 'fastapi' 2020-06-01 09:21:10 +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 1c2c98e7b5 Blacked all lines with -l 120 2020-05-31 14:41:11 +05:30
Amritanshu Agrawal 1f7ca329bc removed sensitive info from .env 2020-05-31 14:28:23 +05:30
Amritanshu Agrawal e24ca40b6b removed the package-lock file 2020-05-31 14:27:26 +05:30
Amritanshu Agrawal 6f5d9af6e3 removed accidentally committed file.
voucher.py is now formatted with standard width of 120 instead of 88
will now use that as the default in the future
2020-05-31 14:26:50 +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
Amritanshu Agrawal 0177921e84 Disabled as it fucked with the return of Payment and Receipt as they had only one journal when sent to front end 2020-05-30 11:11:52 +05:30
Amritanshu Agrawal 2a86246e23 was supposed to be part of the commit merging payment and receipt into journal 2020-05-30 11:11:06 +05:30
Amritanshu Agrawal b732cfe814 Upgrade to angular 9, compile angular libraries for faster builds 2020-05-30 11:10:02 +05:30
Amritanshu Agrawal 9a1844100f Save file and upload file functions in vouchers de duplicated 2020-05-30 11:09:19 +05:30
Amritanshu Agrawal d49be23056 Merged payment and receipt routes and permissions into journal as they were not really needed. 2020-05-30 11:08:42 +05:30
Amritanshu Agrawal a5fcb2026c Fixed permission names in front end as they have to be kebab cased 2020-05-30 10:29:23 +05:30
Amritanshu Agrawal 1a553146e2 Update as nav-bar was crapping out in Angular 9 2020-05-30 02:31:49 +05:30
Amritanshu Agrawal 725a5b4bc0 @angular/material migration - migration-v9
Updates Angular Material to v9
2020-05-30 02:20:18 +05:30
Amritanshu Agrawal 9152757777 Angular CLI update for packages - @angular/cdk@latest, @angular/material@latest, @angular/flex-layout@latest 2020-05-30 02:20:02 +05:30
Amritanshu Agrawal 6b987fba44 added new line at the end
and updated the proxy to proxt all the endpoints needed to the backend
2020-05-30 02:18:42 +05:30
Amritanshu Agrawal 2210dc265e @angular/cli migration - workspace-version-9
Angular Workspace migration. Update an Angular CLI workspace to version 9.
2020-05-30 02:14:11 +05:30
Amritanshu Agrawal 0735f4791c Angular CLI update for packages - @angular/core@latest, @angular/cli@latest 2020-05-30 02:14:03 +05:30
Amritanshu Agrawal d38a8c0a89 Angular hotkeys was conflicting with 9 upgrade 2020-05-30 02:12:02 +05:30
Amritanshu Agrawal 10dbe6663d DbImage works!!
Credit Salary works!!

Refresh router created, now need to use it in angular

Errors should now show up in the frontend.
2020-05-30 01:58:17 +05:30
tanshu e3286c87ba Incentive Done!!
Employee Benefit Done!!
2020-05-23 09:45:02 +05:30
tanshu 814d289758 Employee Benefit Done!!
Db Integrity, Reset Stock and Rebase done!!
2020-05-22 10:10:45 +05:30
tanshu b2f2e742f5 Lock Information and Maintenance Done!! 2020-05-22 02:28:37 +05:30
tanshu c0ddfc95c4 Issue Done!!
Payment and Receipt Done!!
2020-05-22 01:38:07 +05:30
tanshu 98edca5f60 Renamed "Salary Deduction" to "Employee Benefit"
Journal, Purchase and Purchase Return vouchers done!!

Changed the column type of "date" columns from "datetime" to better fit the data.
2020-05-21 13:11:47 +05:30
tanshu a0f27fe364 Attendance and Employee Attendance done!!
Journal Done!!
But there is issue of validation in purchase due to lack of proper journals when getting data from the frontend.
The proposed solution is to create different schemas for various vouchers and then reexport and import them in a master schema for persisting

Also, change "Supplier" to vendor in Purchase, etc.
Also, convert all date field to date from datetime

Rename "Salary Deduction" to "Employee Benefits" across the board
2020-05-17 15:38:13 +05:30
tanshu cda157f05c Employee Attendance Done!!
TODO: Only need to reload Attendance and Employee Attendance on Save
2020-05-14 22:13:34 +05:30
tanshu bd05e6bb17 Attendance Done!!
Changed the datatype of dates in attendance and employee to date from datetime
this might bork things in other places
2020-05-14 21:49:22 +05:30
tanshu 0a79b1acbb Unposted Done!! 2020-05-14 16:33:08 +05:30
tanshu 0df442e541 Trial Balance Done!! 2020-05-14 16:24:03 +05:30
tanshu 6a044f827b Stock Movement Done!! 2020-05-14 16:09:31 +05:30
tanshu 2dba0012be Raw Material Cost Done!! 2020-05-14 15:43:20 +05:30
tanshu 2462818abf Purchases done!! 2020-05-14 14:59:16 +05:30
tanshu da58528768 Purchase Entries Done!! 2020-05-14 14:39:19 +05:30
tanshu e62bb0a825 Profit & Loss Done!! 2020-05-14 13:49:40 +05:30
tanshu 48d03ab832 Product Ledger Done!! 2020-05-14 13:38:13 +05:30
tanshu 6ec4068ed0 Net Transactions!! 2020-05-14 12:34:27 +05:30
tanshu 5f783e1f45 Daybook done!! 2020-05-14 12:27:15 +05:30
tanshu 01cf6c2da1 Closing Stock Done!! 2020-05-14 12:18:45 +05:30
tanshu a4b9fb7408 Works:
Balance sheet
 Ledger
 Cash Flow

along with urls
Balance sheet schema does not enforce multiple_of for amounts as multiple_of borks on random figures
2020-05-14 11:26:28 +05:30