Changeset 3833117
- Timestamp:
- 11/29/2026 01:53:12 PM (less than one hour ago)
- Location:
- peppolkit
- Files:
-
- 6 edited
- 1 copied
-
tags/0.4.0 (copied) (copied from peppolkit/trunk )
-
tags/0.4.0/includes/class-admin.php (modified) (19 diffs)
-
tags/0.4.0/peppolkit.php (modified) (2 diffs)
-
tags/0.4.0/readme.txt (modified) (5 diffs)
-
trunk/includes/class-admin.php (modified) (19 diffs)
-
trunk/peppolkit.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
peppolkit/tags/0.4.0/includes/class-admin.php
r3814407 r3833117 14 14 15 15 /** Countries whose small-business scheme PeppolKit knows (invoices without VAT, with the scheme's mention). */ 16 const SMALL_BUSINESS_COUNTRIES = array( 'BE', 'NL', 'DE', 'LU' ); 17 18 /** Countries whose shops send over Peppol through PeppolKit from the Starter plan (Belgian shops: every plan, through SUPER PDP). */ 16 const SMALL_BUSINESS_COUNTRIES = array( 'BE', 'NL', 'DE', 'LU', 'AT' ); 17 18 /** Seller countries outside the EU: no EU distance-sales threshold (the dashboard hides it for them too). */ 19 const NON_EU_COUNTRIES = array( 'GB', 'NO' ); 20 21 /** 22 * Countries whose shops send over Peppol through PeppolKit from the Starter plan (Belgian shops: every plan, through 23 * SUPER PDP). Only used when GET /settings has no peppolKitOffered yet (an older PeppolKit app). 24 */ 19 25 const PEPPOLKIT_COUNTRIES = array( 'NL', 'DE', 'LU' ); 26 27 /** Seller countries where Peppol through PeppolKit is still to come: invoices go by e-mail until the API offers it. */ 28 const PEPPOL_COMING_COUNTRIES = array( 'GB', 'IE', 'AT', 'NO' ); 20 29 21 30 /** Company detail fields: key => label. */ … … 30 39 'taxNumber' => 'Steuernummer', 31 40 'registrationNumber' => __( 'KvK or enterprise number', 'peppolkit' ), 41 'registerCourt' => __( 'Firmenbuch court', 'peppolkit' ), 32 42 'email' => __( 'Invoice e-mail (reply-to)', 'peppolkit' ), 33 43 'iban' => __( 'IBAN', 'peppolkit' ), … … 44 54 'DE' => __( 'Germany', 'peppolkit' ), 45 55 'LU' => __( 'Luxembourg', 'peppolkit' ), 56 'GB' => __( 'United Kingdom', 'peppolkit' ), 57 'IE' => __( 'Ireland', 'peppolkit' ), 58 'AT' => __( 'Austria', 'peppolkit' ), 59 'NO' => __( 'Norway', 'peppolkit' ), 46 60 ); 47 61 } … … 193 207 // The Steuernummer only exists for a seller in Germany. 194 208 unset( $body['taxNumber'] ); 209 } 210 if ( 'AT' !== $country ) { 211 // The Firmenbuch court only exists for a seller in Austria. 212 unset( $body['registerCourt'] ); 213 } 214 if ( in_array( $country, self::NON_EU_COUNTRIES, true ) ) { 215 // No EU threshold outside the EU: the form hides the switch, and the dashboard saves it off. 216 $body['belowMicroThreshold'] = false; 195 217 } 196 218 // The small-business switch is only sent when the form showed it; otherwise PeppolKit keeps what it has. … … 311 333 private static function connect_form() { 312 334 // German and Luxembourg shops have Peppol only from the Starter plan; Dutch shops also on the free plan (Peppyrus). 313 if ( in_array( self::seller_country( array() ), array( 'DE', 'LU' ), true ) ) { 335 // UK, Irish, Austrian and Norwegian shops: no Peppol promise before the API says what their country has. 336 if ( in_array( self::seller_country( array() ), self::PEPPOL_COMING_COUNTRIES, true ) ) { 337 echo '<p>' . esc_html__( 'PeppolKit turns every paid order into an invoice with the right VAT and e-mails it to your customer. Connect your shop to start (free up to 20 invoices a month).', 'peppolkit' ) . '</p>'; 338 } elseif ( in_array( self::seller_country( array() ), array( 'DE', 'LU' ), true ) ) { 314 339 echo '<p>' . esc_html__( 'PeppolKit turns every paid order into an EU-compliant invoice. From the Starter plan it also sends it to business customers over Peppol. Connect your shop to start (free up to 20 invoices a month).', 'peppolkit' ) . '</p>'; 315 340 } else { … … 359 384 * (Peppol through PeppolKit needs a paid plan; German and Luxembourg shops never had Peppyrus). 360 385 * - 'quota': the old monthly number of Peppol sends, only for shops still set up that way. 386 * - 'coming': UK, Irish, Austrian and Norwegian sellers while PeppolKit does not offer Peppol for their country 387 * yet (peppolKitOffered false): invoices go by e-mail, and the shop hears when it can activate Peppol. 361 388 * 362 389 * @param array $remote Response of GET /settings. … … 383 410 return 'peppyrus'; 384 411 } 385 return in_array( self::seller_country( $remote ), self::PEPPOLKIT_COUNTRIES, true ) ? 'peppolkit' : 'peppyrus'; 412 if ( self::peppol_coming( $remote ) ) { 413 return 'coming'; 414 } 415 return self::peppolkit_offered( $remote ) ? 'peppolkit' : 'peppyrus'; 416 } 417 418 /** 419 * Whether PeppolKit offers Peppol through PeppolKit for the seller's country: the API says so (peppolKitOffered, 420 * which follows PeppolKit's switches per country); an older app without the field: the Netherlands, Germany and 421 * Luxembourg. 422 * 423 * @param array $remote Response of GET /settings. 424 */ 425 private static function peppolkit_offered( $remote ) { 426 if ( 'dokapi' === ( $remote['peppolVia'] ?? '' ) ) { 427 return true; 428 } 429 if ( array_key_exists( 'peppolKitOffered', $remote ) ) { 430 return (bool) $remote['peppolKitOffered']; 431 } 432 return in_array( self::seller_country( $remote ), self::PEPPOLKIT_COUNTRIES, true ); 433 } 434 435 /** 436 * A UK, Irish, Austrian or Norwegian seller for whom Peppol through PeppolKit is not offered yet. 437 * 438 * @param array $remote Response of GET /settings. 439 */ 440 private static function peppol_coming( $remote ) { 441 return in_array( self::seller_country( $remote ), self::PEPPOL_COMING_COUNTRIES, true ) && ! self::peppolkit_offered( $remote ); 386 442 } 387 443 … … 507 563 } elseif ( 'quota' === $mode ) { 508 564 self::usage_bar( __( 'Peppol sends', 'peppolkit' ), $usage['peppolThisMonth'] ?? 0, (int) ( $plan['peppolIncluded'] ?? 0 ) ); 565 } elseif ( 'coming' === $mode ) { 566 echo '<p><strong>' . esc_html__( 'Peppol', 'peppolkit' ) . '</strong> ' . esc_html__( 'through PeppolKit is coming for your country. You will get a message as soon as you can activate it. Until then your customers get their invoice by e-mail.', 'peppolkit' ) . '</p>'; 509 567 } else { 510 568 echo '<p><strong>' . esc_html__( 'Peppol', 'peppolkit' ) . '</strong> ' . esc_html__( 'is sent through your own free Peppyrus account and is not counted here.', 'peppolkit' ) . '</p>'; … … 571 629 'vatNumber' => $seller['vatNumber'] ?? null, 572 630 'registrationNumber' => $seller['registrationNumber'] ?? null, 631 'registerCourt' => $seller['registerCourt'] ?? null, 573 632 'email' => $seller['email'] ?? null, 574 633 'iban' => $remote['iban'] ?? ( $seller['iban'] ?? null ), … … 597 656 * @param string $country Seller country. 598 657 * @param string $via Peppol route from GET /settings (peppolVia). 599 */ 600 private static function plans_section( $mode, $country = '', $via = '' ) { 658 * @param bool $offered Peppol through PeppolKit is offered for the seller's country, see peppolkit_offered(). 659 */ 660 private static function plans_section( $mode, $country = '', $via = '', $offered = false ) { 601 661 // Dutch, German and Luxembourg shops: Peppol through PeppolKit on the paid plans; on the free plan Dutch shops 602 662 // use their own Peppyrus account, German ones the ZUGFeRD PDF and Luxembourg ones PDF and UBL by e-mail. 603 $own = 'dokapi' === $via || in_array( $country, self::PEPPOLKIT_COUNTRIES, true ); 663 // UK, Irish, Austrian and Norwegian shops while Peppol through PeppolKit is still to come: PDF and UBL by e-mail. 664 $own = 'dokapi' === $via || $offered; 604 665 $b = PeppolKit_Api::request( 'GET', '/billing' ); 605 666 if ( is_wp_error( $b ) || empty( $b['available'] ) ) { … … 609 670 foreach ( $b['plans'] as $p ) { 610 671 echo '<tr><td><strong>' . esc_html( self::plan_label( $p['name'] ) ) . '</strong></td><td>' . esc_html( null === $p['invoicesPerMonth'] ? __( 'Unlimited invoices', 'peppolkit' ) : sprintf( /* translators: %d: invoices */ __( '%d invoices / month', 'peppolkit' ), $p['invoicesPerMonth'] ) ) . '</td>'; 611 if ( $own ) { 672 if ( 'coming' === $mode ) { 673 $peppol = __( 'PDF and UBL by e-mail', 'peppolkit' ); 674 } elseif ( $own ) { 612 675 if ( 'Gratis' !== $p['name'] ) { 613 676 $peppol = __( 'Peppol through PeppolKit', 'peppolkit' ); 614 677 } elseif ( 'DE' === $country ) { 615 678 $peppol = __( 'E-invoice (ZUGFeRD) for every invoice to a business', 'peppolkit' ); 616 } elseif ( 'LU' === $country ) { 679 } elseif ( 'NL' !== $country ) { 680 // Luxembourg, and the UK, Ireland, Austria and Norway once offered: no free route over Peppol. 617 681 $peppol = __( 'PDF and UBL by e-mail', 'peppolkit' ); 618 682 } else { … … 707 771 /* translators: %s: plan name */ 708 772 __( 'Plan: %s · Peppol included for every invoice to a business.', 'peppolkit' ), 773 self::plan_label( $remote['plan']['name'] ) 774 ) 775 ) 776 ); 777 } elseif ( 'coming' === $mode ) { 778 printf( 779 '<p>%s</p>', 780 esc_html( 781 sprintf( 782 /* translators: %s: plan name */ 783 __( 'Plan: %s · Peppol through PeppolKit is coming for your country.', 'peppolkit' ), 709 784 self::plan_label( $remote['plan']['name'] ) 710 785 ) … … 737 812 } 738 813 739 self::plans_section( $mode, self::seller_country( is_wp_error( $remote ) ? array() : $remote ), is_wp_error( $remote ) ? '' : (string) ( $remote['peppolVia'] ?? '' ) );814 self::plans_section( $mode, self::seller_country( is_wp_error( $remote ) ? array() : $remote ), is_wp_error( $remote ) ? '' : (string) ( $remote['peppolVia'] ?? '' ), self::peppolkit_offered( is_wp_error( $remote ) ? array() : $remote ) ); 740 815 echo '<h2>' . esc_html__( 'Company details', 'peppolkit' ) . '</h2>'; 741 816 echo '<form method="post" action="' . esc_url( admin_url( 'admin-post.php' ) ) . '">'; … … 771 846 // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped -- $only() returns escaped attributes. 772 847 if ( 'vatNumber' === $k ) { 773 printf( '<tr><th><label for="pk-vatNumber"><span%s>%s</span><span%s>%s</span></label></th><td><input id="pk-vatNumber" name="vatNumber" class="regular-text" value="%s">', $only( 'NL BE FR LU ' ), esc_html( $label ), $only( 'DE' ), esc_html__( 'VAT number (USt-IdNr.)', 'peppolkit' ), esc_attr( $val( $k ) ) );848 printf( '<tr><th><label for="pk-vatNumber"><span%s>%s</span><span%s>%s</span></label></th><td><input id="pk-vatNumber" name="vatNumber" class="regular-text" value="%s">', $only( 'NL BE FR LU GB IE AT NO' ), esc_html( $label ), $only( 'DE' ), esc_html__( 'VAT number (USt-IdNr.)', 'peppolkit' ), esc_attr( $val( $k ) ) ); 774 849 $hint( 'DE', __( 'For example DE123456789. Fill in this or your Steuernummer, or both.', 'peppolkit' ) ); 775 850 $hint( 'LU', __( 'For example LU12345678.', 'peppolkit' ) ); 851 // United Kingdom: the UK VAT number is also the Peppol address (scheme 9932). 852 $hint( 'GB', __( 'For example GB123456789. Also becomes your Peppol address (9932).', 'peppolkit' ) ); 853 // Ireland and Austria: the VAT number is also the Peppol address (schemes 9935 and 9914). 854 $hint( 'IE', __( 'For example IE1234567T. Also becomes your Peppol address (9935).', 'peppolkit' ) ); 855 $hint( 'AT', __( 'For example ATU12345678. Also becomes your Peppol address (9914).', 'peppolkit' ) ); 856 // Norway: NO + organisasjonsnummer + MVA; the Peppol address (0192) is the organisasjonsnummer. 857 $hint( 'NO', __( 'For example NO123456785MVA.', 'peppolkit' ) ); 776 858 echo '</td></tr>'; 777 859 continue; … … 785 867 } 786 868 if ( 'registrationNumber' === $k ) { 787 printf( '<tr><th><label for="pk-registrationNumber"><span%s>%s</span><span%s>SIREN</span><span%s>%s</span><span%s>%s</span></label></th><td><input id="pk-registrationNumber" name="registrationNumber" class="regular-text" value="%s">', $only( 'NL BE' ), esc_html( $label ), $only( 'FR' ), $only( 'DE' ), esc_html__( 'Commercial register number (optional)', 'peppolkit' ), $only( 'LU' ), esc_html__( 'RCS number (R.C.S. Luxembourg)', 'peppolkit' ), esc_attr( $val( $k ) ) ); 869 // The label of the registration number follows the seller country. 870 $reg_labels = array( 871 'NL BE' => $label, 872 'FR' => 'SIREN', 873 'DE' => __( 'Commercial register number (optional)', 'peppolkit' ), 874 'LU' => __( 'RCS number (R.C.S. Luxembourg)', 'peppolkit' ), 875 'GB' => __( 'Companies House number', 'peppolkit' ), 876 'IE' => __( 'CRO number', 'peppolkit' ), 877 'AT' => 'Firmenbuchnummer', 878 'NO' => 'Organisasjonsnummer', 879 ); 880 echo '<tr><th><label for="pk-registrationNumber">'; 881 foreach ( $reg_labels as $codes => $text ) { 882 printf( '<span%s>%s</span>', $only( $codes ), esc_html( $text ) ); 883 } 884 printf( '</label></th><td><input id="pk-registrationNumber" name="registrationNumber" class="regular-text" value="%s">', esc_attr( $val( $k ) ) ); 788 885 $hint( 'FR', __( '9 digits. Leave empty and we take it from your French VAT number.', 'peppolkit' ) ); 789 886 $hint( 'DE', __( 'For example HRB 12345, only if your company is in the Handelsregister', 'peppolkit' ) ); 790 887 // Luxembourg: the RCS number ("B123456"), or the 11-digit matricule for a seller without one; PeppolKit checks it. 791 888 $hint( 'LU', __( 'For example B123456, or your 11-digit matricule if you have no RCS number. Required for a company (SA, SARL, SARL-S, SCA): it then appears on every invoice.', 'peppolkit' ) ); 889 // United Kingdom: the Companies House number, optional (sole traders and partnerships have none). 890 $hint( 'GB', __( 'For a limited company; leave empty if not registered at Companies House.', 'peppolkit' ) ); 891 // Ireland: the CRO number, digits only, optional (sole traders have none). 892 $hint( 'IE', __( 'Your number at the Companies Registration Office, for example 123456. Leave empty if you are not a company.', 'peppolkit' ) ); 893 // Austria: the Firmenbuchnummer, optional (only for businesses in the Firmenbuch). 894 $hint( 'AT', __( 'For example FN 123456a. Leave empty if you are not in the Firmenbuch.', 'peppolkit' ) ); 895 // Norway: the 9-digit organisasjonsnummer; PeppolKit takes it from the VAT number when left empty. 896 $hint( 'NO', __( '9 digits, for example 123 456 785. Leave empty to take it from your VAT number.', 'peppolkit' ) ); 897 echo '</td></tr>'; 898 continue; 899 } 900 if ( 'registerCourt' === $k ) { 901 // Austrian sellers: the Firmenbuch court, shown with the Firmenbuchnummer on the invoice (§ 14 UGB). 902 printf( '<tr%s><th><label for="pk-registerCourt">%s</label></th><td><input id="pk-registerCourt" name="registerCourt" class="regular-text" maxlength="80" value="%s">', $only( 'AT' ), esc_html( $label ), esc_attr( $val( $k ) ) ); 903 $hint( 'AT', __( 'For example Handelsgericht Wien.', 'peppolkit' ) ); 792 904 echo '</td></tr>'; 793 905 continue; … … 807 919 $check( 'peppolSend', __( 'Send invoices to business customers over Peppol', 'peppolkit' ), $flag( 'peppolSend', true ) ); 808 920 $check( 'ossRegistered', __( 'Registered for the EU One-Stop Shop (OSS)', 'peppolkit' ), $flag( 'ossRegistered', false ) ); 809 $check( 'belowMicroThreshold', __( 'Below €10,000 EU distance-sales threshold', 'peppolkit' ), $flag( 'belowMicroThreshold', false ) ); 810 // The small-business schemes: Belgium's exemption scheme, the Dutch KOR, Germany's § 19 UStG and Luxembourg's franchise (art. 57bis LTVA). 921 // The EU threshold is not for a seller outside the EU (United Kingdom, Norway). 922 $check( 'belowMicroThreshold', __( 'Below €10,000 EU distance-sales threshold', 'peppolkit' ), $flag( 'belowMicroThreshold', false ), implode( ' ', array_diff( array_keys( $countries ), self::NON_EU_COUNTRIES ) ) ); 923 // The small-business schemes: Belgium's exemption scheme, the Dutch KOR, Germany's § 19 UStG, Luxembourg's franchise (art. 57bis LTVA) 924 // and Austria's Kleinunternehmerregelung (§ 6 Abs. 1 Z 27 UStG 1994). 811 925 // Only when PeppolKit reports the switch, so the form never shows one that would not be stored. 812 926 $small = ! is_wp_error( $remote ) && array_key_exists( 'smallBusiness', (array) $remote ); … … 822 936 'DE' => __( 'For small businesses under § 19 UStG (Kleinunternehmerregelung). Every invoice then goes out without VAT, with the required mention "Steuerbefreiung für Kleinunternehmer gemäß § 19 UStG".', 'peppolkit' ), 823 937 'LU' => __( 'For shops under the Luxembourg exemption scheme for small businesses (franchise, up to € 50,000 turnover in Luxembourg). Every invoice then goes out without VAT, with the required mention "TVA non applicable – Article 57bis de la loi modifiée du 12 février 1979".', 'peppolkit' ), 938 'AT' => __( 'For small businesses under the Austrian Kleinunternehmerregelung (§ 6 Abs. 1 Z 27 UStG, up to €55,000 turnover). Every invoice then goes out without VAT, with the mention "Umsatzsteuerfrei aufgrund der Kleinunternehmerregelung".', 'peppolkit' ), 824 939 ) 825 940 ); … … 852 967 $country = self::seller_country( $ok ? $remote : array() ); 853 968 $belgian = 'superpdp' === $via || 'BE' === $country; 854 $own = 'dokapi' === $via || ( in_array( $country, self::PEPPOLKIT_COUNTRIES, true ) && ! $belgian ); 969 $own = 'dokapi' === $via || ( self::peppolkit_offered( $ok ? $remote : array() ) && ! $belgian ); 970 $coming = ! $belgian && self::peppol_coming( $ok ? $remote : array() ); 855 971 if ( 'FR' === $country && ! $active ) { 856 972 echo '<h2>' . esc_html__( 'French e-invoicing', 'peppolkit' ) . '</h2>'; … … 875 991 } elseif ( $own && 'dokapi' === $via && $active ) { 876 992 echo '<p><strong>' . esc_html__( 'Connected: invoices to business customers go over Peppol through PeppolKit.', 'peppolkit' ) . '</strong></p>'; 993 } elseif ( $coming ) { 994 // UK, Irish, Austrian and Norwegian shops until PeppolKit offers Peppol for their country (peppolKitOffered). 995 echo '<p>' . esc_html__( 'Peppol through PeppolKit is coming for your country. You will get a message as soon as you can activate it. Until then your customers get their invoice by e-mail.', 'peppolkit' ) . '</p>'; 877 996 } else { 878 // Dutch, German and Luxembourg shops: Peppol through PeppolKitfrom the Starter plan, activated in the dashboard.879 echo '<p>' . esc_html __( 'Shops in the Netherlands, Germany and Luxembourg send invoices to business customers over Peppol through PeppolKit, from the Starter plan. Activate Peppol once in the PeppolKit dashboard. Consumers get their invoice by e-mail.', 'peppolkit') . '</p><p>';997 // Shops whose country PeppolKit offers Peppol for (the API's peppolKitOffered): from the Starter plan, activated in the dashboard. 998 echo '<p>' . esc_html( $own ? __( 'Your shop can send invoices to business customers over Peppol through PeppolKit, from the Starter plan. Activate Peppol once in the PeppolKit dashboard. Consumers get their invoice by e-mail.', 'peppolkit' ) : __( 'Invoices to business customers go over Peppol through PeppolKit where it is available for your country, from the Starter plan. The PeppolKit dashboard shows it under Settings > Peppol. Consumers get their invoice by e-mail.', 'peppolkit' ) ) . '</p><p>'; 880 999 self::button( 'peppolkit_dashboard', __( 'Activate Peppol in the dashboard', 'peppolkit' ), 'button button-primary', array( 'target' => 'peppol' ) ); 881 1000 echo '</p>'; -
peppolkit/tags/0.4.0/peppolkit.php
r3814407 r3833117 4 4 * Plugin URI: https://peppolkit.com/woocommerce/ 5 5 * Description: Turns every paid order into an EU-compliant invoice (PDF + Peppol UBL), with VIES-checked reverse charge, credit notes on refunds and sending over the Peppol network. 6 * Version: 0. 3.26 * Version: 0.4.0 7 7 * Requires at least: 6.4 8 8 * Requires PHP: 7.4 … … 18 18 defined( 'ABSPATH' ) || exit; 19 19 20 define( 'PEPPOLKIT_VERSION', '0. 3.2' );20 define( 'PEPPOLKIT_VERSION', '0.4.0' ); 21 21 define( 'PEPPOLKIT_FILE', __FILE__ ); 22 22 if ( ! defined( 'PEPPOLKIT_API_URL' ) ) { -
peppolkit/tags/0.4.0/readme.txt
r3815178 r3833117 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 0. 3.27 Stable tag: 0.4.0 8 8 License: GPLv2 or later 9 9 … … 16 16 https://www.youtube.com/watch?v=Xj_2CZhYyXI 17 17 18 Since 1 January 2026 Belgian businesses must send and receive B2B invoices as structured e-invoices over the Peppol network. A PDF is no longer enough for a Belgian business customer. PeppolKit does this for you: you install the plugin, connect your shop and fill in your company details once. From then on every paid order gets its invoice automatically. Your shop can be established in the Netherlands, Belgium, France, Germany or Luxembourg.18 Since 1 January 2026 Belgian businesses must send and receive B2B invoices as structured e-invoices over the Peppol network. A PDF is no longer enough for a Belgian business customer. PeppolKit does this for you: you install the plugin, connect your shop and fill in your company details once. From then on every paid order gets its invoice automatically. Your shop can be established in the Netherlands, Belgium, France, Germany, Luxembourg, Austria, Ireland, the United Kingdom or Norway. 19 19 20 20 More about PeppolKit for WooCommerce: [peppolkit.com/en/woocommerce](https://peppolkit.com/en/woocommerce/?utm_source=wordpress&utm_medium=marketplace&utm_campaign=listing) … … 45 45 * **German shops:** business customers in Germany also get the invoice by e-mail as a ZUGFeRD PDF (EN 16931 profile), included in every plan. You fill in your USt-IdNr. or your Steuernummer, and there is a switch for Kleinunternehmer (§ 19 UStG). 46 46 * **Luxembourg shops:** you fill in your RCS number (for example B123456) or your matricule, invoices are in French by default, and there is a switch for the small-business franchise (art. 57bis LTVA). 47 * **Shops in the United Kingdom, Ireland, Austria and Norway:** invoices with the right VAT for your country, e-mailed as a PDF, with the UBL e-invoice attached for business customers with a VAT number. You fill in your Companies House number (UK), CRO number (Ireland), Firmenbuchnummer and court (Austria, with a switch for the Kleinunternehmerregelung) or organisasjonsnummer (Norway). Peppol through PeppolKit is coming for these countries; the plugin and the dashboard show it as soon as you can activate it. 47 48 48 49 PeppolKit can also receive your suppliers' Peppol invoices: Belgian shops in every plan, shops in the Netherlands, Germany and Luxembourg from the Starter plan (optional, €0.20 per received document). … … 130 131 = Does it work for shops outside the Netherlands and Belgium? = 131 132 132 The seller must be established in the Netherlands, Belgium, France, Germany or Luxembourg. Customers can be anywhere: PeppolKit applies reverse charge for EU businesses, OSS or the €10,000 threshold for EU consumers, and export rules outside the EU.133 The seller must be established in the Netherlands, Belgium, France, Germany, Luxembourg, Austria, Ireland, the United Kingdom or Norway. Customers can be anywhere: PeppolKit applies reverse charge for EU businesses, OSS or the €10,000 threshold for EU consumers, and export rules outside the EU. 133 134 134 135 = Does it work with the block checkout and HPOS? = … … 173 174 174 175 == Changelog == 176 177 = 0.4.0 = 178 * Shops in the United Kingdom, Ireland, Austria and Norway: the four countries are in the country list, with their VAT number hints and registration numbers (Companies House number, CRO number, Firmenbuchnummer with the Firmenbuch court, organisasjonsnummer). Austrian shops get the small-business switch for the Kleinunternehmerregelung (§ 6 Abs. 1 Z 27 UStG). The EU €10,000 threshold switch is hidden for the United Kingdom and Norway, which are outside the EU. 179 * The Peppol section no longer keeps its own country list: it follows what PeppolKit offers for your country. Shops in the United Kingdom, Ireland, Austria and Norway see that Peppol through PeppolKit is coming for their country and get a message as soon as they can activate it; until then their invoices go by e-mail. 175 180 176 181 = 0.3.2 = -
peppolkit/trunk/includes/class-admin.php
r3814407 r3833117 14 14 15 15 /** Countries whose small-business scheme PeppolKit knows (invoices without VAT, with the scheme's mention). */ 16 const SMALL_BUSINESS_COUNTRIES = array( 'BE', 'NL', 'DE', 'LU' ); 17 18 /** Countries whose shops send over Peppol through PeppolKit from the Starter plan (Belgian shops: every plan, through SUPER PDP). */ 16 const SMALL_BUSINESS_COUNTRIES = array( 'BE', 'NL', 'DE', 'LU', 'AT' ); 17 18 /** Seller countries outside the EU: no EU distance-sales threshold (the dashboard hides it for them too). */ 19 const NON_EU_COUNTRIES = array( 'GB', 'NO' ); 20 21 /** 22 * Countries whose shops send over Peppol through PeppolKit from the Starter plan (Belgian shops: every plan, through 23 * SUPER PDP). Only used when GET /settings has no peppolKitOffered yet (an older PeppolKit app). 24 */ 19 25 const PEPPOLKIT_COUNTRIES = array( 'NL', 'DE', 'LU' ); 26 27 /** Seller countries where Peppol through PeppolKit is still to come: invoices go by e-mail until the API offers it. */ 28 const PEPPOL_COMING_COUNTRIES = array( 'GB', 'IE', 'AT', 'NO' ); 20 29 21 30 /** Company detail fields: key => label. */ … … 30 39 'taxNumber' => 'Steuernummer', 31 40 'registrationNumber' => __( 'KvK or enterprise number', 'peppolkit' ), 41 'registerCourt' => __( 'Firmenbuch court', 'peppolkit' ), 32 42 'email' => __( 'Invoice e-mail (reply-to)', 'peppolkit' ), 33 43 'iban' => __( 'IBAN', 'peppolkit' ), … … 44 54 'DE' => __( 'Germany', 'peppolkit' ), 45 55 'LU' => __( 'Luxembourg', 'peppolkit' ), 56 'GB' => __( 'United Kingdom', 'peppolkit' ), 57 'IE' => __( 'Ireland', 'peppolkit' ), 58 'AT' => __( 'Austria', 'peppolkit' ), 59 'NO' => __( 'Norway', 'peppolkit' ), 46 60 ); 47 61 } … … 193 207 // The Steuernummer only exists for a seller in Germany. 194 208 unset( $body['taxNumber'] ); 209 } 210 if ( 'AT' !== $country ) { 211 // The Firmenbuch court only exists for a seller in Austria. 212 unset( $body['registerCourt'] ); 213 } 214 if ( in_array( $country, self::NON_EU_COUNTRIES, true ) ) { 215 // No EU threshold outside the EU: the form hides the switch, and the dashboard saves it off. 216 $body['belowMicroThreshold'] = false; 195 217 } 196 218 // The small-business switch is only sent when the form showed it; otherwise PeppolKit keeps what it has. … … 311 333 private static function connect_form() { 312 334 // German and Luxembourg shops have Peppol only from the Starter plan; Dutch shops also on the free plan (Peppyrus). 313 if ( in_array( self::seller_country( array() ), array( 'DE', 'LU' ), true ) ) { 335 // UK, Irish, Austrian and Norwegian shops: no Peppol promise before the API says what their country has. 336 if ( in_array( self::seller_country( array() ), self::PEPPOL_COMING_COUNTRIES, true ) ) { 337 echo '<p>' . esc_html__( 'PeppolKit turns every paid order into an invoice with the right VAT and e-mails it to your customer. Connect your shop to start (free up to 20 invoices a month).', 'peppolkit' ) . '</p>'; 338 } elseif ( in_array( self::seller_country( array() ), array( 'DE', 'LU' ), true ) ) { 314 339 echo '<p>' . esc_html__( 'PeppolKit turns every paid order into an EU-compliant invoice. From the Starter plan it also sends it to business customers over Peppol. Connect your shop to start (free up to 20 invoices a month).', 'peppolkit' ) . '</p>'; 315 340 } else { … … 359 384 * (Peppol through PeppolKit needs a paid plan; German and Luxembourg shops never had Peppyrus). 360 385 * - 'quota': the old monthly number of Peppol sends, only for shops still set up that way. 386 * - 'coming': UK, Irish, Austrian and Norwegian sellers while PeppolKit does not offer Peppol for their country 387 * yet (peppolKitOffered false): invoices go by e-mail, and the shop hears when it can activate Peppol. 361 388 * 362 389 * @param array $remote Response of GET /settings. … … 383 410 return 'peppyrus'; 384 411 } 385 return in_array( self::seller_country( $remote ), self::PEPPOLKIT_COUNTRIES, true ) ? 'peppolkit' : 'peppyrus'; 412 if ( self::peppol_coming( $remote ) ) { 413 return 'coming'; 414 } 415 return self::peppolkit_offered( $remote ) ? 'peppolkit' : 'peppyrus'; 416 } 417 418 /** 419 * Whether PeppolKit offers Peppol through PeppolKit for the seller's country: the API says so (peppolKitOffered, 420 * which follows PeppolKit's switches per country); an older app without the field: the Netherlands, Germany and 421 * Luxembourg. 422 * 423 * @param array $remote Response of GET /settings. 424 */ 425 private static function peppolkit_offered( $remote ) { 426 if ( 'dokapi' === ( $remote['peppolVia'] ?? '' ) ) { 427 return true; 428 } 429 if ( array_key_exists( 'peppolKitOffered', $remote ) ) { 430 return (bool) $remote['peppolKitOffered']; 431 } 432 return in_array( self::seller_country( $remote ), self::PEPPOLKIT_COUNTRIES, true ); 433 } 434 435 /** 436 * A UK, Irish, Austrian or Norwegian seller for whom Peppol through PeppolKit is not offered yet. 437 * 438 * @param array $remote Response of GET /settings. 439 */ 440 private static function peppol_coming( $remote ) { 441 return in_array( self::seller_country( $remote ), self::PEPPOL_COMING_COUNTRIES, true ) && ! self::peppolkit_offered( $remote ); 386 442 } 387 443 … … 507 563 } elseif ( 'quota' === $mode ) { 508 564 self::usage_bar( __( 'Peppol sends', 'peppolkit' ), $usage['peppolThisMonth'] ?? 0, (int) ( $plan['peppolIncluded'] ?? 0 ) ); 565 } elseif ( 'coming' === $mode ) { 566 echo '<p><strong>' . esc_html__( 'Peppol', 'peppolkit' ) . '</strong> ' . esc_html__( 'through PeppolKit is coming for your country. You will get a message as soon as you can activate it. Until then your customers get their invoice by e-mail.', 'peppolkit' ) . '</p>'; 509 567 } else { 510 568 echo '<p><strong>' . esc_html__( 'Peppol', 'peppolkit' ) . '</strong> ' . esc_html__( 'is sent through your own free Peppyrus account and is not counted here.', 'peppolkit' ) . '</p>'; … … 571 629 'vatNumber' => $seller['vatNumber'] ?? null, 572 630 'registrationNumber' => $seller['registrationNumber'] ?? null, 631 'registerCourt' => $seller['registerCourt'] ?? null, 573 632 'email' => $seller['email'] ?? null, 574 633 'iban' => $remote['iban'] ?? ( $seller['iban'] ?? null ), … … 597 656 * @param string $country Seller country. 598 657 * @param string $via Peppol route from GET /settings (peppolVia). 599 */ 600 private static function plans_section( $mode, $country = '', $via = '' ) { 658 * @param bool $offered Peppol through PeppolKit is offered for the seller's country, see peppolkit_offered(). 659 */ 660 private static function plans_section( $mode, $country = '', $via = '', $offered = false ) { 601 661 // Dutch, German and Luxembourg shops: Peppol through PeppolKit on the paid plans; on the free plan Dutch shops 602 662 // use their own Peppyrus account, German ones the ZUGFeRD PDF and Luxembourg ones PDF and UBL by e-mail. 603 $own = 'dokapi' === $via || in_array( $country, self::PEPPOLKIT_COUNTRIES, true ); 663 // UK, Irish, Austrian and Norwegian shops while Peppol through PeppolKit is still to come: PDF and UBL by e-mail. 664 $own = 'dokapi' === $via || $offered; 604 665 $b = PeppolKit_Api::request( 'GET', '/billing' ); 605 666 if ( is_wp_error( $b ) || empty( $b['available'] ) ) { … … 609 670 foreach ( $b['plans'] as $p ) { 610 671 echo '<tr><td><strong>' . esc_html( self::plan_label( $p['name'] ) ) . '</strong></td><td>' . esc_html( null === $p['invoicesPerMonth'] ? __( 'Unlimited invoices', 'peppolkit' ) : sprintf( /* translators: %d: invoices */ __( '%d invoices / month', 'peppolkit' ), $p['invoicesPerMonth'] ) ) . '</td>'; 611 if ( $own ) { 672 if ( 'coming' === $mode ) { 673 $peppol = __( 'PDF and UBL by e-mail', 'peppolkit' ); 674 } elseif ( $own ) { 612 675 if ( 'Gratis' !== $p['name'] ) { 613 676 $peppol = __( 'Peppol through PeppolKit', 'peppolkit' ); 614 677 } elseif ( 'DE' === $country ) { 615 678 $peppol = __( 'E-invoice (ZUGFeRD) for every invoice to a business', 'peppolkit' ); 616 } elseif ( 'LU' === $country ) { 679 } elseif ( 'NL' !== $country ) { 680 // Luxembourg, and the UK, Ireland, Austria and Norway once offered: no free route over Peppol. 617 681 $peppol = __( 'PDF and UBL by e-mail', 'peppolkit' ); 618 682 } else { … … 707 771 /* translators: %s: plan name */ 708 772 __( 'Plan: %s · Peppol included for every invoice to a business.', 'peppolkit' ), 773 self::plan_label( $remote['plan']['name'] ) 774 ) 775 ) 776 ); 777 } elseif ( 'coming' === $mode ) { 778 printf( 779 '<p>%s</p>', 780 esc_html( 781 sprintf( 782 /* translators: %s: plan name */ 783 __( 'Plan: %s · Peppol through PeppolKit is coming for your country.', 'peppolkit' ), 709 784 self::plan_label( $remote['plan']['name'] ) 710 785 ) … … 737 812 } 738 813 739 self::plans_section( $mode, self::seller_country( is_wp_error( $remote ) ? array() : $remote ), is_wp_error( $remote ) ? '' : (string) ( $remote['peppolVia'] ?? '' ) );814 self::plans_section( $mode, self::seller_country( is_wp_error( $remote ) ? array() : $remote ), is_wp_error( $remote ) ? '' : (string) ( $remote['peppolVia'] ?? '' ), self::peppolkit_offered( is_wp_error( $remote ) ? array() : $remote ) ); 740 815 echo '<h2>' . esc_html__( 'Company details', 'peppolkit' ) . '</h2>'; 741 816 echo '<form method="post" action="' . esc_url( admin_url( 'admin-post.php' ) ) . '">'; … … 771 846 // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped -- $only() returns escaped attributes. 772 847 if ( 'vatNumber' === $k ) { 773 printf( '<tr><th><label for="pk-vatNumber"><span%s>%s</span><span%s>%s</span></label></th><td><input id="pk-vatNumber" name="vatNumber" class="regular-text" value="%s">', $only( 'NL BE FR LU ' ), esc_html( $label ), $only( 'DE' ), esc_html__( 'VAT number (USt-IdNr.)', 'peppolkit' ), esc_attr( $val( $k ) ) );848 printf( '<tr><th><label for="pk-vatNumber"><span%s>%s</span><span%s>%s</span></label></th><td><input id="pk-vatNumber" name="vatNumber" class="regular-text" value="%s">', $only( 'NL BE FR LU GB IE AT NO' ), esc_html( $label ), $only( 'DE' ), esc_html__( 'VAT number (USt-IdNr.)', 'peppolkit' ), esc_attr( $val( $k ) ) ); 774 849 $hint( 'DE', __( 'For example DE123456789. Fill in this or your Steuernummer, or both.', 'peppolkit' ) ); 775 850 $hint( 'LU', __( 'For example LU12345678.', 'peppolkit' ) ); 851 // United Kingdom: the UK VAT number is also the Peppol address (scheme 9932). 852 $hint( 'GB', __( 'For example GB123456789. Also becomes your Peppol address (9932).', 'peppolkit' ) ); 853 // Ireland and Austria: the VAT number is also the Peppol address (schemes 9935 and 9914). 854 $hint( 'IE', __( 'For example IE1234567T. Also becomes your Peppol address (9935).', 'peppolkit' ) ); 855 $hint( 'AT', __( 'For example ATU12345678. Also becomes your Peppol address (9914).', 'peppolkit' ) ); 856 // Norway: NO + organisasjonsnummer + MVA; the Peppol address (0192) is the organisasjonsnummer. 857 $hint( 'NO', __( 'For example NO123456785MVA.', 'peppolkit' ) ); 776 858 echo '</td></tr>'; 777 859 continue; … … 785 867 } 786 868 if ( 'registrationNumber' === $k ) { 787 printf( '<tr><th><label for="pk-registrationNumber"><span%s>%s</span><span%s>SIREN</span><span%s>%s</span><span%s>%s</span></label></th><td><input id="pk-registrationNumber" name="registrationNumber" class="regular-text" value="%s">', $only( 'NL BE' ), esc_html( $label ), $only( 'FR' ), $only( 'DE' ), esc_html__( 'Commercial register number (optional)', 'peppolkit' ), $only( 'LU' ), esc_html__( 'RCS number (R.C.S. Luxembourg)', 'peppolkit' ), esc_attr( $val( $k ) ) ); 869 // The label of the registration number follows the seller country. 870 $reg_labels = array( 871 'NL BE' => $label, 872 'FR' => 'SIREN', 873 'DE' => __( 'Commercial register number (optional)', 'peppolkit' ), 874 'LU' => __( 'RCS number (R.C.S. Luxembourg)', 'peppolkit' ), 875 'GB' => __( 'Companies House number', 'peppolkit' ), 876 'IE' => __( 'CRO number', 'peppolkit' ), 877 'AT' => 'Firmenbuchnummer', 878 'NO' => 'Organisasjonsnummer', 879 ); 880 echo '<tr><th><label for="pk-registrationNumber">'; 881 foreach ( $reg_labels as $codes => $text ) { 882 printf( '<span%s>%s</span>', $only( $codes ), esc_html( $text ) ); 883 } 884 printf( '</label></th><td><input id="pk-registrationNumber" name="registrationNumber" class="regular-text" value="%s">', esc_attr( $val( $k ) ) ); 788 885 $hint( 'FR', __( '9 digits. Leave empty and we take it from your French VAT number.', 'peppolkit' ) ); 789 886 $hint( 'DE', __( 'For example HRB 12345, only if your company is in the Handelsregister', 'peppolkit' ) ); 790 887 // Luxembourg: the RCS number ("B123456"), or the 11-digit matricule for a seller without one; PeppolKit checks it. 791 888 $hint( 'LU', __( 'For example B123456, or your 11-digit matricule if you have no RCS number. Required for a company (SA, SARL, SARL-S, SCA): it then appears on every invoice.', 'peppolkit' ) ); 889 // United Kingdom: the Companies House number, optional (sole traders and partnerships have none). 890 $hint( 'GB', __( 'For a limited company; leave empty if not registered at Companies House.', 'peppolkit' ) ); 891 // Ireland: the CRO number, digits only, optional (sole traders have none). 892 $hint( 'IE', __( 'Your number at the Companies Registration Office, for example 123456. Leave empty if you are not a company.', 'peppolkit' ) ); 893 // Austria: the Firmenbuchnummer, optional (only for businesses in the Firmenbuch). 894 $hint( 'AT', __( 'For example FN 123456a. Leave empty if you are not in the Firmenbuch.', 'peppolkit' ) ); 895 // Norway: the 9-digit organisasjonsnummer; PeppolKit takes it from the VAT number when left empty. 896 $hint( 'NO', __( '9 digits, for example 123 456 785. Leave empty to take it from your VAT number.', 'peppolkit' ) ); 897 echo '</td></tr>'; 898 continue; 899 } 900 if ( 'registerCourt' === $k ) { 901 // Austrian sellers: the Firmenbuch court, shown with the Firmenbuchnummer on the invoice (§ 14 UGB). 902 printf( '<tr%s><th><label for="pk-registerCourt">%s</label></th><td><input id="pk-registerCourt" name="registerCourt" class="regular-text" maxlength="80" value="%s">', $only( 'AT' ), esc_html( $label ), esc_attr( $val( $k ) ) ); 903 $hint( 'AT', __( 'For example Handelsgericht Wien.', 'peppolkit' ) ); 792 904 echo '</td></tr>'; 793 905 continue; … … 807 919 $check( 'peppolSend', __( 'Send invoices to business customers over Peppol', 'peppolkit' ), $flag( 'peppolSend', true ) ); 808 920 $check( 'ossRegistered', __( 'Registered for the EU One-Stop Shop (OSS)', 'peppolkit' ), $flag( 'ossRegistered', false ) ); 809 $check( 'belowMicroThreshold', __( 'Below €10,000 EU distance-sales threshold', 'peppolkit' ), $flag( 'belowMicroThreshold', false ) ); 810 // The small-business schemes: Belgium's exemption scheme, the Dutch KOR, Germany's § 19 UStG and Luxembourg's franchise (art. 57bis LTVA). 921 // The EU threshold is not for a seller outside the EU (United Kingdom, Norway). 922 $check( 'belowMicroThreshold', __( 'Below €10,000 EU distance-sales threshold', 'peppolkit' ), $flag( 'belowMicroThreshold', false ), implode( ' ', array_diff( array_keys( $countries ), self::NON_EU_COUNTRIES ) ) ); 923 // The small-business schemes: Belgium's exemption scheme, the Dutch KOR, Germany's § 19 UStG, Luxembourg's franchise (art. 57bis LTVA) 924 // and Austria's Kleinunternehmerregelung (§ 6 Abs. 1 Z 27 UStG 1994). 811 925 // Only when PeppolKit reports the switch, so the form never shows one that would not be stored. 812 926 $small = ! is_wp_error( $remote ) && array_key_exists( 'smallBusiness', (array) $remote ); … … 822 936 'DE' => __( 'For small businesses under § 19 UStG (Kleinunternehmerregelung). Every invoice then goes out without VAT, with the required mention "Steuerbefreiung für Kleinunternehmer gemäß § 19 UStG".', 'peppolkit' ), 823 937 'LU' => __( 'For shops under the Luxembourg exemption scheme for small businesses (franchise, up to € 50,000 turnover in Luxembourg). Every invoice then goes out without VAT, with the required mention "TVA non applicable – Article 57bis de la loi modifiée du 12 février 1979".', 'peppolkit' ), 938 'AT' => __( 'For small businesses under the Austrian Kleinunternehmerregelung (§ 6 Abs. 1 Z 27 UStG, up to €55,000 turnover). Every invoice then goes out without VAT, with the mention "Umsatzsteuerfrei aufgrund der Kleinunternehmerregelung".', 'peppolkit' ), 824 939 ) 825 940 ); … … 852 967 $country = self::seller_country( $ok ? $remote : array() ); 853 968 $belgian = 'superpdp' === $via || 'BE' === $country; 854 $own = 'dokapi' === $via || ( in_array( $country, self::PEPPOLKIT_COUNTRIES, true ) && ! $belgian ); 969 $own = 'dokapi' === $via || ( self::peppolkit_offered( $ok ? $remote : array() ) && ! $belgian ); 970 $coming = ! $belgian && self::peppol_coming( $ok ? $remote : array() ); 855 971 if ( 'FR' === $country && ! $active ) { 856 972 echo '<h2>' . esc_html__( 'French e-invoicing', 'peppolkit' ) . '</h2>'; … … 875 991 } elseif ( $own && 'dokapi' === $via && $active ) { 876 992 echo '<p><strong>' . esc_html__( 'Connected: invoices to business customers go over Peppol through PeppolKit.', 'peppolkit' ) . '</strong></p>'; 993 } elseif ( $coming ) { 994 // UK, Irish, Austrian and Norwegian shops until PeppolKit offers Peppol for their country (peppolKitOffered). 995 echo '<p>' . esc_html__( 'Peppol through PeppolKit is coming for your country. You will get a message as soon as you can activate it. Until then your customers get their invoice by e-mail.', 'peppolkit' ) . '</p>'; 877 996 } else { 878 // Dutch, German and Luxembourg shops: Peppol through PeppolKitfrom the Starter plan, activated in the dashboard.879 echo '<p>' . esc_html __( 'Shops in the Netherlands, Germany and Luxembourg send invoices to business customers over Peppol through PeppolKit, from the Starter plan. Activate Peppol once in the PeppolKit dashboard. Consumers get their invoice by e-mail.', 'peppolkit') . '</p><p>';997 // Shops whose country PeppolKit offers Peppol for (the API's peppolKitOffered): from the Starter plan, activated in the dashboard. 998 echo '<p>' . esc_html( $own ? __( 'Your shop can send invoices to business customers over Peppol through PeppolKit, from the Starter plan. Activate Peppol once in the PeppolKit dashboard. Consumers get their invoice by e-mail.', 'peppolkit' ) : __( 'Invoices to business customers go over Peppol through PeppolKit where it is available for your country, from the Starter plan. The PeppolKit dashboard shows it under Settings > Peppol. Consumers get their invoice by e-mail.', 'peppolkit' ) ) . '</p><p>'; 880 999 self::button( 'peppolkit_dashboard', __( 'Activate Peppol in the dashboard', 'peppolkit' ), 'button button-primary', array( 'target' => 'peppol' ) ); 881 1000 echo '</p>'; -
peppolkit/trunk/peppolkit.php
r3814407 r3833117 4 4 * Plugin URI: https://peppolkit.com/woocommerce/ 5 5 * Description: Turns every paid order into an EU-compliant invoice (PDF + Peppol UBL), with VIES-checked reverse charge, credit notes on refunds and sending over the Peppol network. 6 * Version: 0. 3.26 * Version: 0.4.0 7 7 * Requires at least: 6.4 8 8 * Requires PHP: 7.4 … … 18 18 defined( 'ABSPATH' ) || exit; 19 19 20 define( 'PEPPOLKIT_VERSION', '0. 3.2' );20 define( 'PEPPOLKIT_VERSION', '0.4.0' ); 21 21 define( 'PEPPOLKIT_FILE', __FILE__ ); 22 22 if ( ! defined( 'PEPPOLKIT_API_URL' ) ) { -
peppolkit/trunk/readme.txt
r3815178 r3833117 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 0. 3.27 Stable tag: 0.4.0 8 8 License: GPLv2 or later 9 9 … … 16 16 https://www.youtube.com/watch?v=Xj_2CZhYyXI 17 17 18 Since 1 January 2026 Belgian businesses must send and receive B2B invoices as structured e-invoices over the Peppol network. A PDF is no longer enough for a Belgian business customer. PeppolKit does this for you: you install the plugin, connect your shop and fill in your company details once. From then on every paid order gets its invoice automatically. Your shop can be established in the Netherlands, Belgium, France, Germany or Luxembourg.18 Since 1 January 2026 Belgian businesses must send and receive B2B invoices as structured e-invoices over the Peppol network. A PDF is no longer enough for a Belgian business customer. PeppolKit does this for you: you install the plugin, connect your shop and fill in your company details once. From then on every paid order gets its invoice automatically. Your shop can be established in the Netherlands, Belgium, France, Germany, Luxembourg, Austria, Ireland, the United Kingdom or Norway. 19 19 20 20 More about PeppolKit for WooCommerce: [peppolkit.com/en/woocommerce](https://peppolkit.com/en/woocommerce/?utm_source=wordpress&utm_medium=marketplace&utm_campaign=listing) … … 45 45 * **German shops:** business customers in Germany also get the invoice by e-mail as a ZUGFeRD PDF (EN 16931 profile), included in every plan. You fill in your USt-IdNr. or your Steuernummer, and there is a switch for Kleinunternehmer (§ 19 UStG). 46 46 * **Luxembourg shops:** you fill in your RCS number (for example B123456) or your matricule, invoices are in French by default, and there is a switch for the small-business franchise (art. 57bis LTVA). 47 * **Shops in the United Kingdom, Ireland, Austria and Norway:** invoices with the right VAT for your country, e-mailed as a PDF, with the UBL e-invoice attached for business customers with a VAT number. You fill in your Companies House number (UK), CRO number (Ireland), Firmenbuchnummer and court (Austria, with a switch for the Kleinunternehmerregelung) or organisasjonsnummer (Norway). Peppol through PeppolKit is coming for these countries; the plugin and the dashboard show it as soon as you can activate it. 47 48 48 49 PeppolKit can also receive your suppliers' Peppol invoices: Belgian shops in every plan, shops in the Netherlands, Germany and Luxembourg from the Starter plan (optional, €0.20 per received document). … … 130 131 = Does it work for shops outside the Netherlands and Belgium? = 131 132 132 The seller must be established in the Netherlands, Belgium, France, Germany or Luxembourg. Customers can be anywhere: PeppolKit applies reverse charge for EU businesses, OSS or the €10,000 threshold for EU consumers, and export rules outside the EU.133 The seller must be established in the Netherlands, Belgium, France, Germany, Luxembourg, Austria, Ireland, the United Kingdom or Norway. Customers can be anywhere: PeppolKit applies reverse charge for EU businesses, OSS or the €10,000 threshold for EU consumers, and export rules outside the EU. 133 134 134 135 = Does it work with the block checkout and HPOS? = … … 173 174 174 175 == Changelog == 176 177 = 0.4.0 = 178 * Shops in the United Kingdom, Ireland, Austria and Norway: the four countries are in the country list, with their VAT number hints and registration numbers (Companies House number, CRO number, Firmenbuchnummer with the Firmenbuch court, organisasjonsnummer). Austrian shops get the small-business switch for the Kleinunternehmerregelung (§ 6 Abs. 1 Z 27 UStG). The EU €10,000 threshold switch is hidden for the United Kingdom and Norway, which are outside the EU. 179 * The Peppol section no longer keeps its own country list: it follows what PeppolKit offers for your country. Shops in the United Kingdom, Ireland, Austria and Norway see that Peppol through PeppolKit is coming for their country and get a message as soon as they can activate it; until then their invoices go by e-mail. 175 180 176 181 = 0.3.2 =
Note:
See TracChangeset
for help on using the changeset viewer.