[*] MO : Vatnumber - a warning is now displayed if the field "Your country" is empty (related #PSCFI-4200)
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
<module>
|
||||
<name>vatnumber</name>
|
||||
<displayName><![CDATA[European VAT number]]></displayName>
|
||||
<version><![CDATA[1]]></version>
|
||||
<version><![CDATA[1.2]]></version>
|
||||
<description><![CDATA[Enable entering of the VAT intra-community number when creating the address (You must fill in the company field to allow keyboarding VAT number)]]></description>
|
||||
<author><![CDATA[PrestaShop]]></author>
|
||||
<tab><![CDATA[billing_invoicing]]></tab>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>0</need_instance>
|
||||
<need_instance>1</need_instance>
|
||||
<limited_countries></limited_countries>
|
||||
</module>
|
||||
</module>
|
||||
|
||||
|
||||
@@ -34,13 +34,17 @@ class VatNumber extends TaxManagerModule
|
||||
{
|
||||
$this->name = 'vatnumber';
|
||||
$this->tab = 'billing_invoicing';
|
||||
$this->version = 1.0;
|
||||
$this->version = 1.2;
|
||||
$this->author = 'PrestaShop';
|
||||
$this->need_instance = 0;
|
||||
|
||||
$this->tax_manager_class = 'VATNumberTaxManager';
|
||||
|
||||
parent::__construct();
|
||||
$id_country = (int)Configuration::get('VATNUMBER_COUNTRY');
|
||||
|
||||
if ($id_country == 0)
|
||||
$this->warning = $this->l('No default country set.');
|
||||
|
||||
$this->displayName = $this->l('European VAT number');
|
||||
$this->description = $this->l('Enable entering of the VAT intra-community number when creating the address (You must fill in the company field to allow keyboarding VAT number)');
|
||||
|
||||
Reference in New Issue
Block a user