帮助收集财务报表的模块,包括小时工资
docassemble.income的Python项目详细描述
DocAssembly的收入模块
包括示例DocAssembly.收入:访谈_测试.yml, DocAssembly.收入:财务_报表.yml在
班级
收入(周期价值)
def amount(self, period_to_use=1):
"""Returns the amount earned over the specified period """
不融合(DAList)
^{pr2}$工作(收入)
def net_amount(self, period_to_use=1):
"""Returns the net amount (e.g., minus deductions). Only applies if value is non-hourly."""
def gross_amount(self, period_to_use=1):
"""Gross amount is identical to value"""
工作列表
def gross_total(self, period_to_use=1, type=None):
def net_total(self, period_to_use=1, type=None):
SimpleValue
def amount(self):
车辆
与SimpleValue类似,但添加了year\u make\u model方法
值列表
def types(self):
"""Returns a set of the unique types of values stored in the list. Will fail if any items in the list leave the type field unspecified"""
def total(self, type=None):
车辆列表
效用函数
recent_years(years=15, order='descending',future=1):
"""Returns a list of the most recent years, continuing into the future. Defaults to most recent 15 years+1. Useful to populate
a combobox of years where the most recent ones are most likely. E.g. automobile years or birthdate.
Keyword paramaters: years, order (descending or ascending), future (defaults to 1)"""
asset_type_list() :
"""Returns a list of assset types for a multiple choice dropdown"""
income_type_list() :
"""Returns a list of income types for a multiple choice dropdown"""
def non_wage_income_list():
"""Returns a list of income types for a multiple choice dropdown, excluding wages"""
expense_type_list() :
"""Returns a list of expense types for a multiple choice dropdown"""
def flatten(listname,index=1):
"""Return just the nth item in an 2D list. Intended to use for multiple choice option lists in Docassemble.
e.g., flatten(asset_type_list()) will return ['Savings','Certificate of Deposit'...] """
def income_period(frequency):
"""Returns the plain language translation of the income period, which is a number"""
- 项目
标签: