From 8c8bd7bb3855e9e8c794da52dfa97cf2ebc6beba Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期六, 09 八月 2025 12:37:22 +0800
Subject: [PATCH] 网页端条码生成模块,条码生成调用方法增加客户海诚品种条码生成规则(源单:采购订单、采购入库单)

---
 WebAPI/Controllers/XSGL/YS_ContactBalController.cs |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/WebAPI/Controllers/XSGL/YS_ContactBalController.cs b/WebAPI/Controllers/XSGL/YS_ContactBalController.cs
index 2885c1c..6e96437 100644
--- a/WebAPI/Controllers/XSGL/YS_ContactBalController.cs
+++ b/WebAPI/Controllers/XSGL/YS_ContactBalController.cs
@@ -427,9 +427,11 @@
                         ds = oCN.RunProcReturn(sql, "YSYF_ContactBal");
                         if (ds.Tables[0].Rows.Count == 0)
                         {
-                            sql = "insert into YSYF_ContactBal(HRP,HCusID,HCurID,HBeginBalance) " +
+                            sql = "insert into YSYF_ContactBal(HYear,HPeriod,HRP,HCusID,HCurID,HBeginBalance) " +
                                 "values(" +
-                                "" + HFRP + "" +
+                                "YEAR(getdate())" +
+                                ",Month(getdate())" +
+                                "," + HFRP + "" +
                                 "," + HCusID + "" +
                                 "," + HCurID + "" +
                                 "," + HBeginBalance + "" +
@@ -475,9 +477,11 @@
                         ds = oCN.RunProcReturn(sql, "YSYF_ContactBal");
                         if (ds.Tables[0].Rows.Count == 0)
                         {
-                            sql = "insert into YSYF_ContactBal(HRP,HCusID,HCurID,HBeginBalance) " +
+                            sql = "insert into YSYF_ContactBal(HYear,HPeriod,HRP,HCusID,HCurID,HBeginBalance) " +
                                 "values(" +
-                                "" + HFRP + "" +
+                                "YEAR(getdate())" +
+                                ",Month(getdate())" +
+                                "," + HFRP + "" +
                                 "," + HCusID + "" +
                                 "," + HCurID + "" +
                                 "," + HBeginBalance + "" +

--
Gitblit v1.9.1