This commit is contained in:
2021-01-21 17:50:16 +00:00
parent 9a2defe9c5
commit 765b98a567
6 changed files with 214 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ namespace AyaNova.Biz
{
using (var transaction = await ct.Database.BeginTransactionAsync())
{
//get the last record if exists (may not if opening balance)
//get the last record if exists (will not if opening balance)
var LastEntry = await ct.PartInventory.OrderByDescending(m => m.EntryDate).FirstOrDefaultAsync(m => m.PartId == newDtObject.PartId && m.PartWarehouseId == newDtObject.PartWarehouseId);
PartInventory newObject = new PartInventory();
newObject.Description = newDtObject.Description;