Jump to content

Create cancellation invoice


Recommended Posts


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:


I am going to create a similar button, with Generate cancelation invoice name, link probably will need to be something line that:


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.




Share this post

Link to post
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More