|
|
@ -360,7 +360,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
var dtos = ObjectMapper.Map<List<INVOICE_GRP>, List<INVOICE_GRP_DTO>>(entitys); |
|
|
|
foreach (var itm in dtos) |
|
|
|
{ |
|
|
|
if(DateTime.Parse(itm.CreationTime) == DateTime.MinValue) |
|
|
|
if(itm.CreationTime.Contains("0001")) |
|
|
|
{ |
|
|
|
itm.CreationTime = string.Empty; |
|
|
|
} |
|
|
@ -642,8 +642,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
IExporter _excel = new ExcelExporter(); |
|
|
|
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true).ConfigureAwait(false); |
|
|
|
var dtoDetails = ObjectMapper.Map<List<INVOICE_GRP>, List<INVOICE_GRP_EXP_DTO>>(entities); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var itm in dtoDetails) |
|
|
|
{ |
|
|
|
if (DateTime.Parse(itm.CreationTime)==DateTime.MinValue) |
|
|
|
{ |
|
|
|
itm.CreationTime = string.Empty; |
|
|
|
} |
|
|
|
itm.TaxAmtDiff = itm.TaxAmt + itm.TaxDiff; |
|
|
|
} |
|
|
|
var classDisplayName = typeof(INVOICE_GRP_DTO).GetCustomAttribute<DisplayAttribute>()?.Name ?? typeof(INVOICE_GRP_DTO).Name; |
|
|
|