Skip to content

[Issue] [BUG] Admin order create validate vat confirm box #29652

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #29466: [BUG] Admin order create validate vat confirm box


Was broken with commit faa5f9a#diff-47459785dc7008bc9145a9609c9c7f6c and never fixed.

Description (*)

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes magento/magento2#<issue_number>

Preconditions (*)

  1. Magento 2.4-develop

Steps to reproduce (*)

  1. Go to Stores - Configuration - General - General - Country Options. Set Default Country - Germany
  2. Expand Store Information, select Country - Germany. Select any Region/State
  3. Enter a valid German VAT Number. Validate VAT Number
  4. Save Config
  5. Go to Stores - Tax Rules click Add New Tax Rule
  6. Click Add New Tax Rate. Set the following values:
  • Country - United Kingdom
  • Zip/Post is Range - checkbox Checked
  • Range From - 1
  • Range To - 99999999
  • Rate Percent - 10
    Click Save
  1. Specify Name "tax rule", for example. Assert that Rate1 and previously created rate are marked. Save Rule
  2. Go to Customer - Customer Groups and create a Customer Group, with Name "newgroup" for example
  3. Go to _Stores - Configuration - Customers - Customer Configuration - Create New Account Options
  4. Set the following values:
  • Enable Automatic Assignment to Customer Group - Yes
  • Default Group - Newgroup
  • Group for Valid VAT ID - Intra-Union - Retailer
  • Validation Error Group - General
  • Validate on Each Transaction - Yes
    Default Value for Disable Automatic Group Changes Based on VAT ID - Yes
    Save Config clear Magento Cache
  1. Go to Sales - Orders, click Create New Order
  2. Click Create New Customer
    (Create New Order window appears and selected group is the previously created "newgroup")
  3. Change the Country to United Kingdom
  4. Enter a valid United Kingdom VAT Number and click Validate VAT Number

Actual result (*)

Nothing happened after clicking Validate VAT Number
before

Expected result (*)

... Would you like to change the Customer Group for this order?
vat_validation

And after clicking OK the group is changed
vat_validation_retailer

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: SalesFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions