Re: placeholder invoice-template latex

Karsten Hilbert <[email protected]> Wed, 2 Nov 2016 11:44:10 +0100
Newsgroups gmane.comp.gnu.medical.devel
Message-ID <[email protected]>
On Tue, Nov 01, 2016 at 04:21:46PM +0100, slappinjohn wrote:

> in the billing plugin you can select a billing address, but which
> placeholder represents the made selection? In my current template it has
> no effect. Maybe I use an outdated placeholder

Dang, I hoped nobody would notice ;-)

Currently, there is no placeholder accessing that address
directly. I'll add one to 1.6.10 ASAP. Meanwhile, the
following choices are available:

	% an den Patienten:
	%\begin{letter}{
	%	$<title>$ $<firstname>$ $<lastname>$\\
	%	$<adr_street::billing::>$\ $<adr_number::billing::>$\\
	%	$<adr_postcode::billing::>$\ $<adr_location::billing::>$
	%}
	%
	%\opening{$<gender_mapper::Sehr geehrter Herr//Sehr geehrte Frau::>$\ $<title>$ $<lastname>$,}

	% an einen freien Empfänger und die "billing"-Adresse des Patienten
	\begin{letter}{
		$<free_text::Geben Sie den Namen des Rechnungsempfängers ein !::>$
		$<adr_street::billing::>$\ $<adr_number::billing::>$\\
		$<adr_postcode::billing::>$\ $<adr_location::billing::>$
	}

	\opening{Sehr geehrter Herr//Sehr geehrte Frau\ $<free_text::Geben Sie den Namen des Rechnungsempfängers ein !::>$,}

	% an einen in GNUmed wählbaren Empfänger inklusive wählbarer Adresse:
	%\begin{letter}{
	%	$<receiver_name::::>$\\
	%	$<receiver_street::::>$\ $<receiver_number::::>$\\
	%	$<receiver_postcode::::>$\ $<receiver_location::::>$
	%}
	%
	%\opening{Sehr geehrter Herr//Sehr geehrte Frau\ $<receiver_name::::>$,}

As per gmMacro.py there's yet another option which hasn't
been added to the invoice template:

	u'gen_adr_street': u"""part of a generic address, cached, selected from database:
		args: optional template//optional selection message//optional cache ID
		template: %s-style formatting template
		message: text message shown in address selection list
		cache ID: used to differentiate separate cached invocations of this placeholder
	""",
	u'gen_adr_number': u"""part of a generic address, cached, selected from database:
		args: optional template//optional selection message//optional cache ID
		template: %s-style formatting template
		message: text message shown in address selection list
		cache ID: used to differentiate separate cached invocations of this placeholder
	""",
	u'gen_adr_subunit': u"""part of a generic address, cached, selected from database:
		args: optional template//optional selection message//optional cache ID
		template: %s-style formatting template
		message: text message shown in address selection list
		cache ID: used to differentiate separate cached invocations of this placeholder
	""",
	u'gen_adr_location': u"""part of a generic address, cached, selected from database:
		args: optional template//optional selection message//optional cache ID
		template: %s-style formatting template
		message: text message shown in address selection list
		cache ID: used to differentiate separate cached invocations of this placeholder
	""",
	u'gen_adr_suburb': u"""part of a generic address, cached, selected from database:
		args: optional template//optional selection message//optional cache ID
		template: %s-style formatting template
		message: text message shown in address selection list
		cache ID: used to differentiate separate cached invocations of this placeholder
	""",
	u'gen_adr_postcode': u"""part of a generic address, cached, selected from database:
		args: optional template//optional selection message//optional cache ID
		template: %s-style formatting template
		message: text message shown in address selection list
		cache ID: used to differentiate separate cached invocations of this placeholder
	""",
	u'gen_adr_region': u"""part of a generic address, cached, selected from database:
		args: optional template//optional selection message//optional cache ID
		template: %s-style formatting template
		message: text message shown in address selection list
		cache ID: used to differentiate separate cached invocations of this placeholder
	""",
	u'gen_adr_country': u"""part of a generic address, cached, selected from database:
		args: optional template//optional selection message//optional cache ID
		template: %s-style formatting template
		message: text message shown in address selection list
		cache ID: used to differentiate separate cached invocations of this placeholder
	""",

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346