diff options
author | Paul Cochrane <paul@liekut.de> | 2015-09-13 21:32:13 +0200 |
---|---|---|
committer | Paul Cochrane <paul@liekut.de> | 2015-09-13 21:32:13 +0200 |
commit | 63d70bd49ca677cf395151c004a2bfe0a50e7ee4 (patch) | |
tree | 46fca0b8c5dcf48eba203406366dede435935681 | |
parent | 729e263f879aa9dd3378021af8582322d884a2f5 (diff) |
Rename formatdollars to formatcurrency
This is a more general term and thus allows (conceptually, at least) other
currencies to be used within dapper-invoice.
-rw-r--r-- | dapper-invoice.cls | 4 | ||||
-rw-r--r-- | example.tex | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/dapper-invoice.cls b/dapper-invoice.cls index 0f5e915..7a58c69 100644 --- a/dapper-invoice.cls +++ b/dapper-invoice.cls @@ -168,7 +168,7 @@ \newcommand*{\calcamount}[2]{% \FPmul\t{#1}{#2}% - \formatdollars{\t}% + \formatcurrency{\t}% % \FPadd\gt{\InvoiceTotal}{\t}% \global\let\InvoiceTotal\gt% @@ -245,7 +245,7 @@ } } -\newcommand*{\formatdollars}[1]{% +\newcommand*{\formatcurrency}[1]{% \num[group-separator={,}, group-minimum-digits=3, round-mode=places, round-precision=2]{#1}% } diff --git a/example.tex b/example.tex index 682f303..5b102c2 100644 --- a/example.tex +++ b/example.tex @@ -27,7 +27,7 @@ \infoSub{\faMobilePhone}{\small\slshape +1~(555)~555-5555} \noalign{\addvspace{8ex}} \infoBox{}{ - {\large\raisebox{.55\height}\$\huge\formatdollars{\balance} \arrowbase} \\ + {\large\raisebox{.55\height}\$\huge\formatcurrency{\balance} \arrowbase} \\ {\small\color{subduedColor} due \duedate{\duein}} } \end{infoSection} @@ -60,10 +60,10 @@ \beginsummary - \summaryline{Total}{\$\formatdollars{\InvoiceTotal}} + \summaryline{Total}{\$\formatcurrency{\InvoiceTotal}} - \summaryline{Paid}{\$\formatdollars{50}} - \summaryline{Balance Due}{\$\formatdollars{\balance}} % not really any math support (yet) + \summaryline{Paid}{\$\formatcurrency{50}} + \summaryline{Balance Due}{\$\formatcurrency{\balance}} % not really any math support (yet) \end{hoursItemizationWithProject} |