Merge branch 'ps0.2' into 'master'
update 财务填报类型都为float See merge request root/tfse_app_api!19
This commit is contained in:
commit
3f50357468
|
@ -195,16 +195,16 @@ class RatingImpl(CreditRatingInput, RatingInfo, BusinessQuestionnaire, Financial
|
|||
new_balance_sheet = list()
|
||||
for sheet in financial['资产负债表']:
|
||||
balance_sheet.report_date = sheet['报告期']
|
||||
balance_sheet.accounts_receivable = sheet['应收账款']
|
||||
balance_sheet.stock = sheet['存货']
|
||||
balance_sheet.total_current_assets = sheet['流动资产合计']
|
||||
balance_sheet.total_assets = sheet['资产总计']
|
||||
balance_sheet.short_loan = sheet['短期借款']
|
||||
balance_sheet.one_year_liabilities = sheet['一年内到期非流动负债']
|
||||
balance_sheet.total_current_liabilities = sheet['流动负债合计']
|
||||
balance_sheet.long_term_loan = sheet['长期借款']
|
||||
balance_sheet.total_liabilities = sheet['负债合计']
|
||||
balance_sheet.total_owners_equity = sheet['所有者权益合计']
|
||||
balance_sheet.accounts_receivable = float(sheet['应收账款'])
|
||||
balance_sheet.stock = float(sheet['存货'])
|
||||
balance_sheet.total_current_assets = float(sheet['流动资产合计'])
|
||||
balance_sheet.total_assets = float(sheet['资产总计'])
|
||||
balance_sheet.short_loan = float(sheet['短期借款'])
|
||||
balance_sheet.one_year_liabilities = float(sheet['一年内到期非流动负债'])
|
||||
balance_sheet.total_current_liabilities = float(sheet['流动负债合计'])
|
||||
balance_sheet.long_term_loan = float(sheet['长期借款'])
|
||||
balance_sheet.total_liabilities = float(sheet['负债合计'])
|
||||
balance_sheet.total_owners_equity = float(sheet['所有者权益合计'])
|
||||
new_balance_sheet.append(balance_sheet.dict_to_save())
|
||||
return new_balance_sheet
|
||||
|
||||
|
@ -214,10 +214,10 @@ class RatingImpl(CreditRatingInput, RatingInfo, BusinessQuestionnaire, Financial
|
|||
new_income_sheet = list()
|
||||
for sheet in financial['利润表']:
|
||||
income_sheet.report_date = sheet['报告期']
|
||||
income_sheet.operating_income = sheet['营业收入']
|
||||
income_sheet.operating_cost = sheet['营业成本']
|
||||
income_sheet.total_profit = sheet['利润总额']
|
||||
income_sheet.net_profit = sheet['净利润']
|
||||
income_sheet.operating_income = float(sheet['营业收入'])
|
||||
income_sheet.operating_cost = float(sheet['营业成本'])
|
||||
income_sheet.total_profit = float(sheet['利润总额'])
|
||||
income_sheet.net_profit = float(sheet['净利润'])
|
||||
new_income_sheet.append(income_sheet.dict_to_save())
|
||||
return new_income_sheet
|
||||
|
||||
|
@ -227,9 +227,9 @@ class RatingImpl(CreditRatingInput, RatingInfo, BusinessQuestionnaire, Financial
|
|||
new_appendix_sheet = list()
|
||||
for sheet in financial['补充数据表']:
|
||||
appendix_sheet.report_date = sheet['报告期']
|
||||
appendix_sheet.rd_expenses = sheet['研发费用']
|
||||
appendix_sheet.interest_disbursement = sheet['计入财务费的利息支出']
|
||||
appendix_sheet.interest_expense = sheet['资本化利息支出']
|
||||
appendix_sheet.rd_expenses = float(sheet['研发费用'])
|
||||
appendix_sheet.interest_disbursement = float(sheet['计入财务费的利息支出'])
|
||||
appendix_sheet.interest_expense = float(sheet['资本化利息支出'])
|
||||
new_appendix_sheet.append(appendix_sheet.dict_to_save())
|
||||
return new_appendix_sheet
|
||||
|
||||
|
|
Loading…
Reference in New Issue