Skip to content

Commit

Permalink
Update type tax-assessment-note.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pag-Man committed Mar 2, 2019
1 parent 67f1ac5 commit 9528cec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Type/De.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function handle()
{
$extractions = [];

preg_match_all('/\b(?:Rechnung|Gutschrift|Mahnung|Lohnauswertung|Abrechnung ?der ?Brutto\/Netto-Bezüge|Kontoauszug|Vertrag|Bilanz|Bescheid|Gewerbesteuer)\b/i', $this->text, $matches);
preg_match_all('/\b(?:Rechnung|Gutschrift|Mahnung|Lohnauswertung|Abrechnung ?der ?Brutto\/Netto-Bezüge|Kontoauszug|Vertrag|Bilanz|Vorauszahlungsbescheid|Bescheid|Gewerbesteuer)\b/i', $this->text, $matches);

// Supporting terms
preg_match_all('/\b(?:Finanzamt|Stadt|Gemeinde)\b/i', $this->text, $supportingMatches);
Expand Down Expand Up @@ -57,9 +57,12 @@ public function handle()
$extractions[] = 'balance-sheet';
break;

case 'vorauszahlungsbescheid':
case 'bescheid':
if (in_array('finanzamt', $supportingMatches[0])) {
$extractions[] = 'tax-assessment-note';
} else {
$extractions[] = 'invoice';
}
break;

Expand Down

0 comments on commit 9528cec

Please sign in to comment.