|
|
@@ -86,7 +86,7 @@ class OrderRejectingStatusService
|
|
|
$amount = $item->amount;
|
|
|
if (!Commodity::query()->where("sku", $code)->where('owner_id', $order->owner_id)->exists()) {
|
|
|
$query = CommodityBarcode::query()->select('commodity_id')->where('code', $code);
|
|
|
- $commodity = Commodity::query()->where('owner_id', $order->owner_id)->whereIn('id', $query)->first();
|
|
|
+ $commodity = Commodity::query()->where('owner_id', $order->owner_id)->whereIn('id', $query)->whereNotNull('sku')->first();
|
|
|
if ($commodity) $code = $commodity->sku;
|
|
|
}
|
|
|
$quality_name = $item->quality->name;
|