Class: LiteXBRL::TDnet::CashFlow2

Inherits:
FinancialInformation2 show all
Defined in:
lib/litexbrl/tdnet/cash_flow2.rb

Constant Summary collapse

ACCOUNTING_STANDARDS =

日本会計基準, IFRS(通期のみ), 米国会計基準はSummaryのみ

[
  ["jppfs_cor", ""],
  ["jpigp_cor", "IFRS"]
]
CONTEXT_FINAL =
"CurrentYearDuration"
CONTEXTS =
[CONTEXT_FINAL, "CurrentYTDDuration"]

Constants inherited from FinancialInformation2

FinancialInformation2::SEASON_Q1, FinancialInformation2::SEASON_Q2, FinancialInformation2::SEASON_Q3, FinancialInformation2::SEASON_Q4

Constants included from Utils

Utils::CONSOLIDATED, Utils::NON_CONSOLIDATED, Utils::SECURITIES_CODE

Constants included from AccountItem

AccountItem::CASH_AND_EQUIVALENTS_END_OF_PERIOD, AccountItem::CASH_FLOWS_FROM_FINANCING_ACTIVITIES, AccountItem::CASH_FLOWS_FROM_INVESTING_ACTIVITIES, AccountItem::CASH_FLOWS_FROM_OPERATING_ACTIVITIES, AccountItem::CHANGE_FORECAST_NET_INCOME, AccountItem::CHANGE_FORECAST_NET_SALES, AccountItem::CHANGE_FORECAST_OPERATING_INCOME, AccountItem::CHANGE_FORECAST_ORDINARY_INCOME, AccountItem::CHANGE_IN_NET_INCOME, AccountItem::CHANGE_IN_NET_SALES, AccountItem::CHANGE_IN_OPERATING_INCOME, AccountItem::CHANGE_IN_ORDINARY_INCOME, AccountItem::CHANGE_NET_INCOME, AccountItem::CHANGE_NET_SALES, AccountItem::CHANGE_OPERATING_INCOME, AccountItem::CHANGE_ORDINARY_INCOME, AccountItem::COMPANY_NAME, AccountItem::FORECAST_NET_INCOME, AccountItem::FORECAST_NET_INCOME_PER_SHARE, AccountItem::FORECAST_NET_SALES, AccountItem::FORECAST_OPERATING_INCOME, AccountItem::FORECAST_ORDINARY_INCOME, AccountItem::NET_ASSETS_PER_SHARE, AccountItem::NET_INCOME, AccountItem::NET_INCOME_PER_SHARE, AccountItem::NET_SALES, AccountItem::NUMBER_OF_SHARES, AccountItem::NUMBER_OF_TREASURY_STOCK, AccountItem::OPERATING_INCOME, AccountItem::ORDINARY_INCOME, AccountItem::OWNERS_EQUITY, AccountItem::PREVIOUS_FORECAST_NET_INCOME, AccountItem::PREVIOUS_FORECAST_NET_INCOME_PER_SHARE, AccountItem::PREVIOUS_FORECAST_NET_SALES, AccountItem::PREVIOUS_FORECAST_OPERATING_INCOME, AccountItem::PREVIOUS_FORECAST_ORDINARY_INCOME

Class Method Summary collapse

Methods included from Utils

#hash_with_default, #percent_to_f, #present?, #to_consolidation, #to_f, #to_i, #to_mill, #to_month, #to_securities_code, #to_year

Methods included from AccountItem

define_item, define_nested_item

Class Method Details

.read(doc) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/litexbrl/tdnet/cash_flow2.rb', line 14

def read(doc)
  accountings, context = find_base_data(doc)
  context_instant = find_context_instant(context)
  xbrl = {}

  # 営業キャッシュフロー
  xbrl[:net_cash_provided_by_used_in_operating_activities] =
    find_value(doc, accountings, context, "NetCashProvidedByUsedInOperatingActivities")

  items_investment = ["NetCashProvidedByUsedInInvestmentActivities", "NetCashProvidedByUsedInInvestingActivities"]

  # 投資キャッシュフロー
  xbrl[:net_cash_provided_by_used_in_investment_activities] =
    find_value(doc, accountings, context, items_investment)

  # 財務キャッシュフロー
  xbrl[:net_cash_provided_by_used_in_financing_activities] =
    find_value(doc, accountings, context, "NetCashProvidedByUsedInFinancingActivities")

  # 現金及び現金同等物の増減額
  xbrl[:net_increase_decrease_in_cash_and_cash_equivalents] =
    find_value(doc, accountings, context, "NetIncreaseDecreaseInCashAndCashEquivalents")

  # 現金及び現金同等物の期首残高
  xbrl[:prior_cash_and_cash_equivalents] =
    find_value(doc, accountings, "Prior1YearInstant", "CashAndCashEquivalents")


  # 現金及び現金同等物の期末残高
  xbrl[:cash_and_cash_equivalents] =
    find_value(doc, accountings, context_instant, "CashAndCashEquivalents")

  return xbrl
end