diff --git a/src/App/Service/KoinService.php b/src/App/Service/KoinService.php index 7203a69..4bb7eff 100644 --- a/src/App/Service/KoinService.php +++ b/src/App/Service/KoinService.php @@ -92,11 +92,15 @@ class KoinService */ private function getExpenseCategory(string $posInfo): string { - if(false !== strpos($posInfo,"MCDHU")) { + if(false !== strpos($posInfo, "TESCO")) { + return 'Bevásárlás'; + } + + if(false !== strpos($posInfo, "MCDHU")) { return 'Étel'; } - if(false !== strpos($posInfo,"GYOGYSZER")) { + if(false !== strpos($posInfo, "GYOGYSZER")) { return 'Egészség'; } @@ -111,10 +115,13 @@ class KoinService { $tags = []; - if(false !== strpos($posInfo,"MCDHU")) { + if(false !== strpos($posInfo, "TESCO")) { + $tags[] = 'Tesco'; + } + if(false !== strpos($posInfo, "MCDHU")) { $tags[] = 'Junk food'; } - if(false !== strpos($posInfo,"GYOGYSZER")) { + if(false !== strpos($posInfo, "GYOGYSZER")) { $tags[] = 'Gyógyszer'; }