Jurist Posted November 10, 2020 Share Posted November 10, 2020 Hello, To make every day tasks easier for the stores I am working for, I've received a request to allow cancelation invoice to be created. It needs to be simple document, similar to an invoice, only with values negated. I know that invoice is generated with the link in back office: submitAction=generateInvoicePDF&id_order_invoice=11111 I am going to create a similar button, with Generate cancelation invoice name, link probably will need to be something line that: submitAction=generateCancelationInvoicePDF&id_order_invoice=11111 I know the method needs to be created, in AdminPdfController.php file. The problem is, where the invoice data is loaded from? Function getInvoicesCollection doesn't show anything interesting, it's only related to getSibling method of OrderInvoice.php Where do I negate the values on the invoice? In the other places some values would need to be zeroed. Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted November 25, 2020 Share Posted November 25, 2020 It is called Credit slip. You can fully refund an order with the option to create the credit slip. 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