Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Add ability to create a PDF containing all information for a specific asset #14821

Closed
Glukose1 opened this issue Jun 4, 2024 · 9 comments

Comments

@Glukose1
Copy link

Glukose1 commented Jun 4, 2024

Is your feature request related to a problem? Please describe.

I want to print a page that contains the information for a single asset. I found the option to print reports but couldn't find a way to specify an asset. For example, I want all the information (history, serial, purchase date, asset tag, model, etc.) of the asset with the tag Company-Asset-Laptop-14456.

Describe the solution you'd like

I would like a "Print Asset Information" button on the hardware/asset_id page below the "Audit" button. When pressing this button, a form should open where you can choose the information you want to see on the report.

On the asset page are the tabs: Info, Licenses, Components, Assets, History, Maintenances, Files, and Additional Files.

The form should list these tabs (maybe excluding files and additional files as there is no data to print directly; if it is possible to add the files from these tabs to the end of the generated PDF, I would include them) and have a checkbox behind each of them, if the box is checked the data of that tab should be added to the PDF.

Here is a rough example of how the report could look:
Report-mock

Describe alternatives you've considered

I think this could become quite a complex feature to implement.

An easy solution for now would be adding a field where you can specify an asset by its tag on the report page to generate a report for that exact asset. But as these reports are only CSV files, they wouldn't really be suitable to attach to the exit protocol of a device when it is trashed, e.g.

So I think the solution described above would be better in the long term.

Additional context

No response

Copy link

welcome bot commented Jun 4, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@Glukose1 Glukose1 changed the title [Feature Request]: Add ability to specifiy an asset by its tag when creating a report [Feature Request]: Add ability to create a PDF containing all information for a specific asset Jun 4, 2024
@snipe
Copy link
Owner

snipe commented Jun 4, 2024

I think the better solution here would be to make the view asset page more printer friendly, no?

@Glukose1
Copy link
Author

Glukose1 commented Jun 4, 2024

Yes, that would work too. If this makes it easier to implement I am completly for it, my knowledge is however to limitited to judge this.

Only disadvantage that comes to my mind would be that this way there wouldn't really be a way to do a bulk actionfor printing these information summarys. I assume with an extra print to PDF feature that would be easier to implement.

@W01FPR1M3
Copy link

W01FPR1M3 commented Jul 6, 2024

I am also looking forward to this being implemented, this is what i'm suggesting (there can be a better way tho) :
adding a "print info" button next to "generate label"
[Path : view asset > info ]

on this page
image

something like this
print

@najirod
Copy link

najirod commented Aug 13, 2024

This feature would be incredibly valuable for us as well. For example, when replacing a laptop or another piece of equipment, managers often request information about the specific item an employee currently has. We typically respond by sending a screenshot. Similarly, during the offboarding process, HR frequently asks for details on specific equipment. It would be extremely convenient if we had the option to print or download a PDF with the completed fields for a particular asset.

@snipe
Copy link
Owner

snipe commented Aug 13, 2024

@najirod Can you not just Print > Save as PDF?

@najirod
Copy link

najirod commented Aug 13, 2024

@snipe
It is indeed possible, but not as elegant as a simple report that would look like a standard asset display (a table) in a printable format (screenshot). When attempting to print, all buttons and search bars remain visible (see attached PDF). Perhaps using a JavaScript option ("@media print") on the existing page would be possible, if possible. (I'm not a full-time developer, just some Python.)
Screenshot 2024-08-13 at 3 35 56 PM
View Asset 1119166243 __ Snipe-IT Asset Management Demo.pdf

@snipe
Copy link
Owner

snipe commented Aug 13, 2024

Would something like this work?

View Asset 37028370 :: Snipe-IT Demo.pdf

@najirod
Copy link

najirod commented Aug 13, 2024

@snipe For me and my usecases this is very nice! Simple, clean, familiar, links work... Perfect ❤️

@snipe snipe closed this as completed in 6e84c29 Aug 13, 2024
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

No branches or pull requests

4 participants