fix: SKU issue

This commit is contained in:
pawan 2019-03-11 14:58:17 +05:30
parent 7c3e017ac3
commit c0e1000919

View File

@ -434,6 +434,7 @@ def get_order_items(market_place_order_id):
return final_order_items
def get_item_code(order_item):
sku = order_item.SellerSKU
item_code = frappe.db.get_value("Item", {"item_code": sku}, "item_code")
if item_code:
return item_code