提交 70a4a67f 编写于 作者: D devil_gong

库存扣除

上级 3e814ebd
......@@ -795,7 +795,7 @@ class BuyService
$log_m = M('OrderGoodsInventoryLog');
foreach($order_detail as $v)
{
$goods = $goods_m->field('is_deduction_inventory,inventory')->find();
$goods = $goods_m->field('is_deduction_inventory,inventory')->find($v['goods_id']);
if(isset($goods['is_deduction_inventory']) && $goods['is_deduction_inventory'] == 1)
{
// 扣除操作
......@@ -817,6 +817,7 @@ class BuyService
}
}
}
return DataReturn('没有需要扣除库存的数据', 0);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册