Script to Retrieve Child Table Items (row by row) from Purchase Receipt?


I’d like to have a custom button on the Purchase Receipt DocType which will get selected values from one row in the Purchase Receipt Items child table, and each row in turn, to send them to client script for label printing.

Can I get the values via client script, or do I need a server script to call the values and send them to the client script?

I’ve tried looking at the ERPNext and Frappe framework docs but I’m not too clear on how to proceed.

Any suggestions welcome.