| 
					
				 | 
			
			
				@@ -30,9 +30,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			sum(shs.iSum) as exportPrice, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			sum(iNatSum) as rmbAmount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			case when max(so.cexch)='人民币' then avg(so.procesUnitPriceusd) else round(avg(so.procesUnitPriceusd)*sh.iExchRate,4) end as procesUnitPricermb, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			case when max(so.cexch)='人民币' then round(avg(so.procesUnitPriceusd)/sh.iExchRate,4) else avg(so.procesUnitPriceusd) end as procesUnitPriceusd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			case when max(so.cexch)='人民币' then 0 else avg(so.procesUnitPriceusd) end as procesUnitPriceusd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				case when max(so.cexch)='人民币' then avg(so.procesUnitPriceusd) else round(avg(so.procesUnitPriceusd)*sh.iExchRate,4) end* sum(shs.iQuantity) as processCost, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			case when max(so.cexch)='人民币' then round(avg(so.procesUnitPriceusd)/sh.iExchRate,4) else avg(so.procesUnitPriceusd) end * sum(shs.iQuantity) as processCostUsd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			case when max(so.cexch)='人民币' then 0 else avg(so.procesUnitPriceusd) end * sum(shs.iQuantity) as processCostUsd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			v.cVenName AS processUnit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		 FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			UFDATA_101_2021.dbo.SaleBillVouch sh 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -71,9 +71,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			sum(shs.iSum) as exportPrice, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			sum(iNatSum) as rmbAmount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			case when max(so.cexch)='人民币' then avg(so.iOriTaxCost) else round(avg(so.iOriTaxCost)*sh.iExchRate,4) end as procesUnitPricermb, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			case when max(so.cexch)='人民币' then round(avg(so.iOriTaxCost)/sh.iExchRate,4) else avg(so.iOriTaxCost) end as procesUnitPriceusd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			case when max(so.cexch)='人民币' then 0 else avg(so.iOriTaxCost) end as procesUnitPriceusd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				case when max(so.cexch)='人民币' then avg(so.iOriTaxCost) else round(avg(so.iOriTaxCost)*sh.iExchRate,4) end * sum(shs.iQuantity) as processCost, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			case when max(so.cexch)='人民币' then round(avg(so.iOriTaxCost)/sh.iExchRate,4) else avg(so.iOriTaxCost) end * sum(shs.iQuantity) as processCostUsd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			case when max(so.cexch)='人民币' then 0 else avg(so.iOriTaxCost) end * sum(shs.iQuantity) as processCostUsd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			v.cVenName AS processUnit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			UFDATA_102_2021.dbo.SaleBillVouch sh 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -125,10 +125,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sum(shs.iSum) as exportPrice, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sum(iNatSum) as rmbAmount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		case when max(so.cexch)='人民币' then avg(so.iOriTaxCost) else round(avg(so.iOriTaxCost)*sh.iExchRate,4) end as procesUnitPricermb, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		case when max(so.cexch)='人民币' then round(avg(so.iOriTaxCost)/sh.iExchRate,4) else avg(so.iOriTaxCost) end as procesUnitPriceusd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		case when max(so.cexch)='人民币' then 0 else avg(so.iOriTaxCost) end as procesUnitPriceusd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			case when max(so.cexch)='人民币' then avg(so.iOriTaxCost) else round(avg(so.iOriTaxCost)*sh.iExchRate,4) end * sum(shs.iQuantity) as processCost, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		case when max(so.cexch)='人民币' then round(avg(so.iOriTaxCost)/sh.iExchRate,4) else avg(so.iOriTaxCost) end * sum(shs.iQuantity) as processCostUsd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		case when max(so.cexch)='人民币' then 0 else avg(so.iOriTaxCost) end * sum(shs.iQuantity) as processCostUsd, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		v.cVenName AS processUnit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		 FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			UFDATA_101_2021.dbo.SaleBillVouch sh 
			 |