Git Product home page Git Product logo

copex_vatfix's People

Contributors

davidverholen avatar jissereitsma avatar pointia avatar roman204 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

copex_vatfix's Issues

Module Frontend

Hi from Luca
But the module si enable only back end ?
I installed it but i verify that module is not active on frontend. it's correct ?

We use Magento 2.3.0

Missing attributes in di.xml

di.xml is starting with: <config>

this should be:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

Country code should match country of address

While testing this extension it came to my attention that it is possible to input any valid VAT id, even a VAT ID from a totally different country. At least in The Netherlands that is against the customs regulations.

Here in The Netherlands we can deliver excl. VAT when:

  1. The products are exported (so the shipping address has to be outside The Netherlands) to another EU country
  2. The customer is a business with a valid VAT ID in the country where the goods are shipped to.

This information can be read on the following page:
http://www.belastingdienst.nl/wps/wcm/connect/bldcontentnl/belastingdienst/zakelijk/internationaal/btw_voor_buitenlandse_ondernemers/goederen/exporteren_vanuit_nederland_naar_andere_eu_landen/

Your extension allows to add any countrycode in front of the VAT ID, but the side effect of this is that anyone can input any VAT ID, not necessarily in the country which is specified in the address.

Is this intentional?

I would like to see this extension to strip the country-code or disallow countrycodes belonging to other countries.

Error while running di:compile

[Exception] 
Notice: Uninitialized string offset: 1 in /data/web/staging/setup/src/Magen 
to/Setup/Module/Di/Code/Reader/FileScanner.php on line 322 

CopeX 1.0.9 Magento 2.4 compatibility

We have a Magento 2.4.3-p1 installation running under php 7.4.27, VatFix installed via composer. The module is installed and active but does not produce any output in the debug. Are there any known compatibility issues with Magento 2.4.3?

Call to undefined method getCountryCodeFromVAT

The following error gets reported upon saving with a valid VatID:

PHP message: PHP Fatal error:  Call to undefined method CopeX\VATFix\Helper\Data::getCountryCodeFromVAT() in /var/www/magento2/vendor/copex/vatfix/Plugin/UidPlugin.php on line 45

It seems the getCountryCodeFromVAT is missing from the helper.

error after installing

When I copy the files into folder app/code/CopeX/VATFix and run bin/magento setup:di:compile it stops compiling at 14% and says: [ErrorException] Uninitialized string offset: 1

Travis failing because of missing PHPUnit_Framework_TestCase

Travis is failing to run unit tests, because the class PHPUnit_Framework_TestCase is missing. The reason for this again is that you are using the latest version of Magento (version 2.2) to run PHPUnit but this is version 6 (?) while Magento 2.1 ships with PHPUnit version 4 and which is required for the tests. I'm working on a simple PR to copy the code from 2.1, instead of the latest GitHub source.

Magento 2.2.6 checkout fails

Hi

If new user reach to checkout where user doen't have any addresss assigned yet, the code fails in checkout.
If it cannot verify the code and add error message
if (!empty($vatNumber) && !is_numeric($countryCodeFromVAT) && $countryCode != $countryCodeFromVAT) {
$this->addErrorMessage(__('Your selected country does not match the countrycode in VAT.'));
return [];
}

error message not visible and function return empty array
return [];

which causing parent function Magento\Customer\Model\Vat::checkVatNumber(), to fail

Fatal error: Uncaught ArgumentCountError: Too few arguments to function Magento\Customer\Model\Vat::checkVatNumber(), 0 passed in htdocs/vendor/magento/framework/Interception/Interceptor.php on line 58
and at least 2 expected in htdocs/vendor/magento/module-customer/Model/Vat.php:162 Stack trace: #0 htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Customer\Model\Vat->checkVatNumber()
#1 htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\Vat\Interceptor->___callParent('checkVatNumber', Array)
#2 htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\Vat\Interceptor->Magento\Framework\Interception{closure}('EE', 'FI12345678', 'EE', '12345678')
#3 /data01/virt71753/domeenid/www.multon. in htdocs/vendor/magento/module-customer/Model/Vat.php on line 162
{"messages":{"error":[{"code":500,"message":"Server internal error. See details in report api/922857370192"}]}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.