Friday, April 17, 2015

#136 Diverse Optimierungen Schuldnerberatung

Today I worked mostly on only one item:

  • Neue Infos im Ausdruck: national_id, civil_state und Datum Erstgespräch (Datum und Autor des letzten notes.Note mit type_id=22)

The simple data fields national_id and civil_state were easy (though not trivial since they revealed the need for a new property lino_welfare.modlib.debts.mixins.ActorBase.client).

Added test cases to Debts mediation and Notes.

Wrote new utility function attrtable available in lino.api.doctests.

Discovered that the “first meeting” (Erstgespräch) deserves a more sophisticated implementation than planned. Our first plan was to simply write the id of the NoteType into the document template. But this would require a local modification of the Default.odt file. Can’t we avoid this? Yes, we can. New class lino_welfare.modlib.debts.choicelists.Shortcuts. Cool.

Another item was trivial (and actually a general problem for all lino.modlib.excerpts.mixins.Certifieable):

  • Beim Duplizieren eines Budget den Cache leeren (printed)