Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DHL Quotes for Domestic Shipments when Content Type is set to Non-Document #19487

Merged
merged 3 commits into from
Feb 18, 2019
Merged

Conversation

gwharton
Copy link
Contributor

@gwharton gwharton commented Nov 30, 2018

Description (*)

  1. Updated label for Content Type configuration field to make it clear what it is.
  2. Changed Allowable Methods (Non Doc and Doc) to always be displayed no
    matter what the content type mode is. Makes no sense to display one or the other.
  3. Changed the isDutiable function to only look at whether a shipment is
    domestic or not. Previously it would return dutiable for everything
    if the Content Type mode is non document (which causes problems for
    domestic shipments in Non Document mode). Fixes DHL Shipping Quotes fail for Domestic Shipments when Content Mode is "Non Documents" #19485

Fixed Issues (if relevant)

  1. DHL Shipping Quotes fail for Domestic Shipments when Content Mode is "Non Documents" #19485:DHL Shipping Quotes fail for Domestic Shipments when Content Mode is "Non Documents"

Manual testing scenarios (*)

  1. Set Shipment Source to UK, SW1 1AA
  2. Setup DHL module to obtain online quotes
  3. Set Content Type to "Non Document"
  4. Obtain quotes for destinations
    4.1 UK, SW1 1AA (UK -> UK - Domestic - Documents - Non dutiable)
    4.2 FR, 75001 (UK -> EU - Domestic - Documents - Non dutiable)
    4.3 NO, 4032 (UK -> Europe - Intl - Non Documents - Dutiable)
    4.4 US, 90210 (UK -> World - Intl - Non Documents - Dutiable)
  5. Ensure quotes are received for all of the above regions.

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 on Travis CI are green)

Changed Allowable Methods (Non Doc and Doc) to always be displayed no
matter what the content type mode is.

Changed the isDutiable function to only look at whether a shipment is
domestic or not. Previously it would return dutiable for everything
if the Content Type mode is non document (which causes problems for
domestic shipments in Non Document mode). Fixes #19485
@magento-engcom-team
Copy link
Contributor

Hi @gwharton. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Dec 1, 2018
@magento-engcom-team
Copy link
Contributor

Hi @orlangur, thank you for the review.
ENGCOM-3601 has been created to process this Pull Request

@sivaschenko sivaschenko self-assigned this Feb 18, 2019
@magento-engcom-team magento-engcom-team merged commit d9ac0d6 into magento:2.3-develop Feb 18, 2019
@ghost
Copy link

ghost commented Feb 18, 2019

Hi @gwharton, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.2 milestone Feb 18, 2019
magento-engcom-team pushed a commit that referenced this pull request Feb 18, 2019
@gwharton gwharton deleted the 2.3-develop-dhl branch February 18, 2019 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants