mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 23:50:09 +00: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:
@@ -50,6 +50,7 @@ class BankDebitCredit implements ConverterInterface
|
|||||||
'Af', // ING (NL).
|
'Af', // ING (NL).
|
||||||
'Debet', // Triodos (NL)
|
'Debet', // Triodos (NL)
|
||||||
'S', // "Soll", German term for debit
|
'S', // "Soll", German term for debit
|
||||||
|
'Debit', // Community America (US)
|
||||||
];
|
];
|
||||||
if (in_array(trim($value), $negative, true)) {
|
if (in_array(trim($value), $negative, true)) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user