11816 3 dagar sedan
förälder
incheckning
0faf32b13d

+ 6
- 1
src/main/java/com/example/backend/pAndSExe/util/PsExeExcelUtil.java Visa fil

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

Loading…
Avbryt
Spara