From 0adc7ae20a78d6a16f6a94bd68a8146704db81c1 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Sun, 29 Oct 2023 01:03:11 +0000 Subject: [PATCH] Rename auto-save transactions to round-up --- autosave.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autosave.php b/autosave.php index f67af30..6f75d62 100644 --- a/autosave.php +++ b/autosave.php @@ -145,9 +145,9 @@ function createAutoSaveTransaction(array $group, array $arguments): void 'type' => 'transfer', 'source_id' => $arguments['account'], 'destination_id' => $arguments['destination'], - 'description' => '(auto save transaction)', + 'description' => '(Round-up transaction)', 'date' => substr($first['date'], 0, 10), - 'tags' => ['auto-save'], + 'tags' => ['Round-up'], 'currency_code' => $first['currency_code'], 'amount' => $amountToCreate, ], @@ -157,7 +157,7 @@ function createAutoSaveTransaction(array $group, array $arguments): void // submit: $result = postCurlRequest('/api/v1/transactions', $submission); $groupId = $result['data']['id']; - message(sprintf('For transaction #%d ("%s") with amount %s %s, have created auto-save transaction #%d with amount %s %s, making the total %s %s.', + message(sprintf('For transaction #%d ("%s") with amount %s %s, have created round-up transaction #%d with amount %s %s, making the total %s %s.', $group['id'], $first['description'], $first['currency_code'], @@ -200,7 +200,7 @@ function isAutoSaveTransaction(array $transaction): bool } $hasTag = false; foreach ($first['tags'] as $tag) { - if ('auto-save' === $tag) { + if ('Round-up' === $tag) { return true; } }