====================== 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 :attr:`lino_welfare.modlib.debts.mixins.ActorBase.client`). Added test cases to :ref:`welfare.specs.debts` and :ref:`welfare.specs.notes`. Wrote new utility function :func:`attrtable ` available in :mod:`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 :xfile:`Default.odt` file. Can't we avoid this? Yes, we can. New class :class:`lino_welfare.modlib.debts.choicelists.Shortcuts`. Cool. Another item was trivial (and actually a general problem for all :class:`lino.modlib.excerpts.mixins.Certifieable`): - Beim Duplizieren eines Budget den Cache leeren (`printed`)