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

Modify methods to include logic for locality #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kitpao
Copy link

@kitpao kitpao commented Mar 11, 2021

The line 'joins(:zone_members).where(matching_city.or(matching_state.or(matching_country))).distinct' is the query that is used to decide if it is going to create a new ShippingRate that links the Shipment with the ShippingMethod. So it is modified to include the matching_city

Also added the locality object whenever there was logic with the State or Country object

The line 'joins(:zone_members).where(matching_city.or(matching_state.or(matching_country))).distinct' is the query that is used to decide if it is going to create a new ShippingRate that links the Shipment with the ShippingMethod
Copy link
Contributor

@ccarruitero ccarruitero left a comment

Choose a reason for hiding this comment

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

Thanks @kitpao , sorry for delay in review.

Could you add some specs for these methods?

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.

2 participants