-2

After installation of Magento 2 GST extenstion, I try to create an invoice from the admin. But it showing error as cannot create an invoice.

enter image description here

This issue reported in github

  • what error. what have you tried to solve this? – Philipp Sander Jul 11 at 14:43
  • @Philipp I don't have much knowledge in Magento. Please find the error screenshot I updated. I think the error may be due to the updated schema of this module(but I will not sure) – Arul Jul 11 at 14:57
  • You might want to take a look at <Magento_Dir>/var/log/exception.log – coderGeek Jul 11 at 16:42
  • @coderGeek I am didn't get an exception but debug.log I am getting the following error. [2019-07-11 18:21:14] main.DEBUG: cache_invalidate: {"method":"GET","url":"127.0.0.1/magento/admin/sales/order/view/order_id/97/key/…":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} [] – Arul Jul 11 at 18:25
  • Try looking at system.log. If you were able to create invoices before installing the extension, then you might have to debug the extension. – coderGeek Jul 11 at 18:33
1

Finally i fixed the issue.I changed the following code in Codilar/Gst/view/adminhtml/layout/sales_order_invoice_new.xml. I changed as to name inside the reference block.

 <referenceBlock as="default">
    <action method="setTemplate" ifconfig="gst/codilar/status">
       <argument name="template" xsi:type="string">Codilar_Gst::order/invoice/create/items/renderer/default.phtml</argument>
    </action>
 </referenceBlock>

To

   <referenceBlock name="order_items.default">
       <action method="setTemplate" ifconfig="gst/codilar/status">
         <argument name="template" xsi:type="string">Codilar_Gst::order/invoice/create/items/renderer/default.phtml</argument>
       </action>
    </referenceBlock>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.