chagne account to vendor

This commit is contained in:
bel
2021-07-29 22:58:01 -06:00
parent c5c77a2b9b
commit cea7a30884
3 changed files with 17 additions and 17 deletions

View File

@@ -60,8 +60,8 @@ func uploadLedger(config Config, transaction *Transaction) error {
if amount > 0 {
remote = "Deposit:"
}
remote += strings.ReplaceAll(transaction.Account, " ", "")
fmt.Fprintf(f, "%-50s%-s\n", formatGMailDate(transaction.Date), transaction.Account)
remote += strings.ReplaceAll(transaction.Vendor, " ", "")
fmt.Fprintf(f, "%-50s%-s\n", formatGMailDate(transaction.Date), transaction.Vendor)
fmt.Fprintf(f, "%-50s%-50s$%.2f\n", "", "AssetAccount:"+transaction.Bank.String(), amount)
fmt.Fprintf(f, "%-50s%-s\n", "", remote)
return nil