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 0x7f8004a03ef0>, 'account_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a4410>, 'amount': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a41d0>, 'budget': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a4050>, 'budget_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a44d0>, 'date': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a4650>, 'day_of_month': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a4710>, 'description': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a4290>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a4110>, 'is_active': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a4590>, 'notes': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a4350>, 'num_per_period': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f80049a47d0>}
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]