Commit Graph

246 Commits

Author SHA1 Message Date
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
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 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 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 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 5f783e1f45 Daybook done!! 2020-05-14 12:27:15 +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
tanshu 708a60baf7 Ledger now working with response_model
get_edit_url workaround found with transform clientside
2020-05-12 23:21:12 +05:30
tanshu 9c9f0dfdd6 Renamed Service Charges to Incentives including account fixture and permission
replaced my custom ValidationErro with FastAPI HTTPException
Fixed?:
 Attendance
 Employee Attendance
2020-05-12 20:52:07 +05:30
tanshu de4d248de7 Done:
Issue Grid
 Batch
2020-05-12 11:53:20 +05:30
tanshu d62119882d All Reports done. Except where get_url is used 2020-05-12 09:23:27 +05:30
tanshu 2b2430c5b2 Done upto reconcile
Pending:
 stock movement
 trial balance
 unposted
2020-05-12 03:52:25 +05:30
tanshu 85d05392b8 Added session support, but right now it is defaulting to 2 week long session
Reports working:
 Ledger
 Balance Sheet
 Profit & Loss
 Closing Stock
2020-05-12 02:57:48 +05:30
tanshu 6dbab6442f Renamed groups to roles in the frontend
Working:
 Account
 Cost Centre
 Employee
 Product Group
 Product
 Role
 User
 Client
2020-05-12 01:44:57 +05:30
tanshu cd764be49c angular2-hotkeys beyond this breaks with Angular 8.x
logout now works.
Only the clientID does not work as of now
2020-05-12 00:31:53 +05:30
tanshu ae8c46084c Working as a drop-in replacement for the last 2020-05-11 23:45:52 +05:30
tanshu 37b4faabf4 Updated to new api structure 2020-05-11 22:46:41 +05:30
tanshu 5f3649990f Simplified unnecessary complex logic 2020-05-11 22:46:17 +05:30
tanshu 02fbd0984e Updated to reflect renamed schemas 2020-05-11 22:42:13 +05:30
Amritanshu 72044476a8 Feature: Lazy loading
Lazy loaded everything
TODO: The cash flow module when clicking on sub-links, it reloads the whole page, it needs to be diagnosed and fixed, this problem also exists in the other modules
TODO: Rename folders and modules such as account to accounts to match the url
2019-06-13 16:36:43 +05:30
Amritanshu fea48e1a3e Chore: Upgraded to Angular, Angular Material and Angular Flex layout 8.0 2019-06-12 17:25:10 +05:30
Amritanshu 120b9544f8 Feature: Added hotkeys in vouchers for selecting date (f2), save (ctrl+s) and post (ctrl+p) 2019-05-07 14:59:51 +05:30
Amritanshu 017c828474 Fix: Trim the narration of vouchers to remove cruft
Fix: Do no tabstop on row edit buttons for a more consistent feel.
2019-04-18 16:04:42 +05:30
Amritanshu 403b9a207a Fix: ProductLedger was crapping out because of ambiguous join in opening balace. (Probably triggered by upgrade in sqlalchemy)
Chore: Updated the dev dependencies as Angular 7 does not support Typescript 3.2 and further
2019-04-15 13:34:16 +05:30
Amritanshu 72e8801472 Fix: Error in navbar, didn't do anything, but showed up in the errors. 2019-04-13 12:12:08 +05:30
Amritanshu dd59bfdfb4 Fix: On row edit, the value of the control was set as number and not text, leding to error on add row. 2018-11-26 09:07:58 +05:30
Amritanshu cfdd49f96f Fix: Layout was getting squashed, now working properly 2018-11-26 08:46:23 +05:30
Amritanshu 75ea08f678 Chore: Update to Angular 7.1.0, Angular Material 7.1.0 and Angular Flex Layout 7.0.0-beta.19
Fix: Prod build will now build properly
TODO: The width of content is very less and everything is squashed
2018-11-26 08:46:03 +05:30
Amritanshu 1984c1fc90 Fix: Rebase url error, double slash before date 2018-09-05 00:09:37 +05:30
Amritanshu eb22eace69 Fix: Incentives was not saving
Fix: Employee edit was not working
2018-08-25 11:28:23 +05:30
Amritanshu cd20982753 Feature: Download Products
Fix: Add user
Fix: Added 5000 page size in products
Fix: Local Time Pipe was showing the wrong time
2018-07-29 23:43:26 +05:30
tanshu f8162f364d Fix: Changed formula of Service Charge to update the new way of keeping accounts
Fix: Changed the limit of ESI in line with govt. regulations
2018-07-16 17:59:15 +05:30
tanshu 29b81cbd21 Fix: Employee was not saving because of isStarred, added that functionality to employee 2018-07-14 10:52:39 +05:30
tanshu 9f4eb334d7 Chore: Renamed the Ledger Table to Account
Chore: Renamed the Ledger Model to Account
Chore: Renamed LedgerType to AccountType
Chore: Renamed all properties of Account table to lowercase with underscores

Feature: Starred Accounts and their entries do not delete during a rebase.
Info: Starred Vouchers still delete. They can be starred, but have no effect.
2018-07-07 16:31:44 +05:30
tanshu 739c872815 Fix: Adding the next account in journal with default accounts failed because amount in rowAmount as reset as number. 2018-06-30 20:05:32 +05:30
tanshu ede445ac1f Added: Mathjs for evaluating expressions in journal amount 2018-06-29 13:32:52 +05:30
tanshu c6272762da Fix: Product Ledger was taking into account unposted entries and also the footer was not displaying the totals 2018-06-28 16:38:27 +05:30
tanshu b8c2e9eeb1 Added: 5000 Page size in Balance Sheet
Added: Employee Download
2018-06-20 09:13:49 +05:30
tanshu 08fedaa44d Fix: Balance Sheet was not working 2018-06-14 16:39:13 +05:30
tanshu 7376779f3a Feaure: Showing Hours worked with styling in attendances. 2018-06-13 15:23:20 +05:30
tanshu 927c693a6f Enabled page refreshing so that ledger and other reports can refresh by clicking show.
Fixed: Auth interceptor was swallowing the error.
2018-06-13 12:19:46 +05:30
tanshu bf14b46b15 Fixed the navbar to the top.
Made the font of the inputs in vouchers bigger by 25%
Made the narration textarea minimum 5 lines
Changed the favicon to the old favicon
2018-06-13 11:49:34 +05:30
tanshu 8c9a1a2191 Fix: Account save error 2018-06-13 11:49:16 +05:30
tanshu 4530052a22 ToCsvService to escape the fields during exportCsv.
Auth Interceptor to check for logged out user.
2018-06-11 22:14:04 +05:30
tanshu a811a121cc Added downoad to Raw Material Cost and fixed quantity not showing 2018-06-10 16:38:46 +05:30
tanshu 8996516978 Added loading bar
Fixed product, account and employee details for add new.
2018-06-10 13:58:01 +05:30
tanshu 659de0ae52 Error Fixed: Typo in employee functions 2018-06-09 17:39:08 +05:30
tanshu 5a63a8ce61 Attach Files is now an image placeholder and the actual control is hidden. 2018-06-09 17:34:57 +05:30
tanshu 6be1dd5a3a Moved to Angular 6.0
----

Pending
* Table width for the points column in incentive
* Linting
* keyboard navigation where it was used earlier
* can remove the unused totals calculated serverside in productledger
* spinner and loading bars
* Activate Guard for Employee Function tabs
* Progress for Fingerprint uploads
* deleted reconcile and receipe features as they were not being used
* focus the right control on component load
2018-06-09 17:05:11 +05:30