This commit is contained in:
2025-11-20 18:14:49 +08:00
parent 78c347dbc7
commit d5fc4d8fb0
4 changed files with 53 additions and 9 deletions

View File

@@ -103,6 +103,50 @@ ORDER BY
#endregion
// #region GetPushGoodsDocInOrder(获取合并后的吉客云采购入库单订单)
// /// <summary>
// /// 获取合并后的吉客云采购入库单订单
// /// </summary>
// /// <returns></returns>
// public List<BusiOrderGoodsDocInSummary> GetPushGoodsDocInOrder()
// {
// string sql = $@"SELECT
// -- 分组字段
// CONVERT(date, InOutDate2) AS InOutDate2,
// WarehouseCode AS WarehouseCode,
// WarehouseName AS WarehouseName,
// VendCode ,[ApplyCompanyName],[VendCustomerName],
// -- 合计数据
// SUM(Quantity) AS Quantity ,-- 总数量,
// SUM(BaceCurrencyCostAmount) AS BaceCurrencyCostAmount,--总入库金额,
// SUM(BaceCurrencyNoTaxAmount) AS BaceCurrencyNoTaxAmount,--总本币无税金额,
// SUM(BaceCurrencyWithTaxAmount) AS BaceCurrencyWithTaxAmount,--总本币含税金额,
// SUM(BaceCurrencyTaxAmount) AS BaceCurrencyTaxAmount,-- 总本币税额,
// SUM(TransNoTaxAmount) AS TransNoTaxAmount,--总原币无税金额,
// SUM(TransHasTaxAmount) AS TransHasTaxAmount,--总原币含税金额,
// SUM(TransTaxAmount) AS TransTaxAmount,--总原币税额,
// -- 计数统计
// COUNT(DISTINCT GoodsdocNo) AS 入库单数,
// COUNT(*) AS 明细行数
//FROM [dbo].[BusiOrderGoodsDocIn]
//WHERE Status IN (0) -- 根据业务需求调整状态筛选
//GROUP BY
// CONVERT(DATE, InOutDate2),
// WarehouseCode,
// WarehouseName,
// VendCode ,[ApplyCompanyName],[VendCustomerName]
//ORDER BY
// CONVERT(date, InOutDate2) DESC,
// WarehouseCode,
// VendCode ; ";
// var list = this.SelectList<BusiOrderGoodsDocInSummary>(sql);
// return list;
// }
// #endregion
}
}