I want to allow the invoice save action once the order is in processing state for this i have to add some logics inside the Magento\Sales\Controller\Adminhtml\Order\Invoice save file. please advice me
-
please provide the code you want to add. easiest way is probably a observer or a plugin– Philipp SanderCommented Feb 22, 2019 at 12:21
-
@PhilippSander thank you so much for your reply.. i done with the plugin only. i made a mistake in preference type. ;)– Thilagavathy RathinaveluCommented Feb 22, 2019 at 14:18
Add a comment
|
1 Answer
etc/di.xml
create a file for this xx\yy\Controller\Adminhtml\Order\Invoice\Save.php inside the save.php file write your own logic.