插入增值税号时,Prestashop免税

时间:2016-04-07 23:32:32

标签: prestashop

在我的商店中,当用户插入增值税号时,税值会消失。我理解它在国外的同行实践。但在葡萄牙,税收价值总是存在。

我尝试使用Vat模块和普通的“NIF”字段,但既没有出现税收值,也没有出现在最终发票中。

我正在运行,prestashop 1.6.0.8。

与我有同样问题的人,另一位葡萄牙人,说它从西班牙语教程中完成了各种指导工作:

在controllers / AuthController.php中 变化

If ($country->need_identification_number && (!Tools::getValue(‘dni’) || !Validate::isDniLite(Tools::getValue(‘dni’))))

//if ($country->need_identification_number && (!Tools::getValue(‘dni’) || !Validate::isDniLite(Tools::getValue(‘dni’))))
if (!Validate::isDniLite(Tools::getValue(‘dni’)))

在“controllers /”AddressController.php中, 变化

if ($country->isNeedDni() && (!Tools::getValue(‘dni’) || !Validate::isDniLite(Tools::getValue(‘dni’))))

//if ($country->isNeedDni() && (!Tools::getValue(‘dni’) || !Validate::isDniLite(Tools::getValue(‘dni’))))
if (!Validate::isDniLite(Tools::getValue(‘dni’)))

但是这个代码适用于1.5.x presta,而我的是1.6.0.8,我猜dni是税名。

来源:http://postly.elnostreraco.com/como-hacer-el-dni-opcional-en-prestashop-y-por-que-desconfiar-si-te-hacen-tocar-codigo-base/

2 个答案:

答案 0 :(得分:1)

使用VAT Module时,您可以选择一个国家/地区。对于来自该国家/地区的用户(您在模块配置中选择的用户),将添加增值税 。对于来自其他国家/地区的用户,我们认为增值税不会,这符合欧盟法律。

答案 1 :(得分:1)

来自here

您的PrestaShop配置错误。当没有"你的国家"在模块中设置" vatnumber"并且您的客户填写了vat_number字段,presta商店将强制免税价格。

我已经在此模块中选择了国家/地区(但没有使用增值税号验证)并且工作正常 - 用户输入增值税代码或不执行增值税代码,应用增值税。