This commit is contained in:
liqionghai
2025-08-02 15:04:44 +08:00
parent 3046a181a6
commit 9da6fe50b5
7 changed files with 687 additions and 379 deletions

View File

@@ -162,9 +162,10 @@ namespace Pilot.Report.Exploitation.AccountsReceivableStatements
", FSDate,fDate,ZZFID,fClient,XSYFID,ZZHTH);
sql += string.Format(@"/*dialect*/
sql += string.Format($@"/*dialect*/
INSERT INTO YingShouZhanKuanMX_GZTH(NUMBER,FQTY,FALLAMOUNT,OrderAmount,ShipmentsNum,ShipmentsAmount,
ReturnNum,ReturnAmount,BillingAmount,PaymentAmount,ShippedDebt,InvoicedDebt,OwedTickets,[K3退货金额],PPBillingAmount,ZPBillingAmount,[星空退货金额],[星空发货金额])
ReturnNum,ReturnAmount,BillingAmount,PaymentAmount,ShippedDebt,InvoicedDebt,OwedTickets,[K3退货金额],PPBillingAmount,ZPBillingAmount,[星空退货金额],[星空发货金额]
,[K3发货数量],[K3发货金额],[星空发货数量],[K3退货数量],[星空退货数量],[K3专票金额],[K3普票金额])
SELECT
'合计',
SUM(FQTY),
@@ -182,9 +183,17 @@ namespace Pilot.Report.Exploitation.AccountsReceivableStatements
SUM(PPBillingAmount),
SUM(ZPBillingAmount),
sum(星空退货金额),SUM(星空发货金额),
SUM(K3发货数量),SUM(K3发货金额),SUM(星空发货数量),SUM(K3退货数量),SUM(星空退货数量),SUM(K3专票金额),SUM(K3普票金额)
FROM
YingShouZhanKuanMX_GZTH
where 1=1
INSERT INTO YingShouZhanKuanMX_GZTH(FID,NUMBER,PaymentAmount)
Select 999999,'待核销',Sum((FRECAMOUNTFOR-F_AMOUNT)*FEXCHANGERATE) AS DHXJE
From T_AR_RECEIVEBILL T1
Where 1=1
And FDOCUMENTSTATUS = 'C'
And FCONTACTUNIT ={fClient}
");
if (fGROUP == "2")
{