wFirma Invoicing and Inventory Integration for Magento 2
- Compatibility
- 2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
Description / wFirma Invoicing and Inventory Integration for Magento 2
Magento Integration with wFirma Invoicing and Inventory Management
Connect Magento sales operations with documents and warehouses in wFirma. The module supports multiple stores and companies, different currencies, warehouse documents, production orders, and order picking.
Multistore Support
The module supports multistore environments, allowing invoices from individual store views (store_id) to be exported to separate wFirma accounts. This makes it possible to:
- Export invoices from all store views to one company in wFirma, simplifying centralized financial management.
- Export invoices from selected store views to different companies in wFirma, allowing several independent entities to be managed within a single Magento store.
This solution is particularly useful for companies selling internationally that need separate accounting accounts for different markets.
Document Numbering Series Mapping
Each Magento store view can be linked to a specific invoice numbering series in wFirma. This allows you to:
- Keep document numbering organized across different stores.
- Simplify accounting reconciliation.
This feature provides full control over how invoices are issued for each store.
Bulk Warehouse Operations
The module allows you to create warehouse documents in bulk, including:
- PW (Internal Receipt) – an internal goods receipt document used, for example, to add goods to a warehouse.
- RW (Internal Issue) – a document recording the internal consumption of materials within the company.
- PZ (External Receipt) – a document used to record deliveries from suppliers.
- WZ (External Issue) – a document recording the release of goods to a customer.
- MM (Inter-Warehouse Transfer) – enables goods to be transferred between warehouses.
By processing these documents in bulk, the store administrator can quickly update inventory levels and record the movement of goods.
Multiple Currency Support
The module allows invoices to be exported in different currencies according to the Magento settings. This makes it possible to:
- Automatically calculate invoice amounts based on exchange rates.
- Serve customers from different countries without manually converting currencies.
Warehouse Mapping
Warehouses in Magento can be mapped to their corresponding warehouses in wFirma, allowing you to:
- Accurately reflect the actual logistics structure of the company.
- Improve inventory synchronization.
Production Orders
The module generates PW documents for the specified wFirma warehouse based on production orders. This allows you to:
- Automatically record materials received into the warehouse.
- Manage production more easily.
Order Picking and Packing
After an order is shipped to the customer, the system automatically generates a WZ document, providing:
- Automatic shipment records.
- Consistency between inventory levels and actual shipments.
Pro Forma Invoices
The module allows you to issue pro forma invoices instead of standard VAT invoices. This is useful for:
- Prepayments for goods and services.
- Product reservations before an order is finalized.
Additional Integration Options
The module documentation also describes automatic or user-initiated order exports to wFirma, customer and product imports, and price and inventory updates from wFirma to Magento.
Invoices can be exported using a CRON job. The module saves the wFirma document ID with the Magento invoice and downloads PDF files to the var/invoices.
Installation and Configuration
Composer package: kowal/wfirma. After installation, enable Kowal_Emailerrors, Kowal_AttributesQuery and Kowal_WFirma, update Magento, and clear the cache. The package includes the Email and AttributesQuery modules and requires the kowal/base.
Begin configuration in Kowal → Wfirma → Settings in the admin panel. Configure the wFirma connection and assign companies, document series, and warehouses according to your store views and sales processes.
More Information
| Purchase information | |
|---|---|
| Theme compatibility | Luma / Blank, KOWAL |
Questions and Answers
Does the module support warehouse documents such as PW, RW, PZ, WZ, and MM in wFirma?
Is it possible to map Magento warehouses to warehouses in the wFirma system?
Does the module support sales in different currencies?
Does the installation require modifying Magento core or theme files?
Can customer data and products be imported from wFirma to Magento or vice versa?
Are there CRON jobs that automatically synchronize data between Magento and wFirma?
Can the module be used in B2B stores or with advanced logistics?
Which versions of Magento 2 is the module compatible with?
Do I receive technical support and updates after purchasing the module?
Module Installation Instructions
Installation
* In a production environment, please use the option --keep-generated
Type: Composer
-
Add the Composer repository to your configuration:
You will receive the access details for the Composer repository, the customer's email address and license token, by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace
TWOJ_EMAIL_KLIENTAwith your account email address andTWOJ_TOKENwith the token you received. Run the commands in the Magento root directory.composer config repositories.kowal composer https://repo.kowal.store -
Configure access to the Kowal Composer repository:
composer config http-basic.repo.kowal.store "TWOJ_EMAIL_KLIENTA" "TWOJ_TOKEN" -
Install the module using Composer:
composer require kowal/wfirma -
Apply the database updates:
php bin/magento setup:upgrade -
Clear the cache:
php bin/magento cache:flush
Module configuration
- Set the appropriate values in the administration panel under `Kowal / Wfirma / Ustawienia`
- Insert this code directly into the New Invoice email template:
{{block class='Kowal\WFirma\Block\InvoiceLink' area='frontend' invoice_id=$invoice.entity_id template='Kowal_WFirma::invoicelink.phtml'}}
CLI commands
- Export Magento invoices to wFirma.php bin/magento kowal_wfirma:exportinvoices
- Import the customer database from wFirma into Magento.php bin/magento kowal_wfirma:importcustomers
- Import the product database from wFirma into Magento.php bin/magento kowal_wfirma:importproducts
CRON tasks
- Runs every 2 minutes. Reads Magento invoices that have not yet been sent and generates wFirma invoices for them.kowal_wfirma_exportinvoice