Changeset 2919626
- Timestamp:
- 05/31/2023 11:49:26 AM (3 years ago)
- Location:
- moloni-es/trunk
- Files:
-
- 7 edited
-
README.md (modified) (2 diffs)
-
languages/moloni_es-es_ES.mo (modified) (previous)
-
languages/moloni_es-pt_PT.mo (modified) (previous)
-
languages/moloni_es.pot (modified) (2 diffs)
-
moloni_es.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/Controllers/OrderCustomer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
moloni-es/trunk/README.md
r2915671 r2919626 16 16 **Tested up to:** 6.2 17 17 **WC tested up to** 7.5.1 18 **Stable tag:** 1.0.4 518 **Stable tag:** 1.0.46 19 19 **License:** GPLv2 or later 20 20 **License URI:** [https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html) … … 72 72 ## Changelog 73 73 74 ### 1.0.46 75 * Show error when a customer has an invalid VAT for the Spanish fiscal zone. 76 74 77 ### 1.0.45 75 78 * Change Webhooks behaviour -
moloni-es/trunk/languages/moloni_es.pot
r2915671 r2919626 4 4 "Project-Id-Version: Moloni ES\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 2023-05- 19 11:40+0000\n"6 "POT-Creation-Date: 2023-05-31 11:29+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 160 160 msgstr "" 161 161 162 #: bitnami/wordpress/wp-content/plugins/moloni-es/src/Controllers/OrderCustomer.php:146 163 msgid "Customer has invalid VAT for Spain." 164 msgstr "" 165 162 166 #: bitnami/wordpress/wp-content/plugins/moloni-es/src/Templates/Containers/Settings.php:374 163 167 msgid "Customer VAT" -
moloni-es/trunk/moloni_es.php
r2915671 r2919626 4 4 * Plugin Name: Moloni España 5 5 * Description: Simple invoicing integration with Moloni ES 6 * Version: 1.0.4 56 * Version: 1.0.46 7 7 * Tested up to: 6.2 8 8 * WC tested up to: 7.5.1 -
moloni-es/trunk/readme.txt
r2915671 r2919626 3 3 Contributors: Moloni 4 4 Tags: Invoicing, Orders 5 Stable tag: 1.0.4 55 Stable tag: 1.0.46 6 6 Tested up to: 6.2 7 7 WC tested up to: 7.5.1 … … 68 68 69 69 == Changelog == 70 = 1.0.46 = 71 * Show error when a customer has an invalid VAT for the Spanish fiscal zone. 72 70 73 = 1.0.45 = 71 74 * Change Webhooks behaviour -
moloni-es/trunk/src/Controllers/OrderCustomer.php
r2911028 r2919626 103 103 * Get the vat number of an order 104 104 * Get it from a custom field and validate if Portuguese 105 * 105 106 * @return string 107 * 108 * @throws Error 106 109 */ 107 110 public function getVatNumber() … … 141 144 142 145 if (!empty($vat) && !Customer::isVatEsValid($vat)) { 143 $vat = null;146 throw new Error(__('Customer has invalid VAT for Spain.','moloni_es')); 144 147 } 145 148 }
Note: See TracChangeset
for help on using the changeset viewer.