Skip to main content

A module to help with gathering a financial statement, including hourly wages

Project description

Income Module for Docassemble

Includes examples at docassemble.income:interview_test.yml, docassemble.income:financial_statement.yml

Classes

Income(PeriodicValue)

    def amount(self, period_to_use=1):
        """Returns the amount earned over the specified period """

IncomeList(DAList)

    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 owners(self, type=None):
        """Returns a set of the unique owners for the specified type of value stored in the list. If type is None, returns all unique owners in the IncomeList"""

    def total(self, period_to_use=1, type=None):
        """Returns the total periodic value in the list, gathering the list items if necessary.
    
    def market_value_total(self, type=None):
        """Returns the total market value of values in the list."""

    def balance_total(self, type=None):
    
    def matches(self, type):
        """Returns an IncomeList consisting only of elements matching the specified Income type, assisting in filling PDFs with predefined spaces"""

Job(Income)

    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"""

JobList

    def gross_total(self, period_to_use=1, type=None):

    def net_total(self, period_to_use=1, type=None):
 

SimpleValue

    def amount(self):

Vehicle

Like SimpleValue, but adds year_make_model method

ValueList

    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):

VehicleList

Asset

Like Income, but the value field is optional

AssetList

list of Assets

Utility functions

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"""

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docassemble.income-0.0.36.tar.gz (18.1 kB view details)

Uploaded Source

File details

Details for the file docassemble.income-0.0.36.tar.gz.

File metadata

  • Download URL: docassemble.income-0.0.36.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for docassemble.income-0.0.36.tar.gz
Algorithm Hash digest
SHA256 ce66f68f1e4f3b6caeead3048c12b44c967cd06395e9294ae151db68e1167d15
MD5 3f81224b6ef23969ff567d49c78a99e4
BLAKE2b-256 b536d3b8b691ab4f957458ae16566afa51b3329c63c80e54341c88ea24ae5718

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page