| 开发者 | harborplugins |
|---|---|
| 更新时间 | 2026年7月25日 01:35 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
hein_is_service - whether a line item is a service. By default a virtual or downloadable product is a service, which determines whether a cross-border EU supply is reported as an intra-community supply of goods or as a reverse charge on services. Use this filter for a service that is sold as an ordinary simple product.hein_tax_category - the resolved VAT category for a line, charge or allowance.hein_invoice_data - the complete invoice array before it is serialized.hein_invoice_number - the assigned invoice number.hein_buyer_endpoint - the buyer's electronic address, when it cannot be derived from a VAT number.hein_manage_capability - the capability required to generate and download an invoice. Defaults to edit_shop_order.hein_item_tax_percent - the VAT rate resolved for a line, when your tax setup is not one WooCommerce reports per line.hein_unit_code - the UN/ECE Rec 20 unit of measure for a line. Defaults to C62 (piece).hein_payment_means_code - the UNTDID 4461 payment means code derived from the order's gateway.hein_rounding_tolerance - how far the document total may differ from the sum of its parts before generation fails. Defaults to 0.05.hein_eu_countries - the list of country codes treated as EU member states.hein_generator_formats - the list of available invoice formats.hein_invoice_filename - the filename used for a downloaded invoice.hein_store_to_filesystem - whether an invoice is also written to the uploads folder.The order has no valid buyer VAT number, and the Peppol profile requires one. Either add the customer's VAT number to the VAT number field on the order screen and generate again, or switch the profile to EN 16931 under WooCommerce > E-Invoicing if you invoice consumers.
The category follows the tax that was actually charged. A line that carries a positive VAT rate is always standard rated. A line with no VAT is reported as an intra-community supply when the buyer is in another EU member state with a valid VAT number and the item is a physical product, as a reverse charge when it is a virtual or downloadable item, as an export when the buyer is outside the EU, as not subject to VAT when you have no VAT number of your own, and otherwise as zero rated or exempt, as configured.
A line counts as a service when the product is marked virtual or downloadable. If you sell a service as an ordinary simple product, use the hein_is_service filter to declare it.
In a database table that belongs to the plugin. A copy in your uploads folder is optional and can be turned off. Downloads always come from the database through WordPress, and require the capability to edit the order.
No. Once a number is assigned to an order it does not change, and regenerating the XML reissues the same number: the document is a rendering of one invoice, not a new one.
An invoice documents the original supply and is not altered by a later refund. Credit notes are not generated at all. The order screen shows a warning when an order has been refunded.
No. VAT numbers are checked offline against the published format for each member state. No request leaves your server.