[OGo-Users] Print the location address instead of mail address
in formletters
Christian Naumer
users@opengroupware.org
Thu, 24 Jan 2008 15:35:08 +0100
Adam Tauno Williams schrieb:
>> Yes this should work. Some time ago I had the same problem and since w=
e
>> had just bought a feature from Skyrix we got a config file doing just
>> this. This config just exports all addresses. Additionally it also
>> changes the behaviour for enterprise addresses in that it always takes
>> the address of the contact not that of the company.
>=20
> Interesting. So you potentially get multiple output records per
> enterprise, one for each contact linked to the enterprise?
No. At least not in this way. I'll try to explain:
If a contact is linked to a company then if you create a formletter the
address of the company is used. Regardless of the address which the
contact has. This behaviour is changed with this config in that you
still get the "person" address regardless whether it linked to company
or not.
>=20
>> RequiredAttributes =3D {
>> Person =3D ("degree", "firstname", "name", "salutation", "sex=
",
>> "email1", "isGeek", "petName" );
>=20
> "isGeek" & "petName" must automatically get mapped to company values
> (since they aren't model attributes)? [Looks like it,
> extendedAttrsForEntity in
> Logic/LSAddress/LSAddressFetchAttributesCommand.m]
I have no idea :-) since I am not a programmer.
>> LSEnterpriseFormLetter =3D {
>> enterprise_formletter_test =3D (
>> { key =3D "toAddress.name1"; suffix =3D "\n"; }=
,
>> { key =3D "toAddress.name2"; suffix =3D "\n"; }=
,
>> { key =3D "toAddress.name3"; suffix =3D "\n"; }=
,
>> { key =3D "toAddress.street"; suffix =3D "\n"; }=
,
>> { key =3D "toAddress.zip"; suffix =3D " "; }=
,
>> { key =3D "toAddress.city"; suffix =3D "\n\n\n\n\n\n\n"; }=
,
>> { key =3D "toPerson.salutation"; suffix =3D " "; }=
,
>> { key =3D "toPerson.name"; suffix =3D ",\n\n"; }
>> );
>> };
>=20
> This looks like it still output the address of the enterprise? With th=
e
> name and salutation of the contact? Can you do a
> "toPerson.mailing.street", for example, to reference the address of the
> related contact?
I am not sure what it should do but at our installation in outputs
nothing... But this is the Enterprise formletter which you can generate
when your are looking at a company. It has nothing to do with single
person contacts (I think).
regards
Christian
--=20
Dr. Christian Naumer
Scientist Molecular Biology
B.R.A.I.N Aktiengesellschaft
Darmstaedter Str. 34-36, D-64673 Zwingenberg
e-mail cn@brain-biotech.de, homepage www.brain-biotech.de
fon +49-6251-9331-30 / fax +49-6251-9331-11
Sitz der Gesellschaft: Zwingenberg/Bergstrasse
Registergericht AG Darmstadt, HRB 24758
Vorstand: Dr. Holger Zinke (Vorsitz), Dr. J=FCrgen Eck
Vorsitzender des Aufsichtsrats: Ulrich Putsch