Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

Contacts

This document specifies how the lino_tera.lib.contacts plugin is being used in Lino Tera.

Side note: Code snippets (lines starting with >>>) in this document get tested as part of our development workflow. The following initialization snippet tells you which demo project is being used in this document.

>>> from lino import startup
>>> startup('lino_book.projects.tera1.settings.doctests')
>>> from lino.api.doctest import *
>>> dd.plugins.contacts
<lino_tera.lib.contacts.Plugin lino_tera.lib.contacts(needs ['lino_xl.lib.countries', 'lino.modlib.system'])>
class lino_tera.lib.contacts.Partner
pf_residence

The residence used to determine the fee for invoicing.

>>> rt.show(courses.Residences)
======= ======== =========
 value   name     text
------- -------- ---------
 10      inside   Inside
 20      ouside   Outside
======= ======== =========
pf_income

The income category used to determine the fee for invoicing.

>>> rt.show(courses.IncomeCategories)
======= ====== ======
 value   name   text
------- ------ ------
 10             A
 20             B
 30             C
 40             D
 50             E
======= ====== ======
pf_composition

The family composition used to determine the fee for invoicing.

>>> rt.show(courses.HouseholdCompositions)
======= =============== ====================================
 value   name            text
------- --------------- ------------------------------------
 10      no_child        No participant below 18
 20      one_child       One participant below 18
 30      more_children   More than one participant below 18
======= =============== ====================================