From: Marei Peischl Date: Thu, 21 Nov 2019 14:23:25 +0000 (+0100) Subject: \FakeTable X-Git-Tag: release-3.5.6.1~345 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=11e7267225de7ff60b5583543330785ccccc3aec;p=kivitendo-erp.git \FakeTable --- diff --git a/kiviletter.sty b/kiviletter.sty index ecb4a16e6..9a98e1bd2 100644 --- a/kiviletter.sty +++ b/kiviletter.sty @@ -80,18 +80,18 @@ contents={\usebox\shippingAddressBox} \newcolumntype{P}{>{\raggedleft\arraybackslash}p{\g_kivi_tab_price_dim}} -\if@kivi@faketable +%\if@kivi@faketable \RequirePackage{environ} \ExplSyntaxOn \seq_new:N \l_kivi_PricingTable_seq -\NewEnviron{PricingTabular}{ +\NewDocumentCommand{\FakeTable}{m}{ % \tl_set:No \l_tmpa_tl {\BODY} - \seq_set_split:NnV \l_kivi_PricingTable_seq {\tabularnewline} \BODY + \seq_set_split:Nnn \l_kivi_PricingTable_seq {\tabularnewline} {#1} \seq_show:N \l_kivi_PricingTable_seq } \ExplSyntaxOff -\else +%\else \newenvironment{PricingTabular}{ \begingroup \setlength{\tabcolsep}{\g_kivi_tabcolsep_dim} @@ -109,7 +109,7 @@ contents={\usebox\shippingAddressBox} \endlongtable \endgroup } -\fi +%\fi \ExplSyntaxOff diff --git a/sales_quotation.tex b/sales_quotation.tex index 2358b2597..17195848d 100644 --- a/sales_quotation.tex +++ b/sales_quotation.tex @@ -139,6 +139,7 @@ \bottomrule \endlastfoot % eigentliche Tabelle +\FakeTable{ <%foreach number%> <%runningnumber%> & <%number%> & @@ -153,6 +154,7 @@ \ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}} <%linetotal%>\tabularnewline <%end number%> +} \end{PricingTabular} <%if notes%>