Rebook a line to another account
rebook_lineRebook one booked line to another account (round 468, feature 537): action=rebook with journal_line_id (a line of a journal entry), to_account (a code of the company's chart) and reason: the reversal of the line and the same amount, side and VAT on the new account go forward as one proposal, booked on its release (release; the owner's switches decide). action=undo with the pending_action_id of that rebooking: a rebooking still waiting is withdrawn; one already booked has its reversal proposed. action=reverse with journal_id, reason and optionally day (YYYY-MM-DD): the whole entry mirrored, dated day, by default the entry's own date (a manual journal dated a month end: the next day, as an accrual reverses). Round 601c, an entry Octobooks posted automatically (the digest lists them with basis and sentence): action=undo with journal_id proposes its reversal and resets the payee's precedent at once; action=change with journal_id and to_account rebooks it, with since=true (the default) also the earlier lines of that payee in open periods (Rebook since), in one proposal, and resets the precedent. Round 620, unmatch a bank line: action=unmatch with bank_line_id and reason: the entry booked from that line is reversed on its own date, proposed as one proposal; on release the match ends and the line is back on the Bank tab Reconcile, to be booked again. A line matched to an entry not booked from it (an invoice payment, a manual entry): only the match ends on release, the entry stays (round 633). Round 733, Find and fix (the web's Journal, Find and fix): action=find with filters {account, tax (a code, a name or none), amount_from, amount_to, contact, text (narration, description or reference), date_from, date_to} and page: the posted lines that match, 100 a page, each with line_id, entry, account, tax rate, amount, filed (in a filed VAT period) and locked; bank and VAT lines and reversed entries are left out. action=reclassify with journal_line_ids (at most 100), to_account and/or to_tax_rate (code, name or none) and reason: one batch, per line the line and its VAT reversed and booked again on the new account or at the new rate (the gross stays), dated as the line; a line in a filed VAT period goes into the next return as a correction (filed_note says where). action=undo with its pending_action_id takes the batch back. Round 865: action=narrate with journal_line_ids (or journal_id) and narration: the entries of those lines (manual journals, at most 100) get the new narration in one batch, each booked as an Edit (reversed, booked again under the new narration, same day). Round 965, Find and recode (the web's Account transactions): action=recode with journal_line_ids (the line of each row of Account transactions, at most 500; a bank account's line is recoded by the account it was booked to), to_account, to_tax_rate and/or to_contact, and preview=true: what it would do (lines, total, from and to, each line refused with the reason, lines in a filed VAT return); without preview one batch goes forward like reclassify, undone with action=undo and its pending_action_id. Nothing is deleted.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rebook_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | ||
| page | No | ||
| since | No | ||
| action | No | rebook | |
| reason | No | ||
| company | No | ||
| filters | No | ||
| preview | No | ||
| narration | No | ||
| journal_id | No | ||
| to_account | No | ||
| to_contact | No | ||
| to_tax_rate | No | ||
| bank_line_id | No | ||
| journal_line_id | No | ||
| journal_line_ids | No | ||
| pending_action_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||