reports.income_statement

Represents the financial performance of an Entity for a given period.

Module Contents

Classes

IncomeStatement

This class represents the Income Statement/Profit and Loss of a given Entity.

class reports.income_statement.IncomeStatement(session, start_date: datetime.datetime = None, end_date: datetime.datetime = None)

Bases: python_accounting.reports.financial_statement.FinancialStatement

This class represents the Income Statement/Profit and Loss of a given Entity.

Accounts

The Account types allowed to be in included in the report.

Type:

(Account.AccountType)

config = 'income_statement'

The configuration section for the report.

Type:

(str)

__repr__() str
static net_profit(session, start_date: datetime.datetime = None, end_date: datetime.datetime = None) decimal.Decimal

Get the value of net profit for the given period.

Parameters:
  • session (Session) – The accounting session to which the report belongs.

  • start_date (datetime) – The earliest transaction date for Transaction amounts to be included in the report.

  • end_date (datetime) – The latest transaction date for Transaction amounts to be included in the report.

Returns:

The net profit or loss for the Entity for the period.

Return type:

Decimal