diff --git a/.classpath b/.classpath
index 55fee7b..48cb177 100644
--- a/.classpath
+++ b/.classpath
@@ -60,6 +60,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/arap/src/public/nc/api/arap/resource/GatheringbillRestResource.java b/arap/src/public/nc/api/arap/resource/GatheringbillRestResource.java
index 483b9a7..5ee0548 100644
--- a/arap/src/public/nc/api/arap/resource/GatheringbillRestResource.java
+++ b/arap/src/public/nc/api/arap/resource/GatheringbillRestResource.java
@@ -114,10 +114,17 @@ public class GatheringbillRestResource extends ArapBaseRestResource {
headvo.setObjtype(0);
// 销售订单号
csaleorderid = headvo.getDef3();
+ if (StringUtils.isEmpty(csaleorderid)) {
+ throw new BusinessException("销售订单不能为空");
+ // return ResultMessageUtil.exceptionToJSON("销售订单不能为空", APIErrCodeEnum.BUSINESSEXCCODE.getCode());
+ }
// 客户
Object customerid = hybo.findColValue("so_saleorder", "ccustomerid",
"csaleorderid = '" + csaleorderid + "' ");
Object customerCode = hybo.findColValue("bd_customer", "code", "pk_customer = '" + customerid + "' ");
+ if (customerid == null || customerCode == null) {
+ throw new BusinessException("销售订单的关联客户不能为空");
+ }
headvo.setCustomer(customerCode.toString());
Object tr = dao.executeQuery(
@@ -222,6 +229,8 @@ public class GatheringbillRestResource extends ArapBaseRestResource {
//
UFDouble notax_cr = money_cr.sub(local_tax_cr);
itemvo.setNotax_cr(notax_cr);
+ //zhangxinah增加组织本币无税金额(贷方)
+ itemvo.setLocal_notax_cr(notax_cr);
//
itemvo.setRate(UFDouble.ZERO_DBL);
//
diff --git a/cm/resources/.gitkeep b/cm/resources/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/cm/src/client/.gitkeep b/cm/src/client/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/cm/src/test/.gitkeep b/cm/src/test/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/cmp/resources/.gitkeep b/cmp/resources/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/cmp/src/client/yyconfig/modules/cmp/informer/config/userdef/36S3_userdef.xml b/cmp/src/client/yyconfig/modules/cmp/informer/config/userdef/36S3_userdef.xml
new file mode 100644
index 0000000..1554bc8
--- /dev/null
+++ b/cmp/src/client/yyconfig/modules/cmp/informer/config/userdef/36S3_userdef.xml
@@ -0,0 +1,8 @@
+
+
+
+ cmp.cmp_informer
+ vdef
+
+
+
diff --git a/cmp/src/public/nc/vo/cmp/informer/InformerVO.java b/cmp/src/public/nc/vo/cmp/informer/InformerVO.java
index 90157cf..111904c 100644
--- a/cmp/src/public/nc/vo/cmp/informer/InformerVO.java
+++ b/cmp/src/public/nc/vo/cmp/informer/InformerVO.java
@@ -105,6 +105,46 @@ public class InformerVO extends SuperVO {
public static final String SRCBUSIBILL = "srcbusibill";
public static final String SRCBUSITYPE = "srcbusitype";
public static final String SRCBUSIBILLNAME = "srcbusibillname";
+ private java.lang.String vdef1;
+ private java.lang.String vdef2;
+ private java.lang.String vdef3;
+ private java.lang.String vdef4;
+ private java.lang.String vdef5;
+ private java.lang.String vdef6;
+ private java.lang.String vdef7;
+ private java.lang.String vdef8;
+ private java.lang.String vdef9;
+ private java.lang.String vdef10;
+ private java.lang.String vdef11;
+ private java.lang.String vdef12;
+ private java.lang.String vdef13;
+ private java.lang.String vdef14;
+ private java.lang.String vdef15;
+ private java.lang.String vdef16;
+ private java.lang.String vdef17;
+ private java.lang.String vdef18;
+ private java.lang.String vdef19;
+ private java.lang.String vdef20;
+ public static final String VDEF1 = "vdef1";
+ public static final String VDEF2 = "vdef2";
+ public static final String VDEF3 = "vdef3";
+ public static final String VDEF4 = "vdef4";
+ public static final String VDEF5 = "vdef5";
+ public static final String VDEF6 = "vdef6";
+ public static final String VDEF7 = "vdef7";
+ public static final String VDEF8 = "vdef8";
+ public static final String VDEF9 = "vdef9";
+ public static final String VDEF10 = "vdef10";
+ public static final String VDEF11 = "vdef11";
+ public static final String VDEF12 = "vdef12";
+ public static final String VDEF13 = "vdef13";
+ public static final String VDEF14 = "vdef14";
+ public static final String VDEF15 = "vdef15";
+ public static final String VDEF16 = "vdef16";
+ public static final String VDEF17 = "vdef17";
+ public static final String VDEF18 = "vdef18";
+ public static final String VDEF19 = "vdef19";
+ public static final String VDEF20 = "vdef20";
public static final String DEF01 = "def01";
public String getDef01() {
diff --git a/cmp/src/test/.gitkeep b/cmp/src/test/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/gl/resources/.gitkeep b/gl/resources/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/gl/src/private/.gitkeep b/gl/src/private/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/gl/src/public/.gitkeep b/gl/src/public/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/gl/src/test/.gitkeep b/gl/src/test/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/pu/src/client/nccloud/web/ic/outbound/sapplybill/action/.gitkeep b/pu/src/client/nccloud/web/ic/outbound/sapplybill/action/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sc/resources/.gitkeep b/sc/resources/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sc/src/client/.gitkeep b/sc/src/client/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sc/src/public/.gitkeep b/sc/src/public/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sc/src/test/.gitkeep b/sc/src/test/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/so/META-INF/saleorder_saleinvoice.rest b/so/META-INF/saleorder_saleinvoice.rest
index 622cd8d..0df7078 100644
--- a/so/META-INF/saleorder_saleinvoice.rest
+++ b/so/META-INF/saleorder_saleinvoice.rest
@@ -2,6 +2,5 @@
-
\ No newline at end of file
diff --git a/so/src/public/nc/vo/so/m32/saleinvoice/operator/billSaveAction.java b/so/src/public/nc/vo/so/m32/saleinvoice/operator/billSaveAction.java
index 0e0b043..a46fa28 100644
--- a/so/src/public/nc/vo/so/m32/saleinvoice/operator/billSaveAction.java
+++ b/so/src/public/nc/vo/so/m32/saleinvoice/operator/billSaveAction.java
@@ -130,7 +130,7 @@ public class billSaveAction extends AbstractNCCRestResource {
IVApplicationAggVO returnSaveIVApplicationAggVO = serviceImpl.save(iVApplicationAggVO);
// Object returnIVApplicationAggVO = PfServiceScmUtil.processBatch("SAVE", "SSCIVA", new IVApplicationAggVO[] { iVApplicationAggVO }, null, null);
if (returnSaveIVApplicationAggVO != null) {
- return ResultMessageUtil.toJSON(null, "接口调用成功");
+ return ResultMessageUtil.toJSON(returnApproveSaleInvoiceVOs, "接口调用成功");
} else {
Exception e = new Exception("接口调用失败");
return ResultMessageUtil.exceptionToJSON(e);
diff --git a/so/src/public/nccloud/api/so/saleinvoice/operator/saveCommitAction.java b/so/src/public/nccloud/api/so/saleinvoice/operator/saveCommitAction.java
index f2d65d1..b721579 100644
--- a/so/src/public/nccloud/api/so/saleinvoice/operator/saveCommitAction.java
+++ b/so/src/public/nccloud/api/so/saleinvoice/operator/saveCommitAction.java
@@ -138,7 +138,10 @@ public class saveCommitAction extends AbstractNCCRestResource {
// 销售发票审核结束
ISaleInvoiceToTaxInvService invoiceService = NCLocator.getInstance()
.lookup(ISaleInvoiceToTaxInvService.class);
- invoiceService.issueTaxInvoice(saleInvoiceVO, "1");
+ // 数电票(增值税专用发票)=31,数电票(普通发票)=32,数电纸质发票(机动车销售统一发票)=36,数电纸质发票(增值税专用发票)=33,数电纸质发票(普通发票)=34,
+ // 增值税电子普通发票=1,增值税电子专用发票=2,增值税普通发票=3,增值税专用发票=4,增值税电子普通发票(成品油)=8,成品油普通发票(卷式)=9,
+ // 成品油普通发票=10,成品油专用发票=11,增值税普通发票(卷式)=12,增值税专用发票(机动车)=99
+ invoiceService.issueTaxInvoice(saleInvoiceVO, fplxStr);
JSONObject desc = r.getDesc();
if (desc != null) {
@@ -193,11 +196,11 @@ public class saveCommitAction extends AbstractNCCRestResource {
// 2025-2-8付业要求修改,根据发票类型Q(自定义档案)对照发票类型
String ctrantypeidStr = "32-02";// 默认普通发票
if (fplxStr != null && fplxStr.equals("31")) {
- ctrantypeidStr = "32-01";
+ ctrantypeidStr = "32-01";// 数电票(增值税专用发票)
} else if (fplxStr != null && fplxStr.equals("32")) {
- ctrantypeidStr = "32-02";
+ ctrantypeidStr = "32-02";// 数电票(普通发票)
} else if (fplxStr != null && fplxStr.equals("36")) {
- ctrantypeidStr = "32-Cxx-03";
+ ctrantypeidStr = "32-Cxx-03";// 机动车销售发票
}
billhead.put("ctrantypeid", ctrantypeidStr);// 发票类型
// billhead.put("ctrantypeid", "32-02");//发票类型
diff --git a/so/src/public/nccloud/openapi/so/m30/SaleOrderResource.java b/so/src/public/nccloud/openapi/so/m30/SaleOrderResource.java
index df25a03..5f6292e 100644
--- a/so/src/public/nccloud/openapi/so/m30/SaleOrderResource.java
+++ b/so/src/public/nccloud/openapi/so/m30/SaleOrderResource.java
@@ -1,18 +1,17 @@
package nccloud.openapi.so.m30;
-import nc.itf.bd.defdoc.IDefdocService;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import nc.jdbc.framework.processor.*;
+import nc.bd.itf.tools.BFPubTools;
+import nc.bs.dao.BaseDAO;
import nc.bs.framework.common.InvocationInfoProxy;
import nc.bs.framework.common.NCLocator;
+import nc.itf.bd.defdoc.IDefdocService;
+import nc.itf.pim.project.prv.IProject;
+import nc.jdbc.framework.processor.ColumnListProcessor;
+import nc.jdbc.framework.processor.ColumnProcessor;
+import nc.jdbc.framework.processor.MapProcessor;
import nc.vo.bd.defdoc.DefdocVO;
+import nc.vo.pim.project.ProjectHeadVO;
import nc.vo.pub.BusinessException;
import nc.vo.pub.lang.UFDateTime;
import nc.vo.pubapp.AppContext;
@@ -26,11 +25,15 @@ import nccloud.openapi.scmpub.pub.NCCPubRestResource;
import nccloud.openapi.scmpub.pub.TransferCodeToPKTool;
import nccloud.openapi.scmpub.pub.TransferMapToVOTool;
import nccloud.openapi.scmpub.util.CallReturnBuildUtil;
-import nc.bs.dao.BaseDAO;
-import nc.bd.itf.tools.BFPubTools;
import org.json.JSONString;
-import nc.vo.pim.project.ProjectHeadVO;
-import nc.itf.pim.project.prv.IProject;
+
+import javax.ws.rs.Consumes;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
/**
@@ -41,441 +44,443 @@ import nc.itf.pim.project.prv.IProject;
@Path("so/saleorder")
public class SaleOrderResource extends NCCPubRestResource {
- private static String BODYTABLE = "so_saleorder_b";
- private static String HEADTABLE = "so_saleorder";
- public BaseDAO dao;
+ private static String BODYTABLE = "so_saleorder_b";
+ private static String HEADTABLE = "so_saleorder";
+ public BaseDAO dao;
- public BaseDAO getDao() {
- if (dao == null) {
- dao = new BaseDAO();
- }
- return dao;
- }
+ public BaseDAO getDao() {
+ if (dao == null) {
+ dao = new BaseDAO();
+ }
+ return dao;
+ }
- @POST
- @Path("operation/save")
- @Consumes({ "application/json" })
- @Produces({ "application/json" })
- public JSONString save(Map paramMap) {
- List