OpeningBalanceImport
Updated
Opening balances (вхідні залишки): the trial balance of a previous accounting program, with its analytics, loaded from a file as the opening balances of a legal entity on a date. Posting writes each line into the general ledger, opens the debts of customers and suppliers, and gives cash desks, bank accounts and fixed assets their balances.
| Kind | Document |
| Module | Accounting |
| Menu | General ledger → Migration → Opening balances |
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
Number | number sequence |
LegalEntity |
Legal entity | LegalEntity, required: whose books start with these balances; the only legal entity is picked on a new document |
DocumentDate |
Date | the balance date: the ledger lines are dated by it, and a fiscal period must cover it |
Currency |
Currency | Currency: the functional currency of the legal entity, filled by the check; debit and credit are in it |
Description |
Description | string, 256 |
SourceName |
Loaded from | string, 200: the format and the number of rows of the last load |
PostStockToLedger |
Post inventory to the ledger | boolean. Off (usual): the lines of the inventory account go to the opening balance account |
BalanceToOpeningAccount |
Balance against the opening balance account | boolean. Off: debit must equal credit. On: the document may be a part of the trial balance, and its difference is posted to the opening balance account |
TotalDebit, TotalCredit |
Total debit, Total credit | money: set by the check |
RegistrationCodeField |
Registration code field | string, hidden: the field of the customer and supplier cards that holds the state registration code, besides the tax number. Set by the Ukrainian localization (EdrpouCode) |
PersonDictionary, PersonDimension |
Employees dictionary, Employee analytic | strings, hidden: the dictionary the employees are looked up in and the ledger analytic that carries them. Set by HR |
Lines, OpeningBalanceImportLines.
ID comes from OpeningBalanceImportSeq: OB-{YYYY}- and six digits.
Commands and states#
| State | Command | What happens |
|---|---|---|
| Draft | Load file | Reads an .xlsx or a CSV (parameters: the file; Replace the lines already in the document, on by default) into the lines and places them. Nothing is posted. |
| Draft | Check | Places every line again, keeping what was filled by hand, writes the totals, and says the difference and the lines to fix. |
| Draft | Confirm accounts | Maps the codes the chart does not have to the nearest account above them, or (parameter Add the unknown accounts to the chart as sub-accounts) adds them to the chart; either way writes the OpeningAccountMap. |
| Draft | Post opening balances | Posted. Opens the debts, then writes the ledger and the balances. |
| Posted | Cancel posting | Draft. The ledger lines, the balances and the opening debts go. Asks to confirm. |
Posted is read-only. Posting refuses, with a message: no legal entity or no lines, a line in Attention, debit different from credit (unless Balance against the opening balance account is on and the account is set), no fiscal period or a closed month on the date. The document itself refuses the same when posted by a script. Cancel refuses in a closed month and when a payment stands on an opening debt.
Registers#
On Posted:
OpeningBalanceImportGLTxwrites GL: the debit and credit of each line (not skipped), with its cost centre, project, customer, supplier, employee (the analytic HR names) and currency, and the amount in the currency. The lines of the inventory account are written to the opening balance account on the same side unless Post inventory to the ledger is on.- With Balance against the opening balance account on,
OpeningBalanceImportGLTxalso writes the difference of debit and credit to the opening balance account, so each part of a trial balance posts balanced. OpeningBalanceImportMoneyTxwrites CashBalance or BankBalance: debit less credit, in the currency of the desk or account.OpeningBalanceImportFixedAssetTxwrites FixedAssetBalance: Cost + the debit, Depreciation + the credit, per asset.- HR:
OpeningBalanceImportPayrollTxwritesPayrollLiabilityby employee for pay owed on the payroll liability account.
Before that the Post opening balances command opens a DebtOpening per customer or supplier (and currency, and debt or advance) through its own command, with a legacy basis for a debt, and adds a Main contract for a customer who has none. The card of a fixed asset gets its accumulated depreciation.