期初导入可以导入为0的现有数量

This commit is contained in:
彭枝刚 2025-02-10 09:41:32 +08:00
parent ee80111130
commit 955661f78e

View File

@ -419,7 +419,7 @@ public class DataImportServiceImpl implements DataImportService {
errorMessage.append(MessageFormat.format("第{0}行;请输入合法原始数量 \n", row));
}
} catch (Exception e) {
errorMessage.append(MessageFormat.format("第{0}行;请输入合法现有数量 \n", row));
errorMessage.append(MessageFormat.format("第{0}行;请输入合法原始数量 \n", row));
}
}
//--------------------------------------------------------------------------------------------------------------
@ -429,7 +429,7 @@ public class DataImportServiceImpl implements DataImportService {
data.setCurrentQty(data.getCurrentQty().trim());
try {
qty = new BigDecimal(data.getCurrentQty());
if (qty.compareTo(BigDecimal.ZERO) <= 0) {
if (qty.compareTo(BigDecimal.ZERO) < 0) {
errorMessage.append(MessageFormat.format("第{0}行;请输入合法现有数量 \n", row));
}
if (originalQtyImport.compareTo(qty) < 0) {
@ -460,10 +460,6 @@ public class DataImportServiceImpl implements DataImportService {
errorMessage.append(MessageFormat.format("第{0}行;请输入合法生产日期 \n", row));
}
}
if (StrUtil.isBlank(data.getInventoryId())){
}
//--------------------------------------------------------------------------------------------------------------
if (errorMessage.length() < 1) {
try {