* Added DocType to Edi and CO

* Moved SOGrid to Shared and reuse in CO view
* Added retrieving of COTranslates to CO
This commit is contained in:
2025-02-03 19:41:35 +01:00
parent 96775b0c15
commit 177fce1fdf
11 changed files with 192 additions and 58 deletions

View File

@@ -33,6 +33,12 @@ namespace SytelineSaAppEfDataModel.Services
.Where(x => x.CoNum == customerOrder.CoNum && x.CoLine == customerOrderLine.CoLine)
.Select(x => mapper.Map<CustomerOrderLineItemDto>(x)).ToListAsync();
}
IList<EdiCustomerOrderTranslateDto> ediCustomerOrderTranslates = await context.EdiCustomerOrderTranslates
.Where(x => x.CoCoNum == customerOrder.CoNum)
.Select(x => mapper.Map<EdiCustomerOrderTranslateDto>(x)).ToListAsync();
customerOrder.EdiCustomerOrderTranslates = ediCustomerOrderTranslates;
return customerOrder;
}