Implement Export in YNAB-Format #15
@ -129,9 +129,9 @@ func GetTransactionRow(transaction GetAllTransactionsForBudgetRow) []string {
|
|||||||
row = append(row, transaction.Memo)
|
row = append(row, transaction.Memo)
|
||||||
|
|
||||||
if transaction.Amount.IsPositive() {
|
if transaction.Amount.IsPositive() {
|
||||||
row = append(row, transaction.Amount.String()+"€", "0,00€")
|
row = append(row, "0,00€", transaction.Amount.String()+"€")
|
||||||
} else {
|
} else {
|
||||||
row = append(row, "0,00€", transaction.Amount.String()[1:]+"€")
|
row = append(row, transaction.Amount.String()[1:]+"€", "0,00€")
|
||||||
}
|
}
|
||||||
|
|
||||||
return append(row, string(transaction.Status))
|
return append(row, string(transaction.Status))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user