diff options
author | Michael Kropat <mail@michael.kropat.name> | 2015-09-22 08:31:06 -0400 |
---|---|---|
committer | Michael Kropat <mail@michael.kropat.name> | 2015-09-22 08:31:06 -0400 |
commit | d265c6b93fb9ea1d28fecd09f08ac249a5bbf447 (patch) | |
tree | e7a32488545f5447ea1fa8da22ba455d241961c3 | |
parent | b458b2982e9c1fed23592fcc5a9d9188b9bb2056 (diff) | |
parent | 63d70bd49ca677cf395151c004a2bfe0a50e7ee4 (diff) |
Merge pull request #3 from paultcochrane/pr/rename-formatdollars
Rename formatdollars to formatcurrency
-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 09547d6..71644ef 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} |