From: Marei Peischl Date: Wed, 27 Nov 2019 13:25:03 +0000 (+0100) Subject: adjust pagestyle shippingaddres +head/foot X-Git-Tag: release-3.5.6.1~308 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a1493f24604fbf9209d0ac3f579b373eba266018;p=kivitendo-erp.git adjust pagestyle shippingaddres +head/foot --- diff --git a/kiviletter.sty b/kiviletter.sty index 31fbeb9bb..cede0cde0 100644 --- a/kiviletter.sty +++ b/kiviletter.sty @@ -62,7 +62,7 @@ \DeclareNewLayer[ foreground, hoffset=\useplength{toaddrhpos}, -voffset=\dimexpr\useplength{toaddrvpos}+\useplength{toaddrheight}+\baselineskip, +voffset=\dimexpr\useplength{toaddrvpos}+\useplength{toaddrheight}+2\baselineskip, contents={\usebox\shippingAddressBox} ]{kivitendo.shippingaddress} @@ -95,10 +95,14 @@ align=bl, \DeclareNewPageStyleByLayers{kivitendo.letter.PricingTable}{ kivitendo.TableHead, kivitendo.TableFoot + scrheadings.head.odd,scrheadings.head.even,scrheadings.head.oneside,% + scrheadings.foot.odd,scrheadings.foot.even,scrheadings.foot.oneside,% } \DeclareNewPageStyleByLayers{kivitendo.letter.first}{ kivitendo.shippingaddress, - kivitendo.TableFoot + kivitendo.TableFoot, + scrheadings.head.odd,scrheadings.head.even,scrheadings.head.oneside,% + scrheadings.foot.odd,scrheadings.foot.even,scrheadings.foot.oneside,% } \setkomavar{backaddress}{\firma\ $\cdot$ \strasse\ $\cdot$ \ort} @@ -294,6 +298,10 @@ align=bl, \exp_args:Nno\setkomavar{locationtitle}{\scr@title@var} \setkomavar{title}{} } + \ifdim\ht\shippingAddressBox>\z@ + \addtoplength{refvpos}{\ht\shippingAddressBox} + \addtoplength{refvpos}{2\baselineskip} + \fi } \ExplSyntaxOff \fi