mirror of
https://github.com/tomka/rechnung.git
synced 2024-05-08 05:13:45 +02:00
Gutschriften: fix für negative MwSt.
Das Runden hat für negative Zahlen nicht funktioniert. Fixes rechnung#14
This commit is contained in:
parent
fa27b2231c
commit
463652c99c
12
rechnung.dtx
12
rechnung.dtx
|
@ -1013,9 +1013,17 @@
|
|||
% \[\left\lfloor\frac{\hbox{\LangNet}\cdot\hbox{\LangTaxRate}+50}{100}\right\rfloor\]
|
||||
% \begin{macrocode}
|
||||
\multiply\@RCHmwsti\@RCHstsi
|
||||
\advance\@RCHmwsti50\divide\@RCHmwsti100
|
||||
\ifnum\@RCHmwsti<0
|
||||
\advance\@RCHmwsti-50\divide\@RCHmwsti100
|
||||
\else
|
||||
\advance\@RCHmwsti50\divide\@RCHmwsti100
|
||||
\fi
|
||||
\multiply\@RCHmwstii\@RCHstsii
|
||||
\advance\@RCHmwstii50\divide\@RCHmwstii100
|
||||
\ifnum\@RCHmwstii<0
|
||||
\advance\@RCHmwstii-50\divide\@RCHmwstii100
|
||||
\else
|
||||
\advance\@RCHmwstii50\divide\@RCHmwstii100
|
||||
\fi
|
||||
\@RCHmwst\@RCHmwsti\advance\@RCHmwst\@RCHmwstii
|
||||
\if@RCHerm
|
||||
\@RCHsline{zzgl. \@RCHstsii\,\% MwSt.}{\writeCurrency\@RCHmwstii}%
|
||||
|
|
Loading…
Reference in a new issue