small update

This commit is contained in:
ameerulrasyid 2025-02-26 16:28:03 +08:00
parent 01814cc26f
commit 02f8ce4cd8

View File

@ -548,7 +548,7 @@ namespace PSTW_CentralSystem.Controllers.API.Inventory
public async Task<IActionResult> ItemMovementList() public async Task<IActionResult> ItemMovementList()
{ {
var itemMovementList = await _centralDbContext.ItemMovements.ToListAsync(); var itemMovementList = await _centralDbContext.ItemMovements.Include(i => i.NextUser).ToListAsync();
//var itemList = await _centralDbContext.Items.ToListAsync(); //var itemList = await _centralDbContext.Items.ToListAsync();
int itemrow = 0; int itemrow = 0;
@ -556,7 +556,8 @@ namespace PSTW_CentralSystem.Controllers.API.Inventory
{ {
id = itemrow++, id = itemrow++,
item, // Includes all properties of the original item item, // Includes all properties of the original item
QRString = $"{HttpContext.Request.Scheme}://{HttpContext.Request.Host.Value}/I/{item.ItemId}" // Generate QR String QRString = $"{HttpContext.Request.Scheme}://{HttpContext.Request.Host.Value}/I/{item.ItemId}", // Generate QR String
userName = item.NextUser?.FullName
}).ToList(); }).ToList();
//Console.WriteLine(Json(itemMovementList)); //Console.WriteLine(Json(itemMovementList));