SQL-Ledger Homepage

SQL-Ledger User Forum

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

pdf invoice for v3.2.0 (General)

posted by Leho Kraav(R), 16.07.2017, 18:13

Hi, I have a heavily modified invoice.tex that I've been using for
v3.0.8
with statements that break rules etc. When I go to use it in v3.2.0
I
get
an error!

check the error file in the users directory.

Hi I checked the error, and it's very verbose.
Dave

I also have errors with v3.2.0 (pdf invoice : no error with 1 print , error
with 2 or more copies) but in users directory I get a verbose .err file and
an printable correct .ps file !

One thing I've noticed is I can't have nested <%if%> and <%foreach%>, or the <%end ...%> tags will get confused. Example:

```
<%if paid_1%>
\begin{tabularx}{\textwidth}{@{}lXlr@{}}
\textbf{PAYMENTS MADE} & & & \\
\hline
\textbf{Date} & & \textbf{Description} & \textbf{Sum} \\
<%foreach payment%>
<%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
<%end payment%>
\end{tabularx}

\vspace{0.5cm}
<%end paid_1%>
```

Will cause a `\end{tabularx}` mismatch. Removing either `if` or `foreach` immediately makes the template work. Also, unnesting makes the template work, like such:

```
\begin{tabularx}{\textwidth}{@{}lXlr@{}}
<%if payment%>
\textbf{PAYMENTS MADE} & & & \\
\hline
\textbf{Date} & & \textbf{Description} & \textbf{Sum} \\
<%end payment%>
<%foreach payment%>
<%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \
<%end payment%>
\end{tabularx}
```

 

Complete thread:

Back to the forum
Board view  Mix view
976 Postings in 320 Threads, 326 registered users, 107 users online (0 registered, 107 guests)
SQL-Ledger User Forum | Admin contact
RSS-Feed
powered by my little forum