init
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Sales\Block\Adminhtml\Order\Invoice\View">
|
||||
<plugin name="esun_vat_invoice_download_button"
|
||||
type="Esun\VatInvoice\Plugin\Adminhtml\InvoiceViewButton"
|
||||
sortOrder="90"/>
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="admin">
|
||||
<route id="esun_vatinvoice" frontName="esun_vatinvoice">
|
||||
<module name="Esun_VatInvoice" before="Magento_Backend"/>
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
|
||||
<system>
|
||||
<section id="sales">
|
||||
<group id="esun_vat_invoice" translate="label" sortOrder="910"
|
||||
showInDefault="1" showInWebsite="1" showInStore="0">
|
||||
<label>VAT Invoice PDF</label>
|
||||
<field id="locale" translate="label comment" type="select" sortOrder="10"
|
||||
showInDefault="1" showInWebsite="1" showInStore="0">
|
||||
<label>Invoice Language</label>
|
||||
<comment>Applied to invoices belonging to this website. “Follow Store View” uses the order store locale.</comment>
|
||||
<source_model>Esun\VatInvoice\Model\Config\Source\Locale</source_model>
|
||||
</field>
|
||||
<field id="title" translate="label comment" type="text" sortOrder="20"
|
||||
showInDefault="1" showInWebsite="1" showInStore="0">
|
||||
<label>Invoice Title</label>
|
||||
<comment>Displayed as the large title at the top of the VAT invoice. If empty, the company name is used.</comment>
|
||||
</field>
|
||||
<field id="company_name" translate="label comment" type="text" sortOrder="30"
|
||||
showInDefault="1" showInWebsite="1" showInStore="0">
|
||||
<label>Company Name</label>
|
||||
<comment>Displayed in the COMPANY NAME field. If empty, Store Information > Store Name is used.</comment>
|
||||
</field>
|
||||
</group>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
Reference in New Issue
Block a user