1
This commit is contained in:
@@ -157,7 +157,8 @@ namespace Pilot.Report.Exploitation.AccountsReceivableStatements
|
||||
|
||||
sql += string.Format(@"
|
||||
INSERT INTO YingShouZhanKuanJY_GZTH(Number,OrderAmount,ShipmentsAmount,FBillAllAmount,
|
||||
FALLAmountFor,PaymentAmount,ShippedDebt,InvoicedDebt,OwedTickets)
|
||||
FALLAmountFor,PaymentAmount,ShippedDebt,InvoicedDebt,OwedTickets
|
||||
,[K3发货数量],[K3发货金额],[K3退货数量],[K3退货金额],[星空发货数量],[星空发货金额],[星空退货数量],[星空退货金额],PPFALLAmountFor,ZPFALLAmountFor,[K3专票金额],[K3普票金额])
|
||||
Select
|
||||
'合计',
|
||||
SUM(OrderAmount) as OrderAmount,
|
||||
@@ -167,7 +168,19 @@ namespace Pilot.Report.Exploitation.AccountsReceivableStatements
|
||||
SUM(PaymentAmount) as PaymentAmount,
|
||||
SUM(ShippedDebt) as ShippedDebt,
|
||||
SUM(InvoicedDebt) as InvoicedDebt,
|
||||
SUM(OwedTickets) as OwedTickets
|
||||
SUM(OwedTickets) as OwedTickets
|
||||
,SUM([K3发货数量]) as K3发货数量
|
||||
,SUM([K3发货金额]) as K3发货金额
|
||||
,SUM([K3退货数量]) as K3退货数量
|
||||
,SUM([K3退货金额]) as K3退货金额
|
||||
,SUM([星空发货数量]) as 星空发货数量
|
||||
,SUM([星空发货金额]) as 星空发货金额
|
||||
,SUM([星空退货数量]) as 星空退货数量
|
||||
,SUM([星空退货金额]) as 星空退货金额
|
||||
,SUM(PPFALLAmountFor) as PPFALLAmountFor
|
||||
,SUM(ZPFALLAmountFor) as ZPFALLAmountFor
|
||||
,SUM([K3专票金额]) as K3专票金额
|
||||
,SUM([K3普票金额]) as K3普票金额
|
||||
From YingShouZhanKuanJY_GZTH
|
||||
where 1=1
|
||||
");
|
||||
|
||||
Reference in New Issue
Block a user