VBLED Posted December 1, 2023 Share Posted December 1, 2023 It is very strange that one order can only have either invoice or delivery slip, it can not have both document, why the system design like this????? Link to comment Share on other sites More sharing options...
Daresh Posted December 1, 2023 Share Posted December 1, 2023 I can swear I've seen shops with both icons next to each other. Maybe it depends on some conditions or configuration. Maybe the order status for sent orders must also be marked as paid or something like that? Link to comment Share on other sites More sharing options...
VBLED Posted December 1, 2023 Author Share Posted December 1, 2023 The problem is I have to print the delivery slip firstly, and then I found the button: Gernerate Invoice is missing. So I have to delete the delivery slip file and then this button come back, and then I can generate invoice. If I firstly generate the invoice then I can not get the delivery note, this is very bad. Link to comment Share on other sites More sharing options...
VBLED Posted December 4, 2023 Author Share Posted December 4, 2023 OK, I found a solution: Change the file src\PrestaShopBundle\Resources\views\Admin\Sell\Order\Order\Blocks\View\documents.html.twig Remove the if condition below: {% if orderForViewing.documents.documents is empty and orderForViewing.invoiceManagementIsEnabled %} //keep inside code. {% endif %} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now