mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Fix #9871
This commit is contained in:
		| @@ -234,7 +234,7 @@ class AccountEnrichment implements EnrichmentInterface | ||||
| 
 | ||||
|     private function collectMetaData(): void | ||||
|     { | ||||
|         $set        = AccountMeta::whereIn('name', ['is_multi_currency', 'currency_id', 'account_role', 'account_number', 'liability_direction', 'interest', 'interest_period', 'current_debt']) | ||||
|         $set        = AccountMeta::whereIn('name', ['is_multi_currency', 'include_net_worth','currency_id', 'account_role', 'account_number', 'liability_direction', 'interest', 'interest_period', 'current_debt']) | ||||
|             ->whereIn('account_id', $this->accountIds) | ||||
|             ->get(['account_meta.id', 'account_meta.account_id', 'account_meta.name', 'account_meta.data'])->toArray() | ||||
|         ; | ||||
|   | ||||
| @@ -92,7 +92,7 @@ class AccountTransformer extends AbstractTransformer | ||||
|         $decimalPlaces                                                = (int) $account->meta['currency']?->decimal_places; | ||||
|         $decimalPlaces                                                = 0 === $decimalPlaces ? 2 : $decimalPlaces; | ||||
|         $openingBalance                                               = Steam::bcround($openingBalance, $decimalPlaces); | ||||
|         $includeNetWorth                                              = '0' !== ($account->meta['include_net_worth'] ?? null); | ||||
|         $includeNetWorth                                              = 1 === (int) ($account->meta['include_net_worth'] ?? 0); | ||||
|         $longitude                                                    = $account->meta['location']['longitude'] ?? null; | ||||
|         $latitude                                                     = $account->meta['location']['latitude'] ?? null; | ||||
|         $zoomLevel                                                    = $account->meta['location']['zoom_level'] ?? null; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user