biweeklybudget.models.scheduled_transaction module

class biweeklybudget.models.scheduled_transaction.ScheduledTransaction(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, biweeklybudget.models.base.ModelAsDict

_sa_class_manager = {'account': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6170>, 'account_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6650>, 'amount': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6410>, 'budget': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6290>, 'budget_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6710>, 'date': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6890>, 'day_of_month': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6950>, 'description': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e64d0>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6350>, 'is_active': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e67d0>, 'notes': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6590>, 'num_per_period': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f706e6a10>}
account

Relationship - Account the transaction is against

account_id

ID of the account the transaction is against

amount

Amount of the transaction

budget

Relationship - Budget the transaction is against

budget_id

ID of the budget the transaction is against

date

Denotes a scheduled transaction that will happen once on the given date

day_of_month

Denotes a scheduled transaction that happens on the same day of each month

description

description

id

Primary Key

is_active

whether the scheduled transaction is enabled or disabled

notes

notes

num_per_period

Denotes a scheduled transaction that happens N times per pay period

recurrence_str

Return a string describing the recurrence interval. This is a string of the format YYYY-mm-dd, N per period or N(st|nd|rd|th) where N is an integer.

Returns:string describing recurrence interval
Return type:str
schedule_type

Return a string describing the type of schedule; one of date (a specific Date), per period (a number per pay period)`` or monthly (a given day of the month).

Returns:string describing type of schedule
Return type:str
validate_day_of_month(_, value)[source]
validate_num_per_period(_, value)[source]