createdf
This commit is contained in:
@@ -34,7 +34,8 @@ namespace Back.Services.Warehouse
|
||||
info = item.info,
|
||||
Type = item.Type,
|
||||
InvoiceID=item.InvoiceID,
|
||||
Deleted = false
|
||||
Deleted = false,
|
||||
CreateDt=DateTime.Now
|
||||
};
|
||||
var returnmodel = await _ReceiptRepo.AddAsync(model);
|
||||
if (returnmodel != null)
|
||||
@@ -61,6 +62,7 @@ namespace Back.Services.Warehouse
|
||||
public async Task<ReceiptDto?> Update(ReceiptDto item)
|
||||
{
|
||||
var model= await _ReceiptRepo.Get(w => w.ID == item.ID).FirstOrDefaultAsync();
|
||||
|
||||
model.Date= item.Date.Replace("/", "");
|
||||
model.CODID= item.CODID;
|
||||
model.Count= item.Count;
|
||||
|
@@ -25,7 +25,8 @@ namespace Back.Services.Warehouse
|
||||
info = item.info,
|
||||
Type = item.Type,
|
||||
InvoiceID = item.InvoiceID,
|
||||
Deleted=false
|
||||
Deleted=false,
|
||||
CreateDt = DateTime.Now
|
||||
};
|
||||
var returnmodel = await _ReceiptRepo.AddAsync(model);
|
||||
if (returnmodel != null)
|
||||
|
@@ -39,6 +39,7 @@ namespace Back.Services.Warehouse
|
||||
ModelTypeID = (int)s.Type,
|
||||
ModelTypeTitle = s.Type.GetEnumDisplayName(),
|
||||
invoiceID = s.InvoiceID,
|
||||
CreateDt = s.CreateDt,
|
||||
});
|
||||
if (!string.IsNullOrEmpty(date))
|
||||
RequestRemittance = RequestRemittance.Where(w => w.Date == date);
|
||||
@@ -59,6 +60,7 @@ namespace Back.Services.Warehouse
|
||||
ModelTypeTitle = s.Type.GetEnumDisplayName(),
|
||||
invoiceID = s.InvoiceID,
|
||||
ForSale = s.ForSale,
|
||||
CreateDt = s.CreateDt,
|
||||
});
|
||||
if (!string.IsNullOrEmpty(date))
|
||||
RequestReceipt = RequestReceipt.Where(w => w.Date == date);
|
||||
@@ -69,7 +71,7 @@ namespace Back.Services.Warehouse
|
||||
var Remittance = await RequestRemittance.ToListAsync();
|
||||
|
||||
|
||||
return await itemsReceipt.Union(Remittance).OrderByDescending(o => o.Date).Paging(PageIndex, PageSize);
|
||||
return await itemsReceipt.Union(Remittance).OrderByDescending(o => o.CreateDt).Paging(PageIndex, PageSize);
|
||||
|
||||
|
||||
// return await RequestReceipt.Union(RequestRemittance).OrderByDescending(o => o.Date).Paging(PageIndex, PageSize);
|
||||
|
Reference in New Issue
Block a user