biweeklybudget.models.projects module¶
-
class
biweeklybudget.models.projects.BoMItem(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base,biweeklybudget.models.base.ModelAsDict-
_sa_class_manager= {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'is_active': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'notes': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'project': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'project_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'quantity': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'unit_cost': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'url': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}¶
-
id¶ Primary Key
-
is_active¶ whether active or historical
-
line_cost¶ The total cost for this BoM Item, unit_cost times quantity
Returns: total line cost Return type: decimal.Decimal
-
name¶ Name of item
-
notes¶ Notes / Description
-
project_id¶ Project ID
-
quantity¶ Quantity Required
-
unit_cost¶ Unit Cost / Cost Each
-
url¶ URL
-
-
class
biweeklybudget.models.projects.Project(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base,biweeklybudget.models.base.ModelAsDict-
_sa_class_manager= {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'is_active': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'notes': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}¶
-
id¶ Primary Key
-
is_active¶ whether active or historical
-
name¶ Name of project
-
notes¶ Notes / Description
-