mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-03 03:39:51 +08:00
库存扣除
This commit is contained in:
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user