mirror of
				https://github.com/D4M13N-D3V/comissions-app-core-api.git
				synced 2025-10-31 01:25:27 +00:00 
			
		
		
		
	fix: only tally the ones that have been paid for for amount made
This commit is contained in:
		
							parent
							
								
									419c75fd0f
								
							
						
					
					
						commit
						aaeb7e0919
					
				| @ -44,7 +44,7 @@ public static class AdminArtistModelExtensions | ||||
|             NumberOfRequests = artist.Requests.Count, | ||||
|             NumberOfReviews = artist.Requests.Count(x => x.Reviewed), | ||||
|             NumberOfPaid = artist.Requests.Count(x => x.Paid), | ||||
|             AmountMade = artist.Requests.Sum(r => r.Amount), | ||||
|             AmountMade = artist.Requests.Where(x=>x.Paid).Sum(r => r.Amount), | ||||
|             FeesCollected = artist.Requests.Where(x=>x.Paid).Sum(r => r.Amount)*(decimal)0.15, | ||||
|             NumberOfAssets = artist.Requests.SelectMany(x=>x.RequestAssets).Count(), | ||||
|             NumberOfPortfolio = artist.PortfolioPieces.Count, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Damien Ostler
						Damien Ostler