Hi, for this case I think you can use Grist, it might be the fastest way.
There you create data tables and set up logic for calculated columns using python.
After that you can use https://support.getgrist.com/widget-custom/#html-viewer to generate receipts