修改商品出库的错误
This commit is contained in:
parent
850773a2fd
commit
d1a4e5acdf
@ -123,7 +123,11 @@ class WarehouseOrderLogic extends BaseLogic
|
||||
$data['purchase'] = $v['prices'];
|
||||
$data['total_price'] = bcmul($v['prices'], $v['nums'], 2);
|
||||
}
|
||||
if ($data['financial_pm'] == 1) {
|
||||
WarehouseProductLogic::add($data,1,$params['admin_id']);
|
||||
} else {
|
||||
WarehouseProductLogic::setOutbound($data,1,$params['admin_id']);
|
||||
}
|
||||
}
|
||||
$find = WarehouseProduct::where('oid', $params['id'])->field('sum(nums) as nums,sum(total_price) as total_price')->find();
|
||||
if ($find) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user