Groups#

A group consolidates entities under a parent. m.group(name, parent=entity) creates one, own records the ownership events, and the consolidated statements are derived from the members’ ledgers. Read them with r.pl(group), r.bs(group) and r.cf(group), or take group.books, the consolidated ledger as an entity. The consolidation rules for each accounting standard are in the consolidation notes.

class boki.group.core.Group(model, name, parent)#

A group of entities consolidated under a parent, and the ownership events that link them.

m.group(name, parent=entity) makes a group, and own adds the entities the parent owns, with the terms of each acquisition, purchase, sale or change of method. The consolidated statements are derived from the members’ ledgers and never booked by hand: r.pl(group), r.bs(group) and r.cf(group) read them, books is the consolidated ledger as an entity, and depreciation, amortization and operating_income are the consolidated parts of EBITDA. The group uses the parent’s accounting standard, layout and currency.

Parameters:
modelModel

The model the group belongs to. Created through Model.group, which also registers the group there.

namestr

Group name; required. It must be unique among the entities and groups of the model.

parentEntity

The parent entity, an entity of the same model. It is consolidated from the first period.

Attributes:
modelModel

The model the group belongs to.

namestr

The group’s name.

parentEntity

The parent entity.

Raises:
ValueError

At construction through Model.group, if the parent is not an entity of the model, or if the name is already used by an entity or group.

See also

boki.group.core.Group.own

Add an owned entity.

boki.group.core.Group.books

The consolidated books.

Notes

Separate books stay entity-specific, and consolidation is derived from them in three steps: replay each member’s entries for the periods it is in the group, eliminate the entries of trades between members (booked with counterparty=), and add the consolidation entries (acquisition, goodwill, non-controlling interests, unrealized profit, equity-method accounting, translation). Members must share the parent’s layout. A group does not define EBITDA, EBIT or NOI, like an entity: the parts are provided and reading those names raises AttributeError. See the consolidation notes for the rules of each standard.

Examples

A parent that buys 80% of a subsidiary at the start of the first year. The non-controlling interests are 20% of the subsidiary’s net assets, and the consolidated books hold both companies’ cash:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Group", start="2027-01", periods=2, step=b.year)
>>> parent = m.entity("Parent", standard=b.IFRS, currency=JPY)
>>> sub = m.entity("Sub", standard=b.IFRS, currency=JPY)
>>> parent.bs.opening(cash=1000 * JPY)
>>> sub.bs.opening(cash=500 * JPY)
>>> sales = sub.pl.revenue("Sales", 100 * JPY)
>>> group = m.group("Group", parent=parent)
>>> group.own(sub, 0.8, since=0, method="consolidate", consideration=400 * JPY)
>>> r = m.render()
>>> books = group.books
>>> round(r.value(books.bs.cash, "2027")), round(r.value(books.net_income, "2027"))
(1200, 100)
property adjusted_ebitda#

Adjusted EBITDA, which boki refuses to define.

Reading this property always raises AttributeError. Adjusted EBITDA has no standard definition, and a default would hide choices that change the number (goodwill, impairment, leases, one-off items). Build it yourself as a named series from operating_income, depreciation, amortization and the adjustments you choose.

Raises:
AttributeError

Always, when the property is read. The message shows how to build the measure from the parts.

See also

boki.group.core.Group.operating_income

The operating income subtotal.

boki.group.core.Group.depreciation

Depreciation of tangible assets.

boki.group.core.Group.amortization

Amortization of intangible assets.

Notes

EBITDA is a non-GAAP measure under J-GAAP, IFRS and US GAAP, so boki provides its parts and leaves the definition to the modeler. The standards differ in what goes into the parts:

  • Goodwill. J-GAAP amortizes it (up to 20 years, in SG&A), so J-GAAP EBITDA conventionally adds it back. IFRS and US GAAP do not amortize it (impairment only; US private companies may elect amortization).

  • Impairment. J-GAAP books it as an extraordinary loss, below operating income. IFRS and US GAAP book it within operating results, so adding it back is the modeler’s choice. Neither depreciation nor amortization includes it.

  • Leases. boki has no lease accounting yet. IFRS 16 puts most leases on the balance sheet (depreciation plus interest), ASC 842 operating leases stay a straight-line operating cost, and J-GAAP’s new lease standard is modeled on IFRS 16.

  • Operating income. Defined under J-GAAP. IFRS 18 (effective 2027-01-01) defines operating profit. US GAAP has no required subtotal.

  • Development costs. Capitalized under IFRS when the criteria are met (their amortization is in amortization). Expensed under US GAAP and J-GAAP.

Examples

Reading the property raises AttributeError:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Parts", start="2027-01", periods=2, step=b.year)
>>> co = m.entity("A", standard=b.IFRS, currency=JPY)
>>> group = m.group("Group", parent=co)
>>> try:
...     group.adjusted_ebitda
... except AttributeError as error:
...     print(str(error).startswith("Adjusted EBITDA has no standard definition"))
True
property amortization#

Consolidated amortization, as a Series of positive expense.

The members’ amortization of intangibles, the unwind of acquisition-date fair-value adjustments on intangibles (not on liabilities or other items), and goodwill amortization where the group amortizes goodwill (goodwill_life=, J-GAAP or the US GAAP private-company alternative). Impairment is not included.

Returns:
Series

Consolidated amortization expense in each period, positive, in the parent’s currency per period.

Notes

EBITDA is a non-GAAP measure under J-GAAP, IFRS and US GAAP, so boki provides its parts and leaves the definition to the modeler. The standards differ in what goes into the parts:

  • Goodwill. J-GAAP amortizes it (up to 20 years, in SG&A), so J-GAAP EBITDA conventionally adds it back. IFRS and US GAAP do not amortize it (impairment only; US private companies may elect amortization).

  • Impairment. J-GAAP books it as an extraordinary loss, below operating income. IFRS and US GAAP book it within operating results, so adding it back is the modeler’s choice. Neither depreciation nor amortization includes it.

  • Leases. boki has no lease accounting yet. IFRS 16 puts most leases on the balance sheet (depreciation plus interest), ASC 842 operating leases stay a straight-line operating cost, and J-GAAP’s new lease standard is modeled on IFRS 16.

  • Operating income. Defined under J-GAAP. IFRS 18 (effective 2027-01-01) defines operating profit. US GAAP has no required subtotal.

  • Development costs. Capitalized under IFRS when the criteria are met (their amortization is in amortization). Expensed under US GAAP and J-GAAP.

Examples

The members’ amortization is added up, here one piece of software of the subsidiary:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Group amortization", start="2027-01", periods=3, step=b.year)
>>> parent = m.entity("Parent", standard=b.IFRS, currency=JPY)
>>> sub = m.entity("Sub", standard=b.IFRS, currency=JPY)
>>> parent.bs.opening(cash=1000)
>>> sub.bs.opening(cash=500)
>>> software = sub.bs.intangible("Software", cost=300, at=0, life=3 * b.year)
>>> group = m.group("Group", parent=parent)
>>> group.own(sub, method="consolidate", consideration=500 * JPY)
>>> r = m.render()
>>> [round(r.value(group.amortization, year)) for year in ("2027", "2028", "2029")]
[0, 100, 100]
property books#

The group’s consolidated books, as an entity.

The consolidated ledger has the same statements as any entity (books.pl, books.bs, books.cf, books.net_income). It replays the members’ entries, eliminates the trades between them, and adds the consolidation entries for the ownership events recorded with own.

Returns:
Entity

A new entity that is not registered in the model. The property builds the consolidated ledger again on every read, so read it once and use the result, because series of two reads are different objects.

Raises:
ValueError

At evaluation (m.render builds the books), if a member’s currency differs from the parent’s and the model has no Model.fx rates between the two currencies.

See also

boki.group.core.Group.own

Record the ownership events the books are derived from.

Examples

The consolidated books of a group whose subsidiary earns 100 a year:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Books", start="2027-01", periods=2, step=b.year)
>>> parent = m.entity("Parent", standard=b.IFRS, currency=JPY)
>>> sub = m.entity("Sub", standard=b.IFRS, currency=JPY)
>>> parent.bs.opening(cash=1000 * JPY)
>>> sub.bs.opening(cash=500 * JPY)
>>> sales = sub.pl.revenue("Sales", 100 * JPY)
>>> group = m.group("Group", parent=parent)
>>> group.own(sub, method="consolidate", consideration=500 * JPY)
>>> r = m.render()
>>> books = group.books
>>> round(r.value(books.net_income, "2027")), round(r.value(books.bs.total_assets, "2028"))
(100, 1200)
property depreciation#

Consolidated depreciation of tangible assets, as a Series of positive expense.

The members’ depreciation within the consolidation scope, with the intercompany profit in depreciated assets eliminated, plus the depreciation of acquisition-date fair-value step-ups of fixed assets. Impairment is not included.

Returns:
Series

Consolidated depreciation expense in each period, positive, in the parent’s currency per period.

Notes

EBITDA is a non-GAAP measure under J-GAAP, IFRS and US GAAP, so boki provides its parts and leaves the definition to the modeler. The standards differ in what goes into the parts:

  • Goodwill. J-GAAP amortizes it (up to 20 years, in SG&A), so J-GAAP EBITDA conventionally adds it back. IFRS and US GAAP do not amortize it (impairment only; US private companies may elect amortization).

  • Impairment. J-GAAP books it as an extraordinary loss, below operating income. IFRS and US GAAP book it within operating results, so adding it back is the modeler’s choice. Neither depreciation nor amortization includes it.

  • Leases. boki has no lease accounting yet. IFRS 16 puts most leases on the balance sheet (depreciation plus interest), ASC 842 operating leases stay a straight-line operating cost, and J-GAAP’s new lease standard is modeled on IFRS 16.

  • Operating income. Defined under J-GAAP. IFRS 18 (effective 2027-01-01) defines operating profit. US GAAP has no required subtotal.

  • Development costs. Capitalized under IFRS when the criteria are met (their amortization is in amortization). Expensed under US GAAP and J-GAAP.

Examples

The members’ depreciation is added up, here one machine of the subsidiary:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Group D&A", start="2027-01", periods=3, step=b.year)
>>> parent = m.entity("Parent", standard=b.IFRS, currency=JPY)
>>> sub = m.entity("Sub", standard=b.IFRS, currency=JPY)
>>> parent.bs.opening(cash=1000)
>>> sub.bs.opening(cash=500)
>>> machine = sub.bs.fixed_asset("Machine", cost=300, at=0, life=3 * b.year)
>>> group = m.group("Group", parent=parent)
>>> group.own(sub, method="consolidate", consideration=500 * JPY)
>>> r = m.render()
>>> [round(r.value(group.depreciation, year)) for year in ("2027", "2028", "2029")]
[0, 100, 100]
property ebit#

EBIT, which boki refuses to define.

Reading this property always raises AttributeError. EBIT has no standard definition, and a default would hide choices that change the number (goodwill, impairment, leases, one-off items). Build it yourself as a named series from operating_income and the lines you decide belong in EBIT.

Raises:
AttributeError

Always, when the property is read. The message shows how to build the measure from the parts.

See also

boki.group.core.Group.operating_income

The operating income subtotal.

boki.group.core.Group.depreciation

Depreciation of tangible assets.

boki.group.core.Group.amortization

Amortization of intangible assets.

Notes

EBITDA is a non-GAAP measure under J-GAAP, IFRS and US GAAP, so boki provides its parts and leaves the definition to the modeler. The standards differ in what goes into the parts:

  • Goodwill. J-GAAP amortizes it (up to 20 years, in SG&A), so J-GAAP EBITDA conventionally adds it back. IFRS and US GAAP do not amortize it (impairment only; US private companies may elect amortization).

  • Impairment. J-GAAP books it as an extraordinary loss, below operating income. IFRS and US GAAP book it within operating results, so adding it back is the modeler’s choice. Neither depreciation nor amortization includes it.

  • Leases. boki has no lease accounting yet. IFRS 16 puts most leases on the balance sheet (depreciation plus interest), ASC 842 operating leases stay a straight-line operating cost, and J-GAAP’s new lease standard is modeled on IFRS 16.

  • Operating income. Defined under J-GAAP. IFRS 18 (effective 2027-01-01) defines operating profit. US GAAP has no required subtotal.

  • Development costs. Capitalized under IFRS when the criteria are met (their amortization is in amortization). Expensed under US GAAP and J-GAAP.

Examples

Reading the property raises AttributeError:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Parts", start="2027-01", periods=2, step=b.year)
>>> co = m.entity("A", standard=b.IFRS, currency=JPY)
>>> group = m.group("Group", parent=co)
>>> try:
...     group.ebit
... except AttributeError as error:
...     print(str(error).startswith("EBIT has no standard definition"))
True
property ebitda#

EBITDA, which boki refuses to define.

Reading this property always raises AttributeError. EBITDA has no standard definition, and a default would hide choices that change the number (goodwill, impairment, leases, one-off items). Build it yourself as a named series from operating_income, depreciation and amortization.

Raises:
AttributeError

Always, when the property is read. The message shows how to build the measure from the parts.

See also

boki.group.core.Group.operating_income

The operating income subtotal.

boki.group.core.Group.depreciation

Depreciation of tangible assets.

boki.group.core.Group.amortization

Amortization of intangible assets.

Notes

EBITDA is a non-GAAP measure under J-GAAP, IFRS and US GAAP, so boki provides its parts and leaves the definition to the modeler. The standards differ in what goes into the parts:

  • Goodwill. J-GAAP amortizes it (up to 20 years, in SG&A), so J-GAAP EBITDA conventionally adds it back. IFRS and US GAAP do not amortize it (impairment only; US private companies may elect amortization).

  • Impairment. J-GAAP books it as an extraordinary loss, below operating income. IFRS and US GAAP book it within operating results, so adding it back is the modeler’s choice. Neither depreciation nor amortization includes it.

  • Leases. boki has no lease accounting yet. IFRS 16 puts most leases on the balance sheet (depreciation plus interest), ASC 842 operating leases stay a straight-line operating cost, and J-GAAP’s new lease standard is modeled on IFRS 16.

  • Operating income. Defined under J-GAAP. IFRS 18 (effective 2027-01-01) defines operating profit. US GAAP has no required subtotal.

  • Development costs. Capitalized under IFRS when the criteria are met (their amortization is in amortization). Expensed under US GAAP and J-GAAP.

Examples

Reading the property raises AttributeError:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Parts", start="2027-01", periods=2, step=b.year)
>>> co = m.entity("A", standard=b.IFRS, currency=JPY)
>>> group = m.group("Group", parent=co)
>>> try:
...     group.ebitda
... except AttributeError as error:
...     print(str(error).startswith("EBITDA has no standard definition"))
True
property ebitdar#

EBITDAR, which boki refuses to define.

Reading this property always raises AttributeError. EBITDAR has no standard definition, and a default would hide choices that change the number (goodwill, impairment, leases, one-off items). Build it yourself as a named series from operating_income, depreciation, amortization and the rent expense line.

Raises:
AttributeError

Always, when the property is read. The message shows how to build the measure from the parts.

See also

boki.group.core.Group.operating_income

The operating income subtotal.

boki.group.core.Group.depreciation

Depreciation of tangible assets.

boki.group.core.Group.amortization

Amortization of intangible assets.

Notes

EBITDA is a non-GAAP measure under J-GAAP, IFRS and US GAAP, so boki provides its parts and leaves the definition to the modeler. The standards differ in what goes into the parts:

  • Goodwill. J-GAAP amortizes it (up to 20 years, in SG&A), so J-GAAP EBITDA conventionally adds it back. IFRS and US GAAP do not amortize it (impairment only; US private companies may elect amortization).

  • Impairment. J-GAAP books it as an extraordinary loss, below operating income. IFRS and US GAAP book it within operating results, so adding it back is the modeler’s choice. Neither depreciation nor amortization includes it.

  • Leases. boki has no lease accounting yet. IFRS 16 puts most leases on the balance sheet (depreciation plus interest), ASC 842 operating leases stay a straight-line operating cost, and J-GAAP’s new lease standard is modeled on IFRS 16.

  • Operating income. Defined under J-GAAP. IFRS 18 (effective 2027-01-01) defines operating profit. US GAAP has no required subtotal.

  • Development costs. Capitalized under IFRS when the criteria are met (their amortization is in amortization). Expensed under US GAAP and J-GAAP.

Examples

Reading the property raises AttributeError:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Parts", start="2027-01", periods=2, step=b.year)
>>> co = m.entity("A", standard=b.IFRS, currency=JPY)
>>> group = m.group("Group", parent=co)
>>> try:
...     group.ebitdar
... except AttributeError as error:
...     print(str(error).startswith("EBITDAR has no standard definition"))
True
property noi#

NOI, which boki refuses to define.

Reading this property always raises AttributeError. NOI has no standard definition, and a default would hide choices that change the number (goodwill, impairment, leases, one-off items). Build it yourself as a named series from revenue and operating expense lines.

Raises:
AttributeError

Always, when the property is read. The message shows how to build the measure from the parts.

See also

boki.group.core.Group.operating_income

The operating income subtotal.

boki.group.core.Group.depreciation

Depreciation of tangible assets.

boki.group.core.Group.amortization

Amortization of intangible assets.

Notes

EBITDA is a non-GAAP measure under J-GAAP, IFRS and US GAAP, so boki provides its parts and leaves the definition to the modeler. The standards differ in what goes into the parts:

  • Goodwill. J-GAAP amortizes it (up to 20 years, in SG&A), so J-GAAP EBITDA conventionally adds it back. IFRS and US GAAP do not amortize it (impairment only; US private companies may elect amortization).

  • Impairment. J-GAAP books it as an extraordinary loss, below operating income. IFRS and US GAAP book it within operating results, so adding it back is the modeler’s choice. Neither depreciation nor amortization includes it.

  • Leases. boki has no lease accounting yet. IFRS 16 puts most leases on the balance sheet (depreciation plus interest), ASC 842 operating leases stay a straight-line operating cost, and J-GAAP’s new lease standard is modeled on IFRS 16.

  • Operating income. Defined under J-GAAP. IFRS 18 (effective 2027-01-01) defines operating profit. US GAAP has no required subtotal.

  • Development costs. Capitalized under IFRS when the criteria are met (their amortization is in amortization). Expensed under US GAAP and J-GAAP.

Examples

Reading the property raises AttributeError:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Parts", start="2027-01", periods=2, step=b.year)
>>> co = m.entity("A", standard=b.IFRS, currency=JPY)
>>> group = m.group("Group", parent=co)
>>> try:
...     group.noi
... except AttributeError as error:
...     print(str(error).startswith("NOI has no standard definition"))
True
property operating_income#

The consolidated operating income subtotal, as in r.pl(group).

The layout of the parent decides the subtotal; a layout without one (bank) raises AttributeError. Built from the consolidated books, so intercompany items are eliminated.

Returns:
Series

Consolidated operating income in each period, in the parent’s currency per period.

Raises:
AttributeError

At construction, when the property is read and the parent’s layout has no operating income subtotal, such as the bank layout.

Notes

EBITDA is a non-GAAP measure under J-GAAP, IFRS and US GAAP, so boki provides its parts and leaves the definition to the modeler. The standards differ in what goes into the parts:

  • Goodwill. J-GAAP amortizes it (up to 20 years, in SG&A), so J-GAAP EBITDA conventionally adds it back. IFRS and US GAAP do not amortize it (impairment only; US private companies may elect amortization).

  • Impairment. J-GAAP books it as an extraordinary loss, below operating income. IFRS and US GAAP book it within operating results, so adding it back is the modeler’s choice. Neither depreciation nor amortization includes it.

  • Leases. boki has no lease accounting yet. IFRS 16 puts most leases on the balance sheet (depreciation plus interest), ASC 842 operating leases stay a straight-line operating cost, and J-GAAP’s new lease standard is modeled on IFRS 16.

  • Operating income. Defined under J-GAAP. IFRS 18 (effective 2027-01-01) defines operating profit. US GAAP has no required subtotal.

  • Development costs. Capitalized under IFRS when the criteria are met (their amortization is in amortization). Expensed under US GAAP and J-GAAP.

Examples

The group’s operating income adds up the members’, here 300 and 100:

>>> import boki as b
>>> from boki.units import JPY
>>> m = b.Model("Group income", start="2027-01", periods=2, step=b.year)
>>> parent = m.entity("Parent", standard=b.IFRS, currency=JPY)
>>> sub = m.entity("Sub", standard=b.IFRS, currency=JPY)
>>> parent.bs.opening(cash=1000)
>>> sub.bs.opening(cash=500)
>>> parent_sales = parent.pl.revenue("Parent sales", 300 * JPY)
>>> sub_sales = sub.pl.revenue("Sub sales", 100 * JPY)
>>> group = m.group("Group", parent=parent)
>>> group.own(sub, method="consolidate", consideration=500 * JPY)
>>> r = m.render()
>>> round(r.value(group.operating_income, "2027"))
400
own(entity, share=1.0, *, since=0, method=None, consideration=None, proceeds=None, fair_value=None, acquired=None, tax_basis='carryover', nci=None, nci_value=None, goodwill_life=None, private_company=False, impairment=None, loss_limit=True, previously_held_value=None, retained_value=None, opening=None, investment=None)#

Record a dated ownership event and its consolidation or equity-method terms.

Each call adds one event for one entity: its acquisition, a later purchase, a sale, a change of accounting method, or the existing holding at the model start (since="before"). The event takes effect at the start of the since period, and the consolidated books are derived from the events when the model renders. Which arguments are valid depends on the kind of event; the group derives the kind from the entity’s previous event.

Parameters:
entityEntity

The entity owned. It must be an entity of the group’s model, not the parent, and it must have the same layout as the parent. Required.

sharefloat, default=1.0

The ownership after the event, a dimensionless fraction from 0 to 1. A share below the previous share is a sale, and 0 ends the ownership.

sinceint, str, date, or “before”, default=0

The period the event takes effect at the start of, as an index, a period label, or a date. "before" says the holding began before the model starts; it must be the first event, and opening then supplies the balances at the start.

methodstr, optional

"consolidate", "equity" or "cost" (an investment held as a financial asset). Required on the first event. After that, an omitted method keeps the previous one.

considerationscalar or Quantity, optional

Price paid by the parent for shares from outside the group, in the parent’s currency, booked in the since period as an investment on the parent’s books. Omit it when the parent already holds the shares through a capital contribution made with counterparty= on the entity’s bs.capital. Not for a sale.

proceedsscalar, Quantity, or Series, optional

Price received for shares sold, in the parent’s currency, in the since period. Required when share falls and not allowed otherwise. It must not be negative.

fair_valuemapping, optional

Acquisition-date fair-value adjustments to the entity’s balance-sheet lines, as {line: amount} or {line: (amount, remaining_life)}. A line is a line item or account of the entity, and a life is a time such as 5 * b.year; a depreciating asset needs one. Liability adjustments are given positive.

acquiredmapping, optional

Assets and liabilities that exist only at acquisition, as {name: amount} or {name: (amount, remaining_life)}. A negative amount is a liability.

tax_basisstr, default=”carryover”

"carryover" keeps the tax basis, so fair-value adjustments carry deferred tax at the entity’s tax_rate, and "stepped_up" has no deferred tax.

ncistr, optional

How non-controlling interests are measured at acquisition: "proportionate" (the default under IFRS and the only choice under J-GAAP) or "fair_value" (full goodwill, required under US GAAP for a partial acquisition). Only for method="consolidate".

nci_valuescalar or Quantity, optional

Acquisition-date fair value of the non-controlling interests, in the parent’s currency. Required with nci="fair_value" when share is below 1, and not allowed otherwise.

goodwill_lifeQuantity, optional

Amortization period of goodwill, a time such as 10 * b.year. J-GAAP requires it for a consolidated acquisition (at most 20 years). US GAAP allows it with private_company=True (at most 10 years). IFRS does not allow it.

private_companybool, default=False

Use the US GAAP private-company alternative that amortizes goodwill. Only for US GAAP.

impairmentscalar, Quantity, or Series, optional

Impairment of goodwill (consolidate) or of the investment (equity), in the parent’s currency per period from the since period on. It is an input, not tested by boki, and must not be negative.

loss_limitbool, default=True

For method="equity": stop recognizing losses when the investment reaches 0, and recover the excess from later earnings first. False is not allowed for other methods.

previously_held_valuescalar or Quantity, optional

Fair value of the interest held before a step acquisition, in the parent’s currency. Required for a step acquisition and not allowed otherwise.

retained_valuescalar or Quantity, optional

Fair value of the interest kept after a loss of control, in the parent’s currency. Required under IFRS and US GAAP when share stays above 0, and not allowed under J-GAAP or for other events.

openingmapping, optional

Required with since="before", not allowed otherwise. For method="consolidate", the balances at the model start, with the required key "nci" and the optional keys "goodwill", "fair_value", "acquired", "deferred_tax", "unrealized", "oci" and "capital_surplus". For method="equity", the required key "investment" and the optional keys "embedded_goodwill", "fair_value", "suspended_losses" and "oci". Amounts are in the parent’s currency. See the consolidation notes for the forms of the values.

investmentLineItem, optional

With since="before", the parent’s opening other_asset line that holds the shares, when the entity has no mirrored capital line. Omit it when the entity’s bs.capital(..., opening=, counterparty=parent) records the investment.

Raises:
ValueError

At construction, if entity is not an entity of the model or is the parent, share is outside 0 to 1, method is not one of the three, an event is not in a later period than the previous one or changes neither the share nor the method, or the first event has no positive share. Also if a term is used with an event it does not belong to (proceeds on a purchase, acquisition terms on a sale or on method="cost", nci or nci_value with method="equity", retained_value or previously_held_value outside a loss of control or a step acquisition, opening or investment without since="before"); if a step acquisition lowers the share or a loss of control raises it; if a standard’s goodwill rule is broken (goodwill_life missing or too long under J-GAAP, given under IFRS, or without private_company under US GAAP; nci other than "fair_value" under US GAAP or other than "proportionate" under J-GAAP; a missing nci_value); if tax_basis is not "carryover" or "stepped_up"; if a fair_value key is not a balance-sheet line of the entity or a life is not positive; or if an opening mapping has unsupported keys.

TypeError

At construction, if method is missing on the first event, a decrease has no proceeds, a step acquisition has no previously_held_value or no consideration when the share rises, a loss of control that keeps a stake has no retained_value (IFRS and US GAAP), an equity-method purchase has neither consideration nor a matching capital contribution, loss_limit is not a bool, a fair_value, acquired or opening argument is not a mapping, an opening mapping lacks its required key, or goodwill_life or a life is not a time quantity.

NotImplementedError

At construction, if the entity’s layout differs from the parent’s, or the method changes in a way that is not supported (for example from "equity" to "cost").

IndexError

At construction, if since is a period outside the model timeline.

UnitError

At construction, if an amount is in a unit other than the currency of the books it is booked in, or a life is a quantity that is not a time.

CheckFailed

At evaluation (m.render), if proceeds or impairment is negative, or an opening amount that has to be non-negative is not (embedded goodwill and suspended losses), or the equity-method opening investment differs from the balance recorded on the parent’s books.

See also

boki.group.core.Group.books

The consolidated books these events produce.

boki.ledger.BS.sell

Sell a fixed asset to another entity, which is a trade and not an ownership event.

Notes

The kind of event follows from the previous event: the first one is an acquisition, a higher share with the same method a purchase, a lower share a sale, a move from "equity" or "cost" to "consolidate" a step acquisition, and a move from "consolidate" away from control a loss of control. Under "consolidate" the subsidiary’s assets and liabilities enter the consolidated books at their acquisition-date balances (the previous period’s closing balances), its equity and the parent’s shares are eliminated, non-controlling interests and goodwill are recorded, and the subsidiary’s earlier income is excluded. Each period the non-controlling share of profit moves from retained earnings to non-controlling interests. Under "equity", the investment grows by the parent’s share of the associate’s profit and OCI, less dividends, goodwill-equivalent amortization and impairment, and the associate’s entries are not replayed. Cash flows of acquisitions and disposals are investing activities, net of cash acquired or disposed of; changes that keep control are financing.

The goodwill, non-controlling interest, step-acquisition and loss-of-control rules differ by standard; the consolidation notes give each rule and a worked example for every stage. Amounts that meet the parent’s books should be quantities such as 400 * JPY.

Examples

The parent buys 80% of a subsidiary at the start of the first year for 400, the 80% share of net assets of 500. Goodwill is 0, non-controlling interests are 100 plus their share of profit, and 20 of the subsidiary’s profit of 100 belongs to them:

>>> import boki as b
>>> from boki.units import JPY
>>> years = ["2027", "2028", "2029"]
>>> m = b.Model("Acquisition", start="2027-01", periods=3, step=b.year)
>>> parent = m.entity("Parent", standard=b.IFRS, currency=JPY)
>>> sub = m.entity("Sub", standard=b.IFRS, currency=JPY)
>>> parent.bs.opening(cash=1000 * JPY)
>>> sub.bs.opening(cash=500 * JPY)
>>> sales = sub.pl.revenue("Sales", 100 * JPY)
>>> group = m.group("Group", parent=parent)
>>> group.own(sub, 0.8, since=0, method="consolidate", consideration=400 * JPY)
>>> r = m.render()
>>> books = group.books
>>> [round(r.value(books.bs.total_assets, year)) for year in years]
[1200, 1300, 1400]
>>> [round(r.value(books.net_income, year)) for year in years]
[100, 100, 100]

A 30% associate under the equity method: the investment is the price plus the parent’s 30% share of the associate’s profit of 50 each year:

>>> m = b.Model("Associate", start="2027-01", periods=2, step=b.year)
>>> parent = m.entity("Parent", standard=b.IFRS, currency=JPY)
>>> associate = m.entity("Associate", standard=b.IFRS, currency=JPY)
>>> parent.bs.opening(cash=1000 * JPY)
>>> plant = associate.bs.other_asset("Plant", opening=600 * JPY)
>>> profit = associate.pl.revenue("Profit", 50 * JPY)
>>> group = m.group("Group", parent=parent)
>>> group.own(associate, 0.3, since=0, method="equity", consideration=200 * JPY)
>>> r = m.render()
>>> [round(r.value(group.books.bs.total_assets, year)) for year in ("2027", "2028")]
[1015, 1030]