|
|
@@ -894,6 +894,10 @@ public class PsExeExcelUtil {
|
|
894
|
894
|
}
|
|
895
|
895
|
}
|
|
896
|
896
|
|
|
|
897
|
+ if (dto.getTaxInvNo()==null || dto.getTaxInvNo().trim().isEmpty()) {
|
|
|
898
|
+ errorLogList.add("税票号码为空");
|
|
|
899
|
+ }
|
|
|
900
|
+
|
|
897
|
901
|
// 基础字段非空校验
|
|
898
|
902
|
if (dto.getTaxInvType() == null || dto.getTaxInvType().trim().isEmpty()) {
|
|
899
|
903
|
errorLogList.add("发票类型为空");
|
|
|
@@ -909,7 +913,7 @@ public class PsExeExcelUtil {
|
|
909
|
913
|
errorLogList.add("发票号码为空");
|
|
910
|
914
|
}
|
|
911
|
915
|
if (dto.getItemnoSdescBrand() == null || dto.getItemnoSdescBrand().trim().isEmpty()) {
|
|
912
|
|
- errorLogList.add("物料编码+物料描述+品牌为空");
|
|
|
916
|
+ errorLogList.add("商品编码+中文品名+牌号为空");
|
|
913
|
917
|
}
|
|
914
|
918
|
if (dto.getUt() == null || dto.getUt().trim().isEmpty()) {
|
|
915
|
919
|
errorLogList.add("单位为空");
|
|
|
@@ -935,6 +939,7 @@ public class PsExeExcelUtil {
|
|
935
|
939
|
errorLogList.add("税额为空");
|
|
936
|
940
|
}
|
|
937
|
941
|
|
|
|
942
|
+
|
|
938
|
943
|
// 3. 税额逻辑校验(税额=不含税金额*税率,误差校验)
|
|
939
|
944
|
/* if (dto.getNtPoAmt() != null && dto.getInTaxRate() != null && dto.getTaxAmt() != null) {
|
|
940
|
945
|
BigDecimal calcTaxAmt = parseBigDecimal(dto.getNtPoAmt(), 6)
|