mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 09:26:29 -06:00
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.
This commit is contained in:
parent
73d56c41d6
commit
c5bed5e042
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user