1
0
Fork 0
mirror of https://github.com/Findus23/invoices.git synced 2024-09-19 15:13:47 +02:00

leading zero in minute count

This commit is contained in:
Lukas Winkler 2019-10-25 11:35:19 +02:00
parent 78eafc3a8b
commit 7d913b7308
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -92,29 +92,29 @@
\VAR{"descr"|t}:& \VAR{invoice.description} \\
\VAR{"period"|t}: & \VAR{invoice.range} \\
\VAR{"total"|t}: & \EUR{\VAR{invoice.price | formatdigit }} \\
\vspace{0.5cm}
\end{tabularx}
\BLOCK{elif invoice.mode=="hourly"}
\vspace{0.5cm}
\begin{tabularx}{\textwidth}{Xrrr}
\VAR{"descr"|t} & \VAR{"per_hour"|t} & \VAR{"hours"|t} & \VAR{"total"|t} \\ \midrule
\VAR{invoice.description} &
\EUR{\VAR{invoice.per_hour | formatdigit }} &
\VAR{invoice.hours}:\VAR{invoice.minutes} &
\VAR{invoice.hours}:\VAR{'%02d' % invoice.minutes} &
\EUR{\VAR{invoice.hourtotal() | formatdigit }} \\
\BLOCK{if invoice.bank_fee}
\VAR{"bank_fee"|t} & & & \EUR{\VAR{config.bank_fee| formatdigit}} \\
\BLOCK{endif}
\midrule %\cmidrule{4-4}
& & & \EUR{\VAR{invoice.total() | formatdigit }} \\
\end{tabularx}