Commit d2f75201 authored by 季圣华's avatar 季圣华
Browse files

解决商品删除的时候库存不扣除的bug

parent 4a51ea98
...@@ -299,6 +299,7 @@ public class DepotHeadService { ...@@ -299,6 +299,7 @@ public class DepotHeadService {
} }
} }
} }
List<DepotItem> list = depotItemService.getListByHeaderId(depotHead.getId());
//删除单据子表数据 //删除单据子表数据
depotItemMapperEx.batchDeleteDepotItemByDepotHeadIds(new Long[]{depotHead.getId()}); depotItemMapperEx.batchDeleteDepotItemByDepotHeadIds(new Long[]{depotHead.getId()});
//删除单据主表信息 //删除单据主表信息
...@@ -325,7 +326,6 @@ public class DepotHeadService { ...@@ -325,7 +326,6 @@ public class DepotHeadService {
} }
} }
//更新当前库存 //更新当前库存
List<DepotItem> list = depotItemService.getListByHeaderId(depotHead.getId());
for (DepotItem depotItem : list) { for (DepotItem depotItem : list) {
depotItemService.updateCurrentStock(depotItem); depotItemService.updateCurrentStock(depotItem);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment