|
|
@ -1193,25 +1193,25 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
} |
|
|
|
return _invls; |
|
|
|
} |
|
|
|
public List<string> FirstInvoiceExtend1<TDetail>(List<TDetail> p_list, List<PUB_ADJ_DETAIL> p_adjlist, List<TEMP_CAN_SA_DETAIL> dtos, List<TEMP_NOT_SA_DETAIL> p_notlist, int p_version, string p_InvGroupNum, string p_parentInvBillNum, EnumBusinessType businessType) |
|
|
|
where TDetail : SA_CAN_BASE, new() |
|
|
|
{ |
|
|
|
var gener = new InvoiceGenerator(); |
|
|
|
gener.GenerateInvoices(p_list); |
|
|
|
var invList = gener.Invoices; |
|
|
|
if (invList.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var inv in invList) |
|
|
|
{ |
|
|
|
var partlist = inv.Parts; |
|
|
|
if (partlist.Count > 0) |
|
|
|
{ |
|
|
|
partlist.GroupBy(p => new { p.InvGroupNum, p.PartCode, p.Price, p.BeginDate, p.EndDate, p.ContractDocID, p.LU }) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return new List<string>(); |
|
|
|
} |
|
|
|
// public List<string> FirstInvoiceExtend1<TDetail>(List<TDetail> p_list, List<PUB_ADJ_DETAIL> p_adjlist, List<TEMP_CAN_SA_DETAIL> dtos, List<TEMP_NOT_SA_DETAIL> p_notlist, int p_version, string p_InvGroupNum, string p_parentInvBillNum, EnumBusinessType businessType)
|
|
|
|
//where TDetail : SA_CAN_BASE, new()
|
|
|
|
// {
|
|
|
|
// var gener = new InvoiceGenerator();
|
|
|
|
// gener.GenerateInvoices(p_list);
|
|
|
|
// var invList = gener.Invoices;
|
|
|
|
// if (invList.Count > 0)
|
|
|
|
// {
|
|
|
|
// foreach (var inv in invList)
|
|
|
|
// {
|
|
|
|
// var partlist = inv.Parts;
|
|
|
|
// if (partlist.Count > 0)
|
|
|
|
// {
|
|
|
|
// partlist.GroupBy(p => new { p.InvGroupNum, p.PartCode, p.Price, p.BeginDate, p.EndDate, p.ContractDocID, p.LU })
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// return new List<string>();
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|