From da347f2bb4b85c91c726a27f558e35f21206197f Mon Sep 17 00:00:00 2001
From: jinghz <jinghz@oceic.com>
Date: 星期五, 01 十二月 2023 16:09:08 +0800
Subject: [PATCH] 回车下拉框 取促销价

---
 WarM/仓库管理/Kf_SellOutBill.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git "a/WarM/\344\273\223\345\272\223\347\256\241\347\220\206/Kf_SellOutBill.cs" "b/WarM/\344\273\223\345\272\223\347\256\241\347\220\206/Kf_SellOutBill.cs"
index bdfb9a5..c704d80 100644
--- "a/WarM/\344\273\223\345\272\223\347\256\241\347\220\206/Kf_SellOutBill.cs"
+++ "b/WarM/\344\273\223\345\272\223\347\256\241\347\220\206/Kf_SellOutBill.cs"
@@ -3173,7 +3173,14 @@
                             }
                             grdMain.Rows[grdMain.CurrentRow.Index].Cells[HQtyCol].Value = 1;
                             grdMain.Rows[grdMain.CurrentRow.Index].Cells[HPriceCol].Value = oMatePriceCus.GetMatePriceByCus(oMater.omodel.HItemID, DBUtility.ClsPub.isLong(this.txtHSupID.Tag));
-                            grdMain.Rows[grdMain.CurrentRow.Index].Cells[HSalePriceCol].Value = oMater.omodel.HSalePrice.ToString();
+                            if (this.ModCaption == "閿�鍞嚭搴撳崟_闆跺敭1" && oMater.omodel.HRatePrice > 0)
+                            {
+                                grdMain.Rows[grdMain.CurrentRow.Index].Cells[HSalePriceCol].Value = oMater.omodel.HRatePrice.ToString();//鑾峰彇淇冮攢浠�
+                            }
+                            else
+                            {
+                                grdMain.Rows[grdMain.CurrentRow.Index].Cells[HSalePriceCol].Value = oMater.omodel.HSalePrice.ToString();
+                            }
                             if (DBUtility.ClsPub.isDoule(grdMain.Rows[grdMain.CurrentRow.Index].Cells[HPriceCol].Value) == 0)
                             {
                                 grdMain.Rows[grdMain.CurrentRow.Index].Cells[HPriceCol].Value = grdMain.Rows[grdMain.CurrentRow.Index].Cells[HSalePriceCol].Value;

--
Gitblit v1.9.1