This commit is contained in:
mkm 2023-11-16 15:24:51 +08:00
parent 8c716b11e2
commit ccb4b1489a

View File

@ -2354,7 +2354,6 @@ class ProductRepository extends BaseRepository
} }
} }
if ($orderProduct->is_imported == 0) { if ($orderProduct->is_imported == 0) {
$stockIn=$orderProduct['product_num']; $stockIn=$orderProduct['product_num'];
ProductAttrValue::where('mer_id', $merId) ProductAttrValue::where('mer_id', $merId)
@ -2374,6 +2373,7 @@ class ProductRepository extends BaseRepository
if (!$model->save($data)) { if (!$model->save($data)) {
throw new ValidateException('入库失败'); throw new ValidateException('入库失败');
} }
$orderProduct->save(['is_imported' => 1]);
Db::commit(); Db::commit();
return true; return true;
}else{ }else{