---
title: "Bank reassignment"
weight: 35
description: "Move bank lines from one account to another by statement number, when a reconciliation was made on the wrong account."
source_hash: "74f3f668"
---

# Bank reassignment

Bank reassignment fixes a frequent case: a reconciliation (or operation entry) made by mistake on the wrong bank account. Instead of re-entering everything, the tool moves the relevant lines from the source account to the right one, filtered by statement number.

Unlike classic accounting reassignment, which acts on the ledger, bank reassignment acts only on Dolibarr's Bank module: only the account and statement number of bank operations change. Payments remain attached to their bank operation and therefore follow it to the new account, with nothing to re-link. The ledger is never modified.

## Activation

This feature is disabled by default. To enable it:

**Home > Setup > Modules/Applications > Accounting Assistant** (gear icon), **Payroll import** tab, option **Enable bank reassignment**. Administrators also reach it via the **Accounting Assistant configuration** button at the bottom of the module home page.

Then assign the desired permissions (read, create/modify, apply, delete) to the relevant users.

## Access

**Accounting > Accounting Assistant > Bank reassignment**

## How it works

The workflow follows that of accounting reassignment, in three steps:

1. **Create a rule** -- Choose the source bank account, the statement to move, the target bank account and the new statement number
2. **Preview** -- Check the lines that will be moved and any warnings
3. **Apply** -- Move the lines; the rule is then locked

## Creating a rule

Fill in the following fields:

- **Label** -- A title to find the rule later (e.g.: "January statement entered on BQ1 instead of BQ3").
- **Source bank account** -- The account on which the operations were entered by mistake.
- **Source statement** -- The statement number to move. The list fills automatically from the existing statements of the source account (the number of operations of each statement is shown in parentheses).
- **Target bank account** -- The right account, on which the operations should actually appear.
- **New statement (target)** -- The statement number to assign to the moved lines on the target account.

The two accounts must be different and share the same currency.

## Preview

The preview displays:

- the rule summary (source -> target, old statement -> new statement) ;
- the number of lines concerned and their total amount ;
- the detail of each line (date, label, type, reconciliation status, amount).

Warnings may appear, without blocking the application:

- **Statement collision** -- The target account already contains lines with the target statement number. The moved lines will be grouped with them.
- **Cheque deposit slip** -- Some lines are attached to a deposit slip. The slip remains linked to the source account; check consistency after the move.
- **Reversed internal transfer** -- If the statement contains an internal transfer between the source account and the target account, it cannot simply be moved (both legs would end up on the same account). It is therefore automatically reversed: the counterpart (on the target account) is brought back to the source account, which keeps a valid transfer in the other direction. The lines concerned are marked with a badge in the preview.

A blocking message appears if a check prevents the application:

- different currencies, account not found, or target account closed ;
- **lines already transferred to accounting** -- If a line of the statement has already been posted to the ledger, the bank move is refused (it would desynchronize the bank and the accounting). Then correct the ledger with **accounting reassignment**, or unpost the entry before trying again. The lines concerned are marked with a badge in the preview.

## Apply

The **Apply bank reassignment** button asks for confirmation, then moves the lines in a single transaction. After application:

- the lines carry the target account and the new statement number ;
- their reconciliation status is preserved ;
- the rule switches to **Applied** status and can no longer be modified or re-applied ;
- the number of moved lines and the total amount are recorded on the rule.

## Points to watch

- The operation directly modifies the entries of the Bank module. Back up your database before a large-scale correction.
- Lines already posted to accounting are detected and **block** the operation: in that case, correct the ledger with accounting reassignment (the 512 account of the old bank account is still there).
- Internal transfers between the two accounts are automatically **reversed** (see above). Transfers to a third account, however, follow the move normally without special handling.
- The balances of both bank accounts are automatically recalculated after the move.
