|
@@ -2586,8 +2586,8 @@ class WorkOrderSpotCheck extends Api{
|
|
|
'关联号' => $item['关联编号'],
|
|
'关联号' => $item['关联编号'],
|
|
|
'物料编号' => $item['物料编码'],
|
|
'物料编号' => $item['物料编码'],
|
|
|
'物料名称' => $item['物料名称'],
|
|
'物料名称' => $item['物料名称'],
|
|
|
- '领用数量' => $Inventory['领用数量'] + $item['number'],
|
|
|
|
|
- '库存数量' => $Inventory['库存数量'] - $item['number'],
|
|
|
|
|
|
|
+ '领用数量' => $Inventory['领用数量'] + (float)$item['number'],
|
|
|
|
|
+ '库存数量' => $Inventory['库存数量'] - (float)$item['number'],
|
|
|
'实际门幅' => $item['实际门幅'],
|
|
'实际门幅' => $item['实际门幅'],
|
|
|
'单位' => $item['单位'],
|
|
'单位' => $item['单位'],
|
|
|
'状态' => 1,
|
|
'状态' => 1,
|
|
@@ -2702,8 +2702,8 @@ class WorkOrderSpotCheck extends Api{
|
|
|
'关联号' => $item['关联编号'],
|
|
'关联号' => $item['关联编号'],
|
|
|
'物料编号' => $item['物料编码'],
|
|
'物料编号' => $item['物料编码'],
|
|
|
'物料名称' => $item['物料名称'],
|
|
'物料名称' => $item['物料名称'],
|
|
|
- '入仓总量' => $Inventory['入仓总量'] + $item['number'],
|
|
|
|
|
- '库存数量' => $Inventory['库存数量'] + $item['number'],
|
|
|
|
|
|
|
+ '入仓总量' => $Inventory['入仓总量'] + (float)$item['number'],
|
|
|
|
|
+ '库存数量' => $Inventory['库存数量'] + (float)$item['number'],
|
|
|
'实际门幅' => $item['实际门幅'],
|
|
'实际门幅' => $item['实际门幅'],
|
|
|
'单位' => $item['单位'],
|
|
'单位' => $item['单位'],
|
|
|
'状态' => 1,
|
|
'状态' => 1,
|
|
@@ -2946,11 +2946,11 @@ class WorkOrderSpotCheck extends Api{
|
|
|
|
|
|
|
|
// 根据类型调整库存
|
|
// 根据类型调整库存
|
|
|
if ($item['type'] === '退面料') {
|
|
if ($item['type'] === '退面料') {
|
|
|
- $returnQuantity = $number['退还数量'] + (int)$item['number'];
|
|
|
|
|
- $stockQuantity = $number['库存数量'] + (int)$item['number'];
|
|
|
|
|
|
|
+ $returnQuantity = $number['退还数量'] + (float)$item['number'];
|
|
|
|
|
+ $stockQuantity = $number['库存数量'] + (float)$item['number'];
|
|
|
} elseif ($item['type'] === '退厂商') {
|
|
} elseif ($item['type'] === '退厂商') {
|
|
|
$returnQuantity = $item['number'];
|
|
$returnQuantity = $item['number'];
|
|
|
- $stockQuantity = $number['库存数量'] - (int)$item['number'];
|
|
|
|
|
|
|
+ $stockQuantity = $number['库存数量'] - (float)$item['number'];
|
|
|
}else{
|
|
}else{
|
|
|
$returnQuantity = $number['退还数量'];
|
|
$returnQuantity = $number['退还数量'];
|
|
|
$stockQuantity = $number['库存数量'];
|
|
$stockQuantity = $number['库存数量'];
|