浏览代码

采购发票接口修改

yaoyu 7 月之前
父节点
当前提交
e1cb127d80
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pu/pu/src/private/nc/impl/th/InvoiceAddImpl.java

+ 2 - 2
pu/pu/src/private/nc/impl/th/InvoiceAddImpl.java

@@ -105,7 +105,7 @@ public class InvoiceAddImpl extends BaseServlet implements IHttpServletAdaptor {
 				invoiceItemVO.setCrowno(bodyObject.getString("crowno"));//行号
 //				invoiceItemVO.setVbdef13(bodyObject.getString("vbdef13"));//发票参照
 				invoiceItemVO.setVbdef11(bodyObject.getString("vbdef11"));//发票查看
-				invoiceItemVO.setVbdef12(vbillcode);//必填  发票号
+				invoiceItemVO.setVbdef12(bodyObject.getString("vbdef12"));//必填  OCR识别发票号
 				invoiceItemVO.setPk_material(SqlexecuteQuery("pk_material", "bd_material", "code", bodyObject.getString("pk_material")));//物料编码
 				invoiceItemVO.setPk_srcmaterial(SqlexecuteQuery("pk_source", "bd_material_v", "code", bodyObject.getString("pk_srcmaterial"))); //物料
 				invoiceItemVO.setCtaxcodeid(SqlexecuteQuery("pk_taxcode", "bd_taxcode", "code", bodyObject.getString("ctaxcodeid")));//税码
@@ -116,7 +116,7 @@ public class InvoiceAddImpl extends BaseServlet implements IHttpServletAdaptor {
 				invoiceItemVO.setNtax(new UFDouble(bodyObject.getString("ntax")));//税额
 				invoiceItemVO.setNastorigtaxprice(new UFDouble(bodyObject.getString("nastorigtaxprice")));//含税单价
 				invoiceItemVO.setNorigtaxmny(new UFDouble(bodyObject.getString("norigtaxmny")));//价税合计
-				invoiceItemVO.setVbdef17(json.getString("finvoiceclass"));//发票分类(0=增值税发票,10=普通发票,20=其它发票)
+				invoiceItemVO.setVbdef17(bodyObject.getString("vbdef17"));//发票分类(0=增值税发票,10=普通发票,20=其它发票)
 				invoiceItemVO.setVbdef15(bodyObject.getString("vbdef15"));//销售分公司
 				invoiceItemVO.setVbdef14(bodyObject.getString("vbdef14"));//是否一致
 				invoiceItemVO.setPk_apfinanceorg_v(SqlexecuteQuery("pk_vid", "org_financeorg_v", "code", bodyObject.getString("pk_apfinanceorg_v")));//应付财务组织