Skip to content

Conversation

@kanha638
Copy link

@kanha638 kanha638 commented Mar 21, 2023

Proposed changes

Created 2 endpoints for getting the drafts/saved files of indent file for the user.

  1. purchase-and-store/drafts1 :
    The function is used to get all the designations hold by the user.by which we can get the drafts according to its designation/positon.

     @param:
             request - trivial.
    
     @variables:
             context - Holds data needed to make necessary changes in the template.
    
  2. purchase-and-store/draftview1/:designationID :

     The function is used to get all the files created by user(employee).
     It gets all files created by user by filtering file(table) object by user i.e,uploader.
     It displays user and file details of a file(table) of filetracking(model) in the
     template of 'Saved files (new)' tab for indentfile with multiple items.
    
     @param:
             request - trivial.
    
     @variables:
             draft - The File object filtered by uploader(user).
             extrainfo - The Extrainfo object.
             context - Holds data needed to make necessary changes in the template.
    

Brief description of what is fixed or changed

Types of changes

Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

Put an x in the boxes that apply

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have created new branch for this pull request
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • My changes does not break the current system and it passes all the current test cases.

Screenshots

Screenshot 2023-03-21 at 8 53 14 AM

Screenshot 2023-03-21 at 8 53 25 AM

Please attach the screenshots of the changes made in case of change in user interface

Other information

Any other information that is important to this pull request

Copy link

@harshp0702 harshp0702 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. @akshatnema

@akshatnema akshatnema merged commit fe92453 into FusionIIIT:ps-1 Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants