优化单据明细的查询条件

This commit is contained in:
季圣华
2022-05-19 00:12:37 +08:00
parent 24ee142f55
commit cff16125b0

View File

@@ -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 {
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) {