bug
This commit is contained in:
@@ -473,7 +473,10 @@ namespace Tnb.ProductionMgr
|
||||
third_equip_code = l.equip_code,
|
||||
weight_name = l.label_point,
|
||||
category_id = b.category_id,
|
||||
as_location_id = f.as_location_id
|
||||
as_location_id = f.as_location_id,
|
||||
upmat_location_id = f.upmat_location_id,
|
||||
downmat_location_id = f.as_location_id,
|
||||
instock_warehouse_id = f.as_location_id,
|
||||
})
|
||||
.MergeTable()
|
||||
.OrderBy($"{input.sidx} {input.sort}")
|
||||
@@ -487,6 +490,16 @@ namespace Tnb.ProductionMgr
|
||||
BasLocation basLocation = await _db.Queryable<BasLocation>().SingleAsync(x => x.id == item.as_location_id);
|
||||
item.as_location_code = basLocation.location_code;
|
||||
}
|
||||
if (item.upmat_location_id!=null && !item.upmat_location_id.IsEmpty())
|
||||
{
|
||||
BasLocation basLocation = await _db.Queryable<BasLocation>().SingleAsync(x => x.id == item.upmat_location_id);
|
||||
item.upmat_location_code = basLocation.location_code;
|
||||
}
|
||||
if (item.downmat_location_id!=null && !item.downmat_location_id.IsEmpty())
|
||||
{
|
||||
BasLocation basLocation = await _db.Queryable<BasLocation>().SingleAsync(x => x.id == item.downmat_location_id);
|
||||
item.downmat_location_code = basLocation.location_code;
|
||||
}
|
||||
|
||||
if (item.schedule_type == 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user