Skip to content

Commit

Permalink
Add configuration option for syncing cleared state
Browse files Browse the repository at this point in the history
  • Loading branch information
NikxDa committed Nov 29, 2024
1 parent ef336ad commit 3fece22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/Importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ class Importer {
amount: Math.round(transaction.amount * 100),
imported_id: this.getIdForMoneyMoneyTransaction(transaction),
imported_payee: transaction.name,
cleared: transaction.booked,
cleared: this.config.import.synchronizeClearedStatus
? transaction.booked
: false,
notes: transaction.purpose,
// payee_name: transaction.name,
};
Expand Down
1 change: 1 addition & 0 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const configSchema = z
}),
import: z.object({
importUncheckedTransactions: z.boolean(),
synchronizeClearedStatus: z.boolean().default(true),
ignorePatterns: z
.object({
commentPatterns: z.array(z.string()).optional(),
Expand Down

0 comments on commit 3fece22

Please sign in to comment.