|
@ -312,7 +312,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
select itm2; |
|
|
select itm2; |
|
|
foreach (var itm in query) |
|
|
foreach (var itm in query) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
itm.InvbillNum = key; |
|
|
itm.InvbillNum = key; |
|
|
salist.Add(itm); |
|
|
salist.Add(itm); |
|
|
} |
|
|
} |
|
@ -355,7 +354,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
{ |
|
|
{ |
|
|
detailList.AddRange(_entityDetailList); |
|
|
detailList.AddRange(_entityDetailList); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
List<tempAmt> amtList = new List<tempAmt>(); |
|
|
List<tempAmt> amtList = new List<tempAmt>(); |
|
|
foreach (var itm in detailList) |
|
|
foreach (var itm in detailList) |
|
|
{ |
|
|
{ |
|
@ -365,7 +363,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
TaxAmt=itm.Amt+ Math.Round(itm.Amt * 0.13m, 2) |
|
|
TaxAmt=itm.Amt+ Math.Round(itm.Amt * 0.13m, 2) |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
decimal amt = amtList.Sum(k => k.Amt);//金额
|
|
|
decimal amt = amtList.Sum(k => k.Amt);//金额
|
|
|
decimal txtAmt = amtList.Sum(k => k.TaxAmt) ;//税后金额
|
|
|
decimal txtAmt = amtList.Sum(k => k.TaxAmt) ;//税后金额
|
|
|
decimal readAmt = amtList.Sum(k=>k.Tax);//税额
|
|
|
decimal readAmt = amtList.Sum(k=>k.Tax);//税额
|
|
@ -379,7 +376,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
//var _groupList = dtos.GroupBy(p => new { p.GroupNum })
|
|
|
//var _groupList = dtos.GroupBy(p => new { p.GroupNum })
|
|
|
// .Select(p => new { GroupNum = p.Key.GroupNum, Amt = p.Sum(itm => itm.Amt) }).Distinct();
|
|
|
// .Select(p => new { GroupNum = p.Key.GroupNum, Amt = p.Sum(itm => itm.Amt) }).Distinct();
|
|
|
List<INVOICE_MAP_GROUP> group1 = new List<INVOICE_MAP_GROUP>(); |
|
|
List<INVOICE_MAP_GROUP> group1 = new List<INVOICE_MAP_GROUP>(); |
|
|
|
|
|
|
|
|
foreach (var en in _groupList) |
|
|
foreach (var en in _groupList) |
|
|
{ |
|
|
{ |
|
|
group1.Add( |
|
|
group1.Add( |
|
@ -453,9 +449,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
_invls = invlist.Select(p => p.InvbillNum).ToList(); |
|
|
_invls = invlist.Select(p => p.InvbillNum).ToList(); |
|
|
} |
|
|
} |
|
|
return _invls; |
|
|
return _invls; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public List<string> FirstInvoice<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) |
|
|
public List<string> FirstInvoice<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 |
|
|
where TDetail : SA_CAN_BASE |
|
|
{ |
|
|
{ |
|
|