chỉnh sửa vendor/magento/module-sales/etc/webapi.xml
dòng 112:
- <route url="/V1/invoices/:id/void" method="POST">
+ <route url="/V1/invoices/:id/voidInvoice" method="POST">
chỉnh sửa vendor/magento/module-sales/Block/Adminhtml/Order/Invoice/View.php
dòng 242:
- return $this->getUrl('sales/*/void', ['invoice_id' => $this->getInvoice()->getId()]);
+ return $this->getUrl('sales/*/voidInvoice', ['invoice_id' => $this->getInvoice()->getId()]);
chỉnh sửa vendor/magento/module-sales/Block/Adminhtml/Order/Creditmemo/View.php
dòng 183:
- return $this->getUrl('sales/*/void', ['creditmemo_id' => $this->getCreditmemo()->getId()]);
+ return $this->getUrl('sales/*/voidCreditmemo', ['creditmemo_id' => $this->getCreditmemo()->getId()]);
chỉnh sửa vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php
dòng 9:
- class Void extends \Magento\Sales\Controller\Adminhtml\Invoice\AbstractInvoice\View
+ class VoidInvoice extends \Magento\Sales\Controller\Adminhtml\Invoice\AbstractInvoice\View
chỉnh sửa vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php
dòng 10:
- class Void extends \Magento\Backend\App\Action
+ class VoidCreditmemo extends \Magento\Backend\App\Action
đổi tên
vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php
đến
vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/VoidCreditmemo.php
đổi tên
vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php
đến
vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/VoidInvoice.php