Просмотр исходного кода

经销商出入库单允许修改单据类型

shenjingwei 3 недель назад
Родитель
Сommit
5a6332ecbc
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/custom/restcontroller/crm/agent/stock/stockbill.java

+ 2 - 2
src/custom/restcontroller/crm/agent/stock/stockbill.java

@@ -79,8 +79,8 @@ public class stockbill extends Controller {
             insertSQL.setValue("sa_custorderid", sa_custorderid);// C端订单ID
             insertSQL.setValue("sa_customersid", getCustomerid(sa_custorderid));// 客户ID
             insertSQL.setValue("rb", rb);// 红蓝字
-            insertSQL.setValue("typemx", typemx);// 明细分类
             insertSQL.setValue("type", type);// 单据类型
+            insertSQL.setValue("typemx", typemx);// 明细分类
             insertSQL.setValue("billdate", billdate);// 单据日期
             insertSQL.setValue("status", "新建");// 状态
             insertSQL.setValue("remarks", remarks);// 备注说明
@@ -90,7 +90,6 @@ public class stockbill extends Controller {
             insertSQL.setUniqueid(sys_enterprise_stockbillid);
             sqlist.add(insertSQL);
         } else {
-
             if (!getBillStatus(sys_enterprise_stockbillid).equals("新建")) {
                 return getErrReturnObject().setErrMsg("当前单据不是新建状态,不能修改").toString();
             }
@@ -98,6 +97,7 @@ public class stockbill extends Controller {
             updateSQL.setValue("sa_custorderid", sa_custorderid);// C端订单ID
             updateSQL.setValue("sa_customersid", getCustomerid(sa_custorderid));// 客户ID
             updateSQL.setValue("remarks", remarks);// 备注说明
+            updateSQL.setValue("type", type);// 单据类型
             updateSQL.setValue("typemx", typemx);// 明细分类
             updateSQL.setValue("sys_enterprise_stockid", sys_enterprise_stockid);// 企业仓库ID
             updateSQL.setValue("billdate", billdate);// 单据日期