Skip to content

Commit

Permalink
fix: change default item UOM from Nos to Ea [CU-x5bn5f] (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alchez authored Jun 15, 2021
1 parent cd7ecdd commit b77eca3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shopify_integration/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def get_order_items(shopify_order_items: List["LineItem"], shopify_settings: "Sh
"rate": shopify_item.attributes.get("price"),
"delivery_date": nowdate(),
"qty": shopify_item.attributes.get("quantity"),
"stock_uom": shopify_item.attributes.get("uom") or "Nos",
"stock_uom": shopify_item.attributes.get("uom") or "Ea",
"conversion_factor": 1,
"warehouse": shopify_settings.warehouse
})
Expand Down
4 changes: 2 additions & 2 deletions shopify_integration/products.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def make_item_by_title(shopify_settings: "ShopifySettings", line_item_title: str
"description": line_item_title,
"shopify_description": line_item_title,
"item_group": shopify_settings.item_group,
"stock_uom": _("Nos"),
"stock_uom": _("Ea"),
"default_warehouse": shopify_settings.warehouse,
"integration_doctype": "Shopify Settings",
"integration_doc": shopify_settings.name,
Expand Down Expand Up @@ -274,7 +274,7 @@ def sync_item(
"item_group": shopify_settings.item_group,
"marketplace_item_group": get_item_group(shopify_item.attributes.get("product_type")),
"has_variants": item_has_variants,
"stock_uom": WEIGHT_UOM_MAP.get(shopify_item.attributes.get("uom")) or _("Nos"),
"stock_uom": WEIGHT_UOM_MAP.get(shopify_item.attributes.get("uom")) or _("Ea"),
"shopify_sku": shopify_item.attributes.get("sku"),
"default_warehouse": shopify_settings.warehouse,
"weight_uom": WEIGHT_UOM_MAP.get(shopify_item.attributes.get("weight_unit")),
Expand Down

0 comments on commit b77eca3

Please sign in to comment.