diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/invoice/invoice.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/invoice/invoice.sty | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/invoice/invoice.sty b/Master/texmf-dist/tex/latex/invoice/invoice.sty index ed930becb14..2fb397fddcf 100644 --- a/Master/texmf-dist/tex/latex/invoice/invoice.sty +++ b/Master/texmf-dist/tex/latex/invoice/invoice.sty @@ -2,8 +2,8 @@ % Datei: invoice.sty % Autor: Oliver Corff % Contact: oliver.corff@email.de -% Datum: October 01, 2011 -% Version: 0.9 +% Datum: August 06, 2018 +% Version: 0.91 % Copyright: Ulaanbaatar, Beijing, Berlin, Zagreb, Shenyang, Shanghai % Description: This collection of macros provides % tools for generating complex invoices @@ -16,6 +16,8 @@ % Some of the following contributions came years ago, others quite % recently: % +% Czech: Svarny Petr <svarnypetr@gmail.com> +% % Spanish: Juanjo <jj.hfmc@gmail.com> and Lee Rudolph <lrudolph@panix.com> % % Corrections of Italian orthography: Paolo Cusinu <paolo.cusinu@gmail.com> @@ -27,6 +29,16 @@ % One variant of Spanish: Matias Banchoff <matiasb@cespi.unlp.edu.ar> % %%%%%% +% 2018-08-05 +% Katrin Michelbach, request for "," instead of "." +% email: katrin.michelbach@googlemail.com +% +%%%%%% +% 2018-08-05 +% Svarny Petr, Czech labels +% email: <svarnypetr@gmail.com> +% +%%%%%% % Jacopo, May 2003 % e-mail: jacopo@ % @@ -104,7 +116,7 @@ % ------------------- identification ------------------- % \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{invoice}[2011/10/01] +\ProvidesPackage{invoice}[2018/08/06] % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % ------------------- language options ------------------- @@ -140,6 +152,8 @@ \DeclareOption{spanishv}{\invoice@language=\number\l@spanishv} \DeclareOption{swedish}{\invoice@language=\number\l@swedish} \DeclareOption{position}{} +\newif\ifcomma +\DeclareOption{comma}{\commatrue} % \ProcessOptions % @@ -149,10 +163,15 @@ \RequirePackage{ifthen} \RequirePackage{longtable} \RequirePackage{calc} -\input{fp} -\input{invoice.def} +\ifcomma + \RequirePackage[output-decimal-marker={,}]{siunitx} +\else + \RequirePackage{siunitx} +\fi +\RequirePackage{fp} +\input{invoicelabels.sty} % -\newcommand{\InvoiceVersion}{0.9}% +\newcommand{\InvoiceVersion}{0.91}% \newcounter{Fee} % \newcounter{VAT} % %\newcounter{VAT@rate} % @@ -815,7 +834,7 @@ \newcommand{\Print@Value}[1]{% \FPmul\r#1{0.01}%% <- Reduce to BaseCurrency \FPtrunc\r\r{2}%% <- Truncate to two digits - \r% % <- Output data! + \num{\r}% % <- Output data! }% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\Message@Value}[1]{% |