Invoicing Integration for iFirma and WooCommerce

Changelog

1.0.18

  • Fix: sync accounting month based on sale date (DataSprzedazy), not issue date — iFirma validates the sale date against the active accounting month, so syncing to today’s date was a no-op for backdated orders.

1.0.17

  • Fix: automatically sync iFirma accounting month before creating any document (invoice, proforma, rachunek, WDT, foreign, OSS) so backdated orders are recorded in the correct accounting period instead of the current one.

1.0.16

  • Docs: minor readme updates.

1.0.15

  • Docs: minor readme updates.

1.0.14

  • Fix: contractor sync and invoices — empty billing postcode (KodPocztowy) rejected by iFirma API (“adres.kodPocztowy nie może być puste”) while WooCommerce often has no postcode (e.g. UAE/Dubai and other countries, or omitted at checkout); we now substitute a configurable non-empty placeholder (default -). Override via WordPress filter devikit_ifirma_empty_postcode_placeholder.

1.0.13

  • Fix: OSS invoices — iFirma rejects KrajDostawy / Kontrahent.KodKraju GR (“Nieprawidłowy kraj dostawy… dwuliterowy kod ISO kraju z UE”); WooCommerce uses GR for Greece but the EU/VAT code expected in these fields is EL — same normalization as for PrefiksUE. Contractor KodKraju on sync also maps GR → EL.

1.0.12

  • Docs: readme screenshots section updated for WordPress.org asset screenshots (screenshot-1 through screenshot-10).

1.0.11

  • Fix: contractor sync / WDT — Greek customers billing as GR: iFirma requires EU VAT prefix EL, not ISO GR; Kontrahent.PrefiksUE is now normalized (fixes “Podana wartość Kontrahent.PrefiksUE przyjmuje nieprawidłową wartość” when only a numeric tax/VAT-like ID is entered).

1.0.10

  • Fix: invoices for customers from Romania (RO) and Portugal (PT) failed with “Podana wartość pola Jezyk przyjmuje nieprawidłową wartość” — iFirma API does not support ro or pt language codes; both now fall back to en (English).

1.0.9

  • New: append “Reverse charge” (translatable) to invoice notes for orders billed outside Poland and outside the EU when a tax identifier (NIP / EU VAT / Tax ID) is saved on the order.
  • Fix: customer My Account invoice PDF download uses the same iFirma document type as the admin button (_ifirma_invoice_type: foreign, OSS, WDT), not always domestic.

1.0.8

  • Fix: when WooCommerce prices are entered including tax, send gross unit prices to iFirma with LiczOd BRT (domestic, proforma, foreign currency, OSS, WDT, rachunek, corrections). Aligns document totals and VAT split with order totals charged at checkout.

1.0.7

  • Fix: non-Poland billing addresses use fakturawaluta (not domestic fakturakraj) even when the order is in PLN — avoids issuing Polish domestic invoices for foreign companies.
  • Fix: fakturawaluta in PLN — do not send exchange-rate related fields (e.g. KursWalutyWidoczny, NBP rate); fixes iFirma error about exchange rate only applying to non-PLN invoices.

1.0.6

  • Fix: WDT invoices — add required API field Waluta and NBP rate when the document currency is not PLN.
  • Fix: contractors and WDT — send Kontrahent.PrefiksUE only for valid EU member-state VAT prefixes; avoid invalid values for non-EU customers or non-EU tax IDs (iFirma API validation).

1.0.5

  • Compatibility: resolve order tax identifier (NIP / EU VAT / foreign Tax ID) from multiple order meta keys so values saved by third-party plugins (WooCommerce EU VAT Number, nip-field-for-woocommerce, custom checkout fields, etc.) are sent to iFirma under the NIP label.
  • New filters: devikit_ifirma_order_tax_id_meta_keys (customize the list of checked meta keys) and devikit_ifirma_order_tax_id (override the resolved value).

1.0.4

  • Fix: save_admin_order_nip – handle WP_Post passed by woocommerce_process_shop_order_meta in some WooCommerce versions

1.0.3

  • Plugin title: Invoicing Integration for iFirma and WooCommerce

1.0.2

  • Editable NIP field in order meta (admin order edit screen)

1.0.1

  • 5-minute delay for automatic invoice email (KSeF processing)
  • Order column: total mismatch indicator (order vs document sum) with tooltip
  • Compiled translations (pl_PL.mo)

1.0.0

  • Initial release
  • Manual invoice generation
  • Customer synchronization
  • Advanced VAT mapping
  • Customer invoice download
  • NIP field support with compatibility
  • HPOS compatibility
  • WooCommerce Blocks checkout support

Plugin Website
Visit website

Author
devikit
Version:
1.0.18
Last Updated
May 19, 2026
Active Installs
10
Requires
WordPress 5.8
Tested Up To
WordPress 6.9.4
Requires PHP
7.4

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.