mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-07 04:18:51 -05:00
* init * note
This commit is contained in:
@@ -73,21 +73,6 @@ export function ConfirmTransactionEditModal({
|
||||
out of balance.
|
||||
</Trans>
|
||||
</Block>
|
||||
) : confirmReason === 'batchDuplicateWithReconciledTransfer' ? (
|
||||
<Block>
|
||||
<Trans>
|
||||
This transfer has a linked transaction in another account that
|
||||
is reconciled. Duplicating it may bring that account's
|
||||
reconciliation out of balance.
|
||||
</Trans>
|
||||
</Block>
|
||||
) : confirmReason === 'batchDuplicateWithReconciled' ? (
|
||||
<Block>
|
||||
<Trans>
|
||||
Duplicating reconciled transactions may bring your
|
||||
reconciliation out of balance.
|
||||
</Trans>
|
||||
</Block>
|
||||
) : confirmReason === 'editReconciled' ? (
|
||||
<Block>
|
||||
<Trans>
|
||||
|
||||
@@ -297,7 +297,11 @@ export function useTransactionBatchActions() {
|
||||
added: transactions.reduce(
|
||||
(newTransactions: TransactionEntity[], trans: TransactionEntity) => {
|
||||
return newTransactions.concat(
|
||||
realizeTempTransactions(ungroupTransaction(trans)),
|
||||
realizeTempTransactions(ungroupTransaction(trans)).map(t => ({
|
||||
...t,
|
||||
cleared: false,
|
||||
reconciled: false,
|
||||
})),
|
||||
);
|
||||
},
|
||||
[],
|
||||
@@ -309,11 +313,7 @@ export function useTransactionBatchActions() {
|
||||
onSuccess?.(ids);
|
||||
};
|
||||
|
||||
await checkForReconciledTransactions(
|
||||
ids,
|
||||
'batchDuplicateWithReconciled',
|
||||
onConfirmDuplicate,
|
||||
);
|
||||
await onConfirmDuplicate(ids);
|
||||
};
|
||||
|
||||
const onBatchDelete = async ({ ids, onSuccess }: BatchDeleteProps) => {
|
||||
@@ -445,7 +445,6 @@ export function useTransactionBatchActions() {
|
||||
> = {
|
||||
batchDeleteWithReconciled: 'batchDeleteWithReconciledTransfer',
|
||||
batchEditWithReconciled: 'batchEditWithReconciledTransfer',
|
||||
batchDuplicateWithReconciled: 'batchDuplicateWithReconciledTransfer',
|
||||
};
|
||||
|
||||
const checkForReconciledTransactions = async (
|
||||
|
||||
@@ -32,8 +32,6 @@ export type ConfirmTransactionEditReason =
|
||||
| 'batchDeleteWithReconciledTransfer'
|
||||
| 'batchEditWithReconciled'
|
||||
| 'batchEditWithReconciledTransfer'
|
||||
| 'batchDuplicateWithReconciled'
|
||||
| 'batchDuplicateWithReconciledTransfer'
|
||||
| 'editReconciled'
|
||||
| 'unlockReconciled'
|
||||
| 'deleteReconciled';
|
||||
|
||||
6
upcoming-release-notes/7723.md
Normal file
6
upcoming-release-notes/7723.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfixes
|
||||
authors: [youngcw]
|
||||
---
|
||||
|
||||
Duplicated transactions are marked as uncleared and unlocked
|
||||
Reference in New Issue
Block a user