israeli-banks-actual-budget-importer 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/utils.ts +15 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.7.3](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.7.2...v1.7.3) (2025-12-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* streamline reconciliation transaction handling and improve logging ([46fc2b0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/46fc2b082e4e7b69666bb338960e0b7e6152f892))
|
|
7
|
+
|
|
1
8
|
## [1.7.2](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.7.1...v1.7.2) (2025-12-04)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -120,22 +120,25 @@ export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTrans
|
|
|
120
120
|
stdout.mute();
|
|
121
121
|
if (existingReconciliation) {
|
|
122
122
|
// Update the single reconciliation transaction
|
|
123
|
+
stdout.mute();
|
|
123
124
|
await actual.updateTransaction(existingReconciliation.id, reconciliationTxn);
|
|
124
125
|
stdout.unmute();
|
|
125
126
|
log('RECONCILIATION_UPDATED', {transactionId: existingReconciliation.id});
|
|
126
|
-
} else {
|
|
127
|
-
// Create the reconciliation transaction for the first time
|
|
128
|
-
const reconciliationResult = await actual.importTransactions(
|
|
129
|
-
bank.actualAccountId,
|
|
130
|
-
[reconciliationTxn],
|
|
131
|
-
);
|
|
132
|
-
stdout.unmute();
|
|
133
127
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// Create the reconciliation transaction for the first time
|
|
132
|
+
const reconciliationResult = await actual.importTransactions(
|
|
133
|
+
bank.actualAccountId,
|
|
134
|
+
[reconciliationTxn],
|
|
135
|
+
);
|
|
136
|
+
stdout.unmute();
|
|
137
|
+
|
|
138
|
+
if (!reconciliationResult || _.isEmpty(reconciliationResult.added)) {
|
|
139
|
+
console.error('Reconciliation errors', reconciliationResult?.errors);
|
|
140
|
+
} else {
|
|
141
|
+
log('RECONCILIATION_ADDED', {transactions: reconciliationResult.added.length});
|
|
139
142
|
}
|
|
140
143
|
} catch (error) {
|
|
141
144
|
console.error('Error', companyId, error);
|