Skip to content

Commit

Permalink
fix: State mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Feb 16, 2023
1 parent eff13b4 commit f158a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecommerce_integrations/unicommerce/customer.py
Expand Up @@ -98,7 +98,7 @@ def _create_customer_address(uni_address, address_type, customer, also_shipping=
country = UNICOMMERCE_COUNTRY_MAPPING.get(country_code)

state = uni_address.get("state")
if country_code == "IN" and state in UNICOMMERCE_COUNTRY_MAPPING:
if country_code == "IN" and state in UNICOMMERCE_INDIAN_STATES_MAPPING:
state = UNICOMMERCE_INDIAN_STATES_MAPPING.get(state)

frappe.get_doc(
Expand Down

0 comments on commit f158a4a

Please sign in to comment.