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

[Taxation] [Shipping] Fixed issue with shipping zones available to select in tax rate form (and the other way) #10909

Conversation

plewandowski
Copy link
Contributor

Fixed issue with shipping zones available to select in tax rate form (and the other way)

  • added zone_scope option to ZoneChoiceType to pass desired scope
  • for BC default scope is "ALL"
  • modified ShippingMethodTypeExtension and TaxRateTypeExtension to pass correct zone_scope option
  • form type test for ZoneChoiceType
Q A
Branch? 1.6
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes
Related tickets
License MIT

btw. Maybe this is not something that people usually write in PRs, but it is actually my first contribution to Sylius, so I feel that I should write something more in this important moment... I would like to dedicate this PR to my wife who always supports me and never complains about coding till late :-)

@plewandowski plewandowski requested a review from a team as a code owner December 6, 2019 20:34
@plewandowski plewandowski changed the base branch from master to 1.6 December 6, 2019 20:53
@plewandowski plewandowski force-pushed the issue_shipping_zone_can_be_selected_as_tax_rate_zone branch from c91f560 to 44265ec Compare December 6, 2019 21:23
Copy link
Member

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you very much for the contribution and welcome to our community ;)

…lect in tax rate form (and the other way)

- added zone_scope option to ZoneChoiceType to pass desired scope
- for BC default scope is "ALL"
- modified ShippingMethodTypeExtension and TaxRateTypeExtension to pass correct zone_scope option
- form type test for ZoneChoiceType

[Taxation] [Shipping] Fixed issue with shipping zones available to select in tax rate form (and the other way)

- added zone_scope option to ZoneChoiceType to pass desired scope
- for BC default scope is "ALL"
- modified ShippingMethodTypeExtension and TaxRateTypeExtension to pass correct zone_scope option
- form type test for ZoneChoiceType
@lchrusciel lchrusciel changed the base branch from 1.6 to 1.5 December 6, 2019 22:17
@lchrusciel
Copy link
Member

The base of this pull-request was changed, you need fetch and reset your local branch
if you want to add new commits to this pull request. Reset before you pull, else commits
may become messed-up.

Unless you added new commits (to this branch) locally that you did not push yet,
execute git fetch origin && git reset "issue_shipping_zone_can_be_selected_as_tax_rate_zone" to update your local branch.

Feel free to ask for assistance when you get stuck 👍

@lchrusciel lchrusciel force-pushed the issue_shipping_zone_can_be_selected_as_tax_rate_zone branch from 44265ec to 914c272 Compare December 6, 2019 22:17
plewandowski and others added 4 commits December 7, 2019 00:14
…on.php

Co-Authored-By: Łukasz Chruściel <lchrusciel@gmail.com>
…ypeTest.php

Co-Authored-By: Łukasz Chruściel <lchrusciel@gmail.com>
…ypeTest.php

Co-Authored-By: Łukasz Chruściel <lchrusciel@gmail.com>
…ypeTest.php

Co-Authored-By: Łukasz Chruściel <lchrusciel@gmail.com>
@lchrusciel lchrusciel merged commit e0b8045 into Sylius:1.5 Dec 7, 2019
@lchrusciel
Copy link
Member

Thank you, Piotr! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants