PDF generation error

Hi all

Any solutions for this issue? Whe I try to generate pdf reports

Fatal error : Call to a member function setCurrency() on null in  /home/admin/web/beautylanecom.devinstance.de/public_html/engine/Shopware/Components/Document.php  on line  537
503 Service Unavailable

shopware 5.1.3

Did you delete a currency?
Please check the order details if your order has a valid currency.