A plugin that integrates PDF Invoices & Packing Slips for WooCommerce with myData greek tax system.
This plugin can be used to provide retail receipts (B2C) 11_1 and 11_2 through the MyData greek tax system. Receipt are created in your eshop and can be automatically transmitted to AADE through MyData API. No third-party API is needed and no charges are applied. Each receipt gets a ΜΑΡΚ number and QR code as legally required. Receipts are created through the PDF Invoices & Packing Slips for WooCommerce and are available in the WC orders Panel. They can be also be sent automatically to clients.
No invoices (B2B) can be transmitted, since AADE demands a third party provider to be involved.
The plugin is based on the PHP library Invoice Maker. Cudos for their amazing work!
To use this plugin you need PDF Invoices & Packing Slips and thus Woocommerce.
Download this repository as a zip file and upload it to your WordPress instalation as you would do with any other WP plugin.
You will need to configure myData Connector:
- Go to Settings > MyData Connector
- Provide the username and the key for myDATA API. The username is the one used for Taxis. You can create a key here. Visit the page and choose "Subscribe to myDATA REST API".
- Choose the receipt type: ΑΛΠ or ΑΠΥ
You will also need to configure the PDF Invoices & Packing Slips for WooCommerce plugin:
- Go to Woocommerce > PDF Invoices
- In tab "General" fill in the Store data. Don't forget the Shop VAT Number.
- In tab "Documents" enable your receipt type in PDF format
- Choose to attach the receipt on the Completed Order, to make sure you are already paid when you transmit a receipt.
- Choose to display invoice number and invoice date on the receipt.
- Add a Prefix. This will used as the receipt series. It's is essential and will be provided by your accountant.
You are ready to go! Start sending receipts to myData by enabling transmission in the plugin's settings.
A number of filters have been established in order for you to extend this plugin. All fiters can be found in includes/class-mydata-connector-helpers.php.
Use filter mydata_connector_payment_methods to map Payment Methods. Each payment method enabled in WooCommerce needs to be mapped to myData payment methods.
We use the WC payment method ID as provided in the URL yourwebiste.com/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=ID and the payment methods type set by invoicemaker.gr to set the mapping.
Example: 'bacs' => 'METHOD_6'
Use filter mydata_connector_tax_classes to map VAT classes. We map VAT percentages provided by order items with VAT classes set by invoicemaker.gr
Example: '24%' => 'VAT_1'
Use filter mydata_connector_income_classification_categories to map income categories. We use the income categories set by invoicemaker.gr. Specifically we use the following mapping according to product type:
$income_classification_categories = array( 'physical' => 'category1_2', //For products 'virtual' => 'category1_3', //For services 'default' => 'category1_1' //Default );
As for the income type we map all income as E3_561_003. To change this use filter mydata_connector_income_classification_types. Check the official AADE documentation for more.
You can check the open issues and contribute accordingly or open up new ones.
If you need support to intall this plugin or need some kind of modification contact as at contact@sociality.gr. Support is provided as a paid service.