From ef4d8b95680142bf21cae5ac93e79e14700e4080 Mon Sep 17 00:00:00 2001 From: "vick_wang419@hotmail.com.tw" Date: Wed, 24 Jan 2024 12:43:10 +0800 Subject: [PATCH] =?UTF-8?q?PTD007=20=E6=89=A3=E5=B8=B3=E4=BD=9C=E6=A5=AD?= =?UTF-8?q?=20Bug=20Fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Views/PTD/PTD007.cshtml | 2 +- .../Controllers/AMES/WipInfosController.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AMESCoreStudio.Web/Views/PTD/PTD007.cshtml b/AMESCoreStudio.Web/Views/PTD/PTD007.cshtml index 39435beb..de2b7700 100644 --- a/AMESCoreStudio.Web/Views/PTD/PTD007.cshtml +++ b/AMESCoreStudio.Web/Views/PTD/PTD007.cshtml @@ -206,7 +206,7 @@ }, { field: 'qty', - title: '出貨Qty', + title: '備貨Qty', width: 100 } ] diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs index f1c7ad4c..aa6f3bd6 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs @@ -4221,15 +4221,15 @@ and b.item_no = '{0}' and a.barcode_no = '{1}'", kp_no, barcode_no); { await connPTD.OpenAsync(); } - string strSQL = $@"SELECT DNNO - ,DNLineNO - ,a.ProductID + string strSQL = $@"SELECT b.RecordNumber as DNNO + ,b.RCLineNO as DNLineNO + ,b.ProductID ,a.SoldCustomerID ,a.ExpectShipDate ,a.ShipQty ,b.Qty - FROM [dbo].ZDNDetail a left join (select sum(1) as Qty,RecordNumber,RCLineNO,RecordTypeID - from dbo.[ZWHPickListDetail] where TaskStatus ='Picked' group by RecordTypeID,RecordNumber,RCLineNO)b + FROM [dbo].ZDNDetail a right join (select sum(1) as Qty,RecordNumber,RCLineNO,RecordTypeID,ProductID + from dbo.[ZWHPickListDetail] where TaskStatus ='Picked' group by RecordTypeID,RecordNumber,RCLineNO,ProductID)b on (b.RecordNumber = a.DNNO and b.RCLineNO = a.DNLineNO) where a.DNNO = '{recordNumber}' and b.RecordTypeID = '{recordType}'"; DataTable dtZDNDetail = new DataTable();