From fe185bd5c6456bd5191d969d1581ef1ab9a175c8 Mon Sep 17 00:00:00 2001 From: 44673626 <44673626@qq.com> Date: Wed, 23 Feb 2022 20:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Report/HQHSettledDetailDapperRepository.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs index 55e29c0b..00c24618 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs @@ -92,7 +92,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " ( temp1.[结算数量] * ISNULL( temp3.Price, 0 ) ) AS 结算金额,\n" + " isnull( TEMP2.Price, 0 ) AS 发货定价,\n" + " isnull( temp1.发货数量, 0 ) * isnull( TEMP2.Price, 0 ) AS 发货总金额,\n" + - " 0 AS 数量差异,\n" + + " (isnull( temp1.发货数量, 0 )-isnull(temp1.[结算数量],0)) AS 数量差异,\n" + " ISNULL( temp3.Price, 0 ) - ISNULL( TEMP2.Price, 0 ) AS 单价差异,\n" + " ( ISNULL( temp3.Price, 0 ) - ISNULL( TEMP2.Price, 0 ) ) * temp1.结算数量 AS 差异总金额 \n" + "FROM\n" + @@ -104,12 +104,12 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " a.StorageLocation AS 收货仓库,\n" + " a.StorageLocationDesc AS 收货仓库描述,\n" + " a.HQHKanBan AS 订货看板编号,\n" + - " '' AS 订货零件号,\n" + + " a.MaterialCode AS 订货零件号,\n" + " c.MaterialCode Sap编码,\n" + " a.MaterialCode 结算物料代码,\n" + " c.MaterialDesc AS 零件中文名称,\n" + " isnull( b.Qty, 0 ) AS 发货数量,\n" + - " 0 AS 发货状态,\n" + + " 2 AS 发货状态,\n" + " '' AS 结算验收单号,\n" + " isnull( a.Qty, 0 ) AS 结算数量,\n" + " C.EstimateTypeDesc AS 物料组,\n" + @@ -320,6 +320,8 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report var first = _ls.FirstOrDefault(p => p.Kanban == itm.Kanban && p.MaterialCode == itm.MaterialCode); if (first != null) { + itm.WmsDate = DateTime.Parse(itm.WmsDate).ToShortDateString(); + first.WmsBillNum += "," + itm.WmsBillNum; first.WmsDate += "," + itm.WmsDate; }