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

优化单据明细的查询条件

parent 24ee142f
...@@ -846,11 +846,6 @@ public class DepotItemService { ...@@ -846,11 +846,6 @@ public class DepotItemService {
if(BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) { if(BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) {
goToType = BusinessConstants.SUB_TYPE_PURCHASE_ORDER; goToType = BusinessConstants.SUB_TYPE_PURCHASE_ORDER;
} }
} else {
if(BusinessConstants.PURCHASE_STATUS_SKIPING.equals(depotHead.getPurchaseStatus())) {
if(BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) {
goToType = BusinessConstants.SUB_TYPE_PURCHASE_ORDER;
}
} else { } else {
if(BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(depotHead.getSubType())) { if(BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(depotHead.getSubType())) {
goToType = BusinessConstants.SUB_TYPE_PURCHASE; goToType = BusinessConstants.SUB_TYPE_PURCHASE;
...@@ -859,7 +854,6 @@ public class DepotItemService { ...@@ -859,7 +854,6 @@ public class DepotItemService {
goToType = BusinessConstants.SUB_TYPE_SALES; goToType = BusinessConstants.SUB_TYPE_SALES;
} }
} }
}
BigDecimal count = depotItemMapperEx.getFinishNumber(meId, linkNumber, goToType); BigDecimal count = depotItemMapperEx.getFinishNumber(meId, linkNumber, goToType);
//根据多单位情况进行数量的转换 //根据多单位情况进行数量的转换
if(materialUnit.equals(unitInfo.getOtherUnit()) && unitInfo.getRatio() != 0) { if(materialUnit.equals(unitInfo.getOtherUnit()) && unitInfo.getRatio() != 0) {
......
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