indico icon indicating copy to clipboard operation
indico copied to clipboard

Documents: allow documents to be generated from within the registration details

Open pferreir opened this issue 1 year ago • 4 comments

The "Documents" feature is super useful, but in order to print a receipt for a single person I still have to fish them from the list, tick them and looks for the right button:

image

It would be much easier if we had a button like "Get Ticket" here:

image

pferreir avatar Mar 01 '24 13:03 pferreir

Hey @pferreir ! Can I work on this issue?

hitenvidhani avatar Apr 15 '24 09:04 hitenvidhani

You do not need to ask for permission to work on an issue. If you think you can contribute this, please simply go ahead.

ThiefMaster avatar Apr 15 '24 09:04 ThiefMaster

Here's some useful context from our internal chat around that topic which you may find useful:

it's almost a one-liner i just tested and calling printReceipts({registration_id: [123456], event_id: 5432}) worked in my test event to open the dialog the only "missing" part is that it does not reload the page afterwards to make the section with the available documents show up in the registration

Note: This is the kind of change that MUST be tested locally before you send a PR. See our documentation on how to install a dev version of Indico.

ThiefMaster avatar Apr 15 '24 09:04 ThiefMaster

Alright, thanks @ThiefMaster .

hitenvidhani avatar Apr 15 '24 09:04 hitenvidhani