Dividends (dividend)#

One signature and one documentation text are shared by every maker listed at the end of this page. The call is shown for co.bs.dividend; the other kinds take the same arguments.

co.bs.dividend(name, amount, *, counterparty=None, fx_rate=None, actuals=None)#

Add a dividend paid out of retained earnings, optionally to another entity of the model.

The line’s value is the amount paid in each period, not a balance. The dividend debits retained earnings and credits cash. With counterparty, the owner books the dividend as income.

Parameters:
namestr

Line name; required.

amountscalar, Quantity, Series, or dict

Dividend paid in each period, in the entity’s currency per period. A dict maps period labels, indices, or dates to amounts and pays 0 in the other periods.

counterpartyEntity, optional

The owner that receives the dividend, another entity of the same model. It books the dividend, translated into its currency, as finance or other income, and consolidation eliminates both sides.

fx_ratescalar, Quantity, or Series, optional

Exchange rate on the transaction date, used to translate the dividend into the owner’s currency: owner currency per unit of this entity’s currency. Without it, the period average is used. Requires counterparty, and has no effect when both entities have the same currency.

actualsdict, optional

Historical dividend payments for periods up to Model.actual_until, as {period: amount}. Requires Model(..., actual_until=...).

Returns:
LineItem

The dividend line, valued at the amount paid in each period. With counterparty, its counterparty attribute is the owner’s income line.

Raises:
TypeError

At construction, if fx_rate is given without counterparty, counterparty is not an entity, or an amount has a type boki cannot use in an expression.

ValueError

At construction, if counterparty is this entity or belongs to another model, the owner’s layout has no income kind for dividends, or the owner already has an income line named <name> (<this entity>).

UnitError

At construction, if an amount is in a unit other than the entity’s currency, or fx_rate is not quoted in owner currency per unit of this entity’s currency.

IndexError

At evaluation, if a period of amount is outside the model timeline.

CheckFailed

At evaluation, if fx_rate is not positive and the entities have different currencies; render(checks="warn") only warns.

Notes

The documentation of each maker starts this section with the maker’s kind, its side, and the section and cash-flow class of the kind; the layout pages list them.

The dividend reduces retained earnings, not the line, so the line is a flow and has no balance. The owner’s income is booked in the first of finance_income, non_operating_income, other_income and interest_income that its layout has. See the equity section and the intercompany dividends.

Examples

Pay a dividend of 30 in each month of a monthly model:

>>> import boki as b
>>> m = b.Model("Dividend", start="2027-01", periods=3, step=b.month)
>>> co = m.entity("A", standard=b.IFRS)
>>> co.bs.opening(cash=1000)
>>> dividend = co.bs.dividend("Dividend", 30)
>>> r = m.render()
>>> [round(r.value(co.bs.cash, month)) for month in ("2027-01", "2027-02", "2027-03")]
[970, 940, 910]

A subsidiary’s dividend is income of its parent:

>>> m = b.Model("Group", start="2027-01", periods=2, step=b.month)
>>> parent = m.entity("Parent", standard=b.IFRS)
>>> sub = m.entity("Sub", standard=b.IFRS)
>>> sub.bs.opening(cash=100)
>>> paid = sub.bs.dividend("Dividend", 40, counterparty=parent)
>>> r = m.render()
>>> round(r.value(parent.pl.finance_income.total, "2027-01"))
40

Makers that use this template#