1
This commit is contained in:
@@ -147,14 +147,12 @@ namespace Tnb.WarehouseMgr
|
||||
[HttpGet]
|
||||
public async Task<dynamic?> GetInOutStockCodesById([FromQuery] InOutStockDetailQuery input)
|
||||
{
|
||||
dynamic? result = null;
|
||||
var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID);
|
||||
|
||||
async Task<dynamic?> _fetchInOutStockCodesById<TEntity, TOut, TStockCode>(string billDId)
|
||||
where TEntity : BaseEntity<string>, new()
|
||||
where TOut : IInOutStockDetail<TStockCode>, new()
|
||||
where TStockCode : BaseEntity<string>, IInOutStockCode, new()
|
||||
{
|
||||
var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID);
|
||||
var data = await _db.Queryable<TEntity>()
|
||||
.Where(a => a.id == billDId)
|
||||
.Select(a => new TOut
|
||||
@@ -166,6 +164,7 @@ namespace Tnb.WarehouseMgr
|
||||
return data;
|
||||
}
|
||||
|
||||
dynamic? result = null;
|
||||
switch (input.inoutStockType)
|
||||
{
|
||||
case EnumInOutStockType.In:
|
||||
|
||||
Reference in New Issue
Block a user