From c5bed5e0427b07b4510b6fd88eb3d3871ad15d60 Mon Sep 17 00:00:00 2001 From: Justyn Shull Date: Sun, 15 Dec 2019 19:06:44 -0600 Subject: [PATCH] Add Debit to Generic Debit Credit indicator converter Example CSV export from Community America, a Credit Union in the US: ``` csv 12/11/19,Five Guys,Sale FIVE GUYS,14.51,Debit,Food & Dining,Fast Food,CC1,,,false 12/11/19,Interest Income,Interest Earned,0.01,Credit,Income,Interest Income,Regular Savings,,Interest Earned,false ``` "Debit" is used instead of negative values in the amount column. --- app/Import/Converter/BankDebitCredit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Import/Converter/BankDebitCredit.php b/app/Import/Converter/BankDebitCredit.php index ce787fcb08..1b4217d56b 100644 --- a/app/Import/Converter/BankDebitCredit.php +++ b/app/Import/Converter/BankDebitCredit.php @@ -50,6 +50,7 @@ class BankDebitCredit implements ConverterInterface 'Af', // ING (NL). 'Debet', // Triodos (NL) 'S', // "Soll", German term for debit + 'Debit', // Community America (US) ]; if (in_array(trim($value), $negative, true)) { return -1;