|
|
@@ -945,7 +945,7 @@ namespace Business.ResourceExamineManagement
|
|
|
//如果父级缺料,则本级等于父级缺料*本级使用数量
|
|
|
if (parent != null)
|
|
|
{
|
|
|
- item.use_qty = parent.lack_qty * item.qty;
|
|
|
+ item.use_qty = item.self_lack_qty;
|
|
|
item.kitting_time = DateTime.Now;
|
|
|
itemStockoccupyDto.quantity = item.use_qty;
|
|
|
}
|
|
|
@@ -1236,7 +1236,7 @@ namespace Business.ResourceExamineManagement
|
|
|
foreach (var sct in select)
|
|
|
{
|
|
|
decimal sqty = sct.sqty - sct.use_qty;//这里得出前面混用使用后的库存。
|
|
|
- decimal lack_Count = parent_lack * sct.qty;//混用后还缺的部分。
|
|
|
+ decimal lack_Count = sct.self_lack_qty;//混用后还缺的部分。
|
|
|
mo_ic_item_stockoccupy itemStockoccupyDto = new mo_ic_item_stockoccupy();
|
|
|
if (sentrys != null)
|
|
|
{
|