From d55d93edc8ad2f06ec371fdf7098700919298ce3 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期五, 19 五月 2023 13:57:15 +0800
Subject: [PATCH] 网页版 条码生成模块: 增加 生产入库、采购入库、销售退货、生产退料、批次调整单 为源单,生成条码, 并 自动产生对应 条码出入库记录 功能;(外网版条码生成已有此功能,自动生成条码出入库记录调相同方法即可)

---
 WebAPI/Controllers/SellOutBackController.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/SellOutBackController.cs b/WebAPI/Controllers/SellOutBackController.cs
index c8a743f..1b4d8fd 100644
--- a/WebAPI/Controllers/SellOutBackController.cs
+++ b/WebAPI/Controllers/SellOutBackController.cs
@@ -246,6 +246,8 @@
         {
             try
             {
+                if (String.IsNullOrEmpty(sWhere))
+                    sWhere = "and 1 = 1 ";
                 ds = webserver.GetKf_PonderationBillMain_Temp(HBillID, HBillType, sWhere);
                 if (ds == null || ds.Tables[0].Rows.Count <= 0)
                 {
@@ -399,7 +401,7 @@
                 websLsmain.HEmpID = lsmain[0].HEmpID;
                 websLsmain.HRemark = lsmain[0].HRemark;
                 websLsmain.HMaker = lsmain[0].HMaker;
-
+                websLsmain.HBillType = "1247";//鍥哄畾鍊�
                 if (webserver.set_SaveSellOutBackBill_New(websLsmain, sSourceBillType, ref DBUtility.ClsPub.sErrInfo))
                 {
                     objJsonResult.code = "0";

--
Gitblit v1.9.1