1
This commit is contained in:
@@ -260,6 +260,11 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
||||
if product["upc"] != nil && product["upc"].(string) != "" {
|
||||
sku.Upc = product["upc"].(string)
|
||||
}
|
||||
_, _, _, specUnit, _, specQuality := jxutils.SplitSkuName(sku.SkuName)
|
||||
nameWeight := jxutils.FormatSkuWeight(specQuality, specUnit)
|
||||
if nameWeight == 0 {
|
||||
skuName += " " + product["spec"].(string)
|
||||
}
|
||||
if sku.VendorSkuID == "" {
|
||||
if !strings.Contains(product["app_food_code"].(string), "mtcode") {
|
||||
sku.VendorSkuID = product["app_food_code"].(string)
|
||||
|
||||
Reference in New Issue
Block a user