commit
0a04f7eafb
@ -62,14 +62,13 @@ class InventoryImport implements ToArray, SkipsEmptyRows
|
|||||||
]);
|
]);
|
||||||
$shopPrice = [];
|
$shopPrice = [];
|
||||||
foreach ($row as $i => $v) {
|
foreach ($row as $i => $v) {
|
||||||
if ($i > 5) {
|
if ($i > 4) {
|
||||||
$shopPrice[$header[$i]] = $v;
|
$shopPrice[$header[$i]] = $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$todayPrice[] = [
|
$todayPrice[] = [
|
||||||
'day' => $day,
|
'day' => $day,
|
||||||
'external_sku_id' => $goodsSku['external_sku_id'],
|
'external_sku_id' => $goodsSku['external_sku_id'],
|
||||||
'price' => $row[5],
|
|
||||||
'shop_price' => json_encode($shopPrice, 256)
|
'shop_price' => json_encode($shopPrice, 256)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user