Skip to content

Commit f8c1a06

Browse files
ShashankShekhar07Anitesh2004Ritik8527Himanshu8850Pheonix7113
authored
Purchase V1 (GAD-6) (#1732)
* changed urls and views according to new frontend * changed indentview api to work with new frontend * [feat]: added controllers for viewing and deleting indents * forward indent apis completed * Added Archieved indent controller (#8) * added archieve viewing functionality * added archieve-view * correct-sign-token * sign-token * added archiveview and archive_file functionality * added approval functionality in indent,bill approval * Dynamic user access for outbox indents and archieve view. (#9) * added dynamic user outboxview functionality * added dynamic user functionality for archieveview * Added Stock Entry Functionality * dynamic username access for stockentry,archieve indent and outbox * Integrated notifications (#10) * updated backend * Gad 6 (#12) * Fix multiple indent forward problem; update PS1 application - Resolved issue with forwarding multiple indents simultaneously - Added new fields to IndentFile model: indent_name, description - Updated createProposal and forwardIndent views to handle new fields * Fix multiple indent forward problem; update PS1 application - Resolved issue with forwarding multiple indents simultaneously - Added new fields to IndentFile model: indent_name, description - Updated createProposal and forwardIndent views to handle new fields --------- Co-authored-by: Arun7113 <arunhyd2003@gmail.com> * fixed stock entry * Test os 3 (#1700) * Setup Email Notifications and architected new announcement system * Added module to announcement schema and lazy loading to specific_users * Added create announcement and get announcement apis and added redis as dependency * Sorted GET Announcement result order * department info api (#1) Co-authored-by: aarav0012 <aaravjainjn@email.com> * rspc notification api added --------- Co-authored-by: Akash Kumar Sah <akashsah2003@gmail.com> Co-authored-by: aarav0012 <aaravjainjn@email.com> * Dashboard client (#1697) * Get Booking data api added (#1) * bug: fix conditional rendering of booking req * Dashboard client (#3) * Get Booking data api added * active booking api * add: forwardBooking confirmBooking * Dashboard client (#4) * Get Booking data api added * active booking api * Added cancelled, active, completed booking view functionality * cancellation_request done * reject option works * Add items backend functionality (#5) * add: rooms availibility * fix: urls * add: Account statement backend (#6) * "add: account statements" * resolved MC * Updated visitor_hostel URLs and views:added partial booking API (#7) Co-authored-by: Arun7113 <arunhyd2003@gmail.com> * fix: partial booking feature * fix: completed bookings * fix: account statement * fix: correct income display on account statement --------- Co-authored-by: Hardik Vardaan <37293677+AtOM18@users.noreply.github.com> Co-authored-by: ompandey0703 <142932201+ompandey0703@users.noreply.github.com> Co-authored-by: Vishal-Github-21 <116187488+Vishal-Github-21@users.noreply.github.com> Co-authored-by: JATOTHU ARUN <167317035+Pheonix7113@users.noreply.github.com> Co-authored-by: Arun7113 <arunhyd2003@gmail.com> * All changes of Complaint Management (#1704) * eis module version 1 (#1706) * Minor changes for integration with frontend * fix: some minor fixes * minor fixes * add: updated urls.py and file upload * fix: multiple file uploads, and ajax dropdown cbv * add: added multiple drafts upload * fix: uncommented mess migrations * Department module Version 1 (#1709) * [Dashboard] Modified Profile views to fetch relevant data only (#1711) * SA-2 [New-UI] - updated APIs for use with fusion-client (#1717) * chore: added linting * changes in feedbackAPI * feat: added update bill excel (#4) * fix: migrations * Fix: Fixed an api endpoint allowed method (#5) * Added New API for Student Records, Implement Checks in RebateAPI. (#6) * Change in feedbackAPI * New API and filter in RebateApi * Fix merge * fix: api cleanup --------- Co-authored-by: S-tej <132924903+S-tej@users.noreply.github.com> Co-authored-by: Padarthi Karthik <133255355+karthikpadarthi@users.noreply.github.com> Co-authored-by: Green Mansion <90859709+PrinceBujethia@users.noreply.github.com> * SA-2 new UI updates (#1718) * chore: added linting * changes in feedbackAPI * feat: added update bill excel (#4) * fix: migrations * Fix: Fixed an api endpoint allowed method (#5) * Added New API for Student Records, Implement Checks in RebateAPI. (#6) * Change in feedbackAPI * New API and filter in RebateApi * Fix merge * fix: api cleanup * deployment fixes --------- Co-authored-by: S-tej <132924903+S-tej@users.noreply.github.com> Co-authored-by: Padarthi Karthik <133255355+karthikpadarthi@users.noreply.github.com> Co-authored-by: Green Mansion <90859709+PrinceBujethia@users.noreply.github.com> * Old version(gad 2) (#1721) * Added API folder in iwdModuleV2 * Added endpoints in API folder in iwdModuleV2 * Added additional endpoints in API folder in iwdModuleV2 * fix[api] : fetchdesignation, requestview * fix : view file endpoint * minor updates while updating the issue-work-order table (#4) * minor changes (#5) * minor changes * minor changes * approve/reject and view file * fix: work order * Minor changes in addBudget and editBudget endpoints (#6) * fix : serializer * modified views related to audit document view (#7) * Added API folder in iwdModuleV2 * modified views related to audit document view * fixed apis * fix: serializer overriding requestCreatedBdBy value * fix: serializer overriding requestCreatedBdBy value * fix api * chore: made handlers consistent * major fixes * fix: handle dean process request file attachment upload * fix : forward file --------- Co-authored-by: Bhargavzz <vishnubhargavsitra@gmail.com> Co-authored-by: Abhijeet <pabhijeet349@gmail.com> Co-authored-by: dotniiko <115548274+dotniiko@users.noreply.github.com> Co-authored-by: Dhruv Ratmele <129955117+Somgester@users.noreply.github.com> Co-authored-by: Abhijeet Patil <133658873+abhiJeetP10@users.noreply.github.com> Co-authored-by: Bhargavzz <133690080+Bhargavzz@users.noreply.github.com> * Revert "Old version(gad 2) (#1721)" (#1723) This reverts commit e528b98. * Gad 2 (Request based system) (#1726) * Added API folder in iwdModuleV2 * Added endpoints in API folder in iwdModuleV2 * Added additional endpoints in API folder in iwdModuleV2 * fix[api] : fetchdesignation, requestview * fix : view file endpoint * minor updates while updating the issue-work-order table (#4) * minor changes (#5) * minor changes * minor changes * approve/reject and view file * fix: work order * Minor changes in addBudget and editBudget endpoints (#6) * fix : serializer * modified views related to audit document view (#7) * Added API folder in iwdModuleV2 * modified views related to audit document view * fixed apis * fix: serializer overriding requestCreatedBdBy value * fix: serializer overriding requestCreatedBdBy value * fix api * chore: made handlers consistent * major fixes * fix: handle dean process request file attachment upload * fix : forward file * fix:migrations --------- Co-authored-by: Bhargavzz <vishnubhargavsitra@gmail.com> Co-authored-by: Abhijeet <pabhijeet349@gmail.com> Co-authored-by: dotniiko <115548274+dotniiko@users.noreply.github.com> Co-authored-by: Dhruv Ratmele <129955117+Somgester@users.noreply.github.com> Co-authored-by: Abhijeet Patil <133658873+abhiJeetP10@users.noreply.github.com> Co-authored-by: Bhargavzz <133690080+Bhargavzz@users.noreply.github.com> * SPACS Module version 1 (#1722) Note : This commit deletes the migration file of iwd module as instructed. * Add new migration files * created api folder * Added files in the scholarships/api directory * previous winners api * Api Created for previous winners * api made of previous winner and catalog * API's made for MCM & all three medals * making APIs to check status * Your descriptive commit message * api for editing the catalog by convenor or assistant * Made API for showing the mcm entries to spacs convenor and assistant * created apis for showing data of director silver and gold on clicking file button by convenor or assistant * api to view all applied application for director's gold to spacs convenor or assistant is implimented * api created for invite application * some other apis * Added API for Director_gold,Director Silver,MCM listing and MCM,director gold,director silverstatus update functionality * API for Director silver status update * Changed in views of Award and Scholarship * Update scholarships URLs and add migration files * fixing some bugs * mcm submission backend complete * mcm api complete * py _1829.py 19_1830.py -> FusionIIIT/applications/online_cms/migrations/0002_auto_20241116_1949.py 107_1924.py 112_2008.py 116_0233.py 116_0248.py 118_1545.py 118_1914.py rge_20241119_1829.py 1117_2324.py 1119_1830.py 41118_1545.py 1118_1917.py 1118_1921.py y _2044.py y y * some bugs of convenor api's are solved * migration files * delete duplicate migrations * Correct Migration files * Remove unwanted changes * files api in backend (#14) * make backend changes for convocation models and mcm * Add dm-proficiency apis * modify mcmstatus update view * removed unnecessary lines * Delete migration files * Delete a migration file --------- Co-authored-by: Ms Kumkum Kadhala <22bcs165@iiitdmj.ac.in> Co-authored-by: Harsh <its.the.boy.harsh@gmail.com> Co-authored-by: Ms Kumkum Kadhala <129649903+kumkum020704@users.noreply.github.com> Co-authored-by: Priyanshu <115771027+PriyanshuXcoder@users.noreply.github.com> Co-authored-by: harshit <harshitgangwar51102@gmail.com> * Dashboard client (#1727) * Os 2 (#10) * Announcements * Creted view relief page and completed patient history * implemented medical relief system add features to reject relief which required edit in notification module * Critical migration changes * Implemented feedback and api using django-rest framework new table to keep track of feedback only two api but handelling the different types requests using post data * fix: Resolved System check errors on latest_staging * chore: migrations for previous commit changes * Required changes in forms.py * Required changes in views and template files * changed files in templates * Fixes some error in Views.py response.body to response_body (#2) * removed unwanted migrations * Modified backeng views.py and api of Health Center (#3) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api --------- Co-authored-by: Challa Bharadwaj Reddy <129493843+ChallaBharadwajReddy@users.noreply.github.com> * Updated views.py for stock (#4) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated views.py (#5) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated views.py for compounder and student (#6) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated backend for compounder history * Updated views.py for compounder prescription (#7) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated backend for compounder history * Compounder_History minor changes * Corrected views.py for compounder prescription * Prescription for student completed (#8) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated backend for compounder history * Compounder_History minor changes * Corrected views.py for compounder prescription * Pres for student completed * removed unwanted globals commit --------- Co-authored-by: vamshi <rajavamshinath@gmail.com> Co-authored-by: ramG-reddy <venkataramgopal16@gmail.com> Co-authored-by: grvup <upadhyaygaurav450@gmail.com> Co-authored-by: Darpan Mehta <mehtadarpans2004@gmail.com> Co-authored-by: Divij Sharma <divijs75@gmail.com> Co-authored-by: Sahil Raj Verma <sahilrv196@gmail.com> * backend support for adding file for health center completed * upload file for followup implemented and N/A stock corrected * merged dashboard_client * Os 2 (#13) * Announcements * Creted view relief page and completed patient history * implemented medical relief system add features to reject relief which required edit in notification module * Critical migration changes * Implemented feedback and api using django-rest framework new table to keep track of feedback only two api but handelling the different types requests using post data * fix: Resolved System check errors on latest_staging * chore: migrations for previous commit changes * Required changes in forms.py * Required changes in views and template files * changed files in templates * Fixes some error in Views.py response.body to response_body (#2) * removed unwanted migrations * Modified backeng views.py and api of Health Center (#3) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api --------- Co-authored-by: Challa Bharadwaj Reddy <129493843+ChallaBharadwajReddy@users.noreply.github.com> * Updated views.py for stock (#4) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated views.py (#5) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated views.py for compounder and student (#6) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated backend for compounder history * Updated views.py for compounder prescription (#7) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated backend for compounder history * Compounder_History minor changes * Corrected views.py for compounder prescription * Prescription for student completed (#8) * Fixes some error in Views.py response.body to response_body * Modified backeng views.py and api * Updated Stock Backend Code * Updated backend for compounder history * Compounder_History minor changes * Corrected views.py for compounder prescription * Pres for student completed * removed unwanted globals commit --------- Co-authored-by: vamshi <rajavamshinath@gmail.com> Co-authored-by: ramG-reddy <venkataramgopal16@gmail.com> Co-authored-by: grvup <upadhyaygaurav450@gmail.com> Co-authored-by: Darpan Mehta <mehtadarpans2004@gmail.com> Co-authored-by: Divij Sharma <divijs75@gmail.com> Co-authored-by: Sahil Raj Verma <sahilrv196@gmail.com> --------- Co-authored-by: vamshi <rajavamshinath@gmail.com> Co-authored-by: ramG-reddy <venkataramgopal16@gmail.com> Co-authored-by: grvup <upadhyaygaurav450@gmail.com> Co-authored-by: Darpan Mehta <mehtadarpans2004@gmail.com> Co-authored-by: Divij Sharma <divijs75@gmail.com> Co-authored-by: Sahil Raj Verma <sahilrv196@gmail.com> * Dev gymkhana merge into dashboard : SA-3 GYMKHANA MODULE (#1729) * feat(feature): Added GymKhaanna APIs & DB Changes * feat(gymkhana): Added Acheivement Tables and Corresponding APIs * feat(feature&chore): API & Integration Co-authored-by: Avinash0504a ankemavinashchiru@gmail.com Co-authored-by: Blanca-Vern-2nd Lucky615b@gmail.com * feat(feature): Added functionality for Coordinator View & Budget Approvals & Migration for club_position * fests table backend * feat(KD SIR Feature: free members in current time based on events) * added newsletter backend * added backend for report * viewing report logic added * feat(deploy V1): Most required functions are done we need to work on feedback * feat(fix : removed Migration file changes) --------- Co-authored-by: Blanca-Vern-2nd <lucky615b@gmail.com> Co-authored-by: Sayali Kadam <22bcs122@iiitdmj.ac.in> * fix : remove migration * Delete Test/Fusion Automation Testing/.settings/org.eclipse.jdt.apt.core.prefs --------- Co-authored-by: anitesh <anitesh6307@gmail.com> Co-authored-by: Ritik <114828877+Ritik8527@users.noreply.github.com> Co-authored-by: Himanshu Choudhary <128601673+Himanshu8850@users.noreply.github.com> Co-authored-by: Anitesh2004 <129663186+Anitesh2004@users.noreply.github.com> Co-authored-by: JATOTHU ARUN <167317035+Pheonix7113@users.noreply.github.com> Co-authored-by: Arun7113 <arunhyd2003@gmail.com> Co-authored-by: Aarav Jain <128894052+aarav0012@users.noreply.github.com> Co-authored-by: Akash Kumar Sah <akashsah2003@gmail.com> Co-authored-by: aarav0012 <aaravjainjn@email.com> Co-authored-by: SHRAMAN PAUL <pkpaulpostdn@gmail.com> Co-authored-by: Hardik Vardaan <37293677+AtOM18@users.noreply.github.com> Co-authored-by: ompandey0703 <142932201+ompandey0703@users.noreply.github.com> Co-authored-by: Vishal-Github-21 <116187488+Vishal-Github-21@users.noreply.github.com> Co-authored-by: K.Charan Teja Reddy <129493881+Charan2437@users.noreply.github.com> Co-authored-by: Ramesh Babu <srameshbabu2004@gmail.com> Co-authored-by: Zaid Alam <predcodes695@gmail.com> Co-authored-by: Vithesh Krishna <133671028+Vithesh2215@users.noreply.github.com> Co-authored-by: Pratik Solanki <128511266+Pratik2026@users.noreply.github.com> Co-authored-by: Aditya Kumar Gupta <116958420+Adi8712@users.noreply.github.com> Co-authored-by: S-tej <132924903+S-tej@users.noreply.github.com> Co-authored-by: Padarthi Karthik <133255355+karthikpadarthi@users.noreply.github.com> Co-authored-by: Green Mansion <90859709+PrinceBujethia@users.noreply.github.com> Co-authored-by: Divyansh Bisht <115489768+dcoder13@users.noreply.github.com> Co-authored-by: Bhargavzz <vishnubhargavsitra@gmail.com> Co-authored-by: Abhijeet <pabhijeet349@gmail.com> Co-authored-by: dotniiko <115548274+dotniiko@users.noreply.github.com> Co-authored-by: Dhruv Ratmele <129955117+Somgester@users.noreply.github.com> Co-authored-by: Abhijeet Patil <133658873+abhiJeetP10@users.noreply.github.com> Co-authored-by: Bhargavzz <133690080+Bhargavzz@users.noreply.github.com> Co-authored-by: Akash Paloju <119884665+AkashPaloju@users.noreply.github.com> Co-authored-by: Ms Kumkum Kadhala <22bcs165@iiitdmj.ac.in> Co-authored-by: Harsh <its.the.boy.harsh@gmail.com> Co-authored-by: Ms Kumkum Kadhala <129649903+kumkum020704@users.noreply.github.com> Co-authored-by: Priyanshu <115771027+PriyanshuXcoder@users.noreply.github.com> Co-authored-by: harshit <harshitgangwar51102@gmail.com> Co-authored-by: Challa Bharadwaj Reddy <129493843+ChallaBharadwajReddy@users.noreply.github.com> Co-authored-by: vamshi <rajavamshinath@gmail.com> Co-authored-by: ramG-reddy <venkataramgopal16@gmail.com> Co-authored-by: grvup <upadhyaygaurav450@gmail.com> Co-authored-by: Darpan Mehta <mehtadarpans2004@gmail.com> Co-authored-by: Divij Sharma <divijs75@gmail.com> Co-authored-by: Sahil Raj Verma <sahilrv196@gmail.com> Co-authored-by: RISHIKESHk07 <117551967+RISHIKESHk07@users.noreply.github.com> Co-authored-by: Blanca-Vern-2nd <lucky615b@gmail.com> Co-authored-by: Sayali Kadam <22bcs122@iiitdmj.ac.in>
1 parent 3039d0b commit f8c1a06

File tree

5 files changed

+761
-178
lines changed

5 files changed

+761
-178
lines changed

FusionIIIT/applications/ps1/api/serializers.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from rest_framework import serializers #type:ignore
2-
from applications.ps1.models import IndentFile, File ,StockEntry,StockItem,StockTransfer
2+
from applications.ps1.models import IndentFile, File ,StockEntry,StockItem,StockTransfer,IndentItem
33
from applications.globals.models import ExtraInfo, HoldsDesignation
44
from applications.filetracking.models import Tracking
55

@@ -8,10 +8,24 @@ class Meta:
88
model = File
99
fields = '__all__'
1010

11+
# class IndentFileSerializer(serializers.ModelSerializer):
12+
# class Meta:
13+
# model = IndentFile
14+
# fields = '__all__'
15+
16+
# arun__________start______
17+
class IndentItemSerializer(serializers.ModelSerializer):
18+
class Meta:
19+
model = IndentItem
20+
fields = '__all__'
21+
1122
class IndentFileSerializer(serializers.ModelSerializer):
23+
items = IndentItemSerializer(many=True, read_only=True) # Nested serializer for related items
24+
1225
class Meta:
1326
model = IndentFile
1427
fields = '__all__'
28+
# arun__________end______
1529

1630
class ExtraInfoSerializer(serializers.ModelSerializer):
1731
class Meta:

FusionIIIT/applications/ps1/api/urls.py

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
11
from django.conf.urls import url
2-
2+
from django.urls import path
33
from . import views
44

55
urlpatterns = [
66
# to create a new indent file
77
url(r'^create_proposal/', views.createProposal, name='create-proposal'),
8-
8+
url(r'^create_draft/', views.createDraft, name='create-draft'),
9+
url(r'^delete_indent/', views.delete_indent, name='delete-indents'),
10+
url(r'^view_indent/', views.getOneFiledIndent, name='view-indent'),
11+
# path('create_indent/<int:id>/', views.createIndent, name='create-indent'),
12+
path('forward_indent/<int:id>/', views.forwardIndent, name='create-indent'),
913
# PENDING : TO CREATE A INDENT FILE DRAFT
10-
14+
path('user-suggestions', views.user_suggestions, name='user-suggestions'),
1115
# GET DESIGNATIONS USING USER TOKEN
1216
url(r'^getDesignations/', views.getDesignations, name='get-designations'),
1317

1418
# to get the indent files created by the user
15-
url(r'^indentview/(?P<id>\d+)$', views.indentView, name='indent-view'),
19+
path('indentview/<str:username>/', views.indentView, name='indent-view'),
20+
path('indentview2/<str:username>/', views.indentView2, name='indent-view2'),
21+
# url(r'^indentview2/(?P<id>\d+)$', views.indentView2, name='indent-view2'),
1622

1723
# to get the indent Files drafts by a user
18-
url(r'^draftview/(?P<id>\d+)$', views.draftView, name='draft-view'),
24+
path('draftview/<str:username>/', views.draftView, name='draft-view'),
1925

2026
# to get all the indent files inwarded to the user 'id' is holdsDesignation id.
2127
url(r'^inwardIndents/(?P<id>\d+)$', views.inwardIndents, name='inward-indents'),
2228

29+
30+
# url(r'^outboxview2/(?P<id>\d+)/$', views.outboxview2, name='outboxview2'),
31+
32+
2333
# to see the details of a specifc indent file
2434
url(r'^indentFile/(?P<id>\d+)$', views.indentFile, name='indent-file'),
2535

@@ -31,7 +41,7 @@
3141
url(r'^entry/(?P<id>\d+)$', views.entry, name='entry'),
3242

3343
# To add stock corresponding to a Indent File
34-
url(r'^stockEntry/(?P<id>\d+)$', views.stockEntry, name='stock-entry'),
44+
# url(r'^stockEntry/(?P<id>\d+)$', views.stockEntry, name='stock-entry'),
3545

3646
# To view all the stock entry details
3747
url(r'^stock_entry_view/(?P<id>\d+)$', views.stockEntryView, name='stock-entry-view'),
@@ -50,4 +60,11 @@
5060

5161

5262
url(r'^perform_transfer/(?P<id>\d+)$', views.performTransfer, name='perform-transfer'),
53-
]
63+
# url(r'^archieveview/(?P<id>\d+)$', views.archieveview, name='archievedview'),
64+
65+
url(r'^archieve_indent/(?P<id>\d+)/$', views.archieve_file, name='archieve-file'),
66+
67+
path('archieveview/<str:username>/', views.archieveview, name='archievedview'),
68+
path('outboxview2/<str:username>/', views.outboxview2, name='outboxview2'),
69+
path('stockEntry/<str:username>/', views.stockEntry, name='stock-entry'),
70+
]

0 commit comments

Comments
 (0)