+\renewcommand{\familydefault}{phv}\r
+\r
+\r
+% Commands for freeside table header...\r
+\r
+\newcommand{\FSdescriptionlength} { [@-- $unitprices ? '8.2cm' : '12.8cm' --@] }\r
+\newcommand{\FSdescriptioncolumncount} { [@-- $unitprices ? '4' : '6' --@] }\r
+\newcommand{\FSunitcolumns}{ [@-- \r
+ $unitprices\r
+ ? '\makebox[2.5cm][r]{\textbf{~~' . emt('Unit Price') . '}} &' .\r
+ '\makebox[1.4cm]{\textbf{~' . emt('Quantity') . '}} & ' \r
+ : '' --@] }\r
+\r
+\newcommand{\FShead}{\r
+ \hline\r
+ \rule{0pt}{2.5ex}\r
+ \makebox[1.4cm]{} &\r
+ \multicolumn{\FSdescriptioncolumncount}{l}{\r
+ \truncate{\FSdescriptionlength}{\textbf{[@-- emt('Description') --@]}}\r
+ } &\r
+ \FSunitcolumns\r
+ \makebox[1.6cm][r]{\textbf{[@-- emt('Amount') --@]}} \\\r
+ \hline\r
+}\r
+\r
+\newcommand{\FSusagehead}{\r
+ \hline\r
+ \rule{0pt}{2.5ex}\r
+ \makebox[1.4cm]{} &\r
+ \multicolumn{4}{l}{\r
+ \truncate{\FSdescriptionlength}{\textbf{[@-- emt('Description') --@]}}\r
+ } &\r
+ \textbf{~~[@-- emt('Calls') --@]} &\r
+ \textbf{~~[@-- emt('Duration') --@]} &\r
+ \textbf{~~[@-- emt('Amount') --@]} \\\r
+ \hline\r
+}\r
+\r
+% ...description...\r
+\newcommand{\FSdesc}[5]{\r
+ \multicolumn{1}{c}{\rule{0pt}{2.5ex}\textbf{#1}} &\r
+ \multicolumn{[@-- $unitprices ? '4' : '6' --@]}{l}{\r
+ \truncate{\FSdescriptionlength}{\textbf{#2}}\r
+ } &\r
+[@-- $unitprices ? ' \multicolumn{1}{r}{\textbf{#3}} &'."\n".\r
+ ' \multicolumn{1}{r}{\textbf{#4}} &'."\n"\r
+ : ''\r
+--@]\r
+ \multicolumn{1}{r}{\textbf{#5}}\\\r
+}\r
+% ...extended description...\r
+\newcommand{\FSextdesc}[1]{\r
+ \multicolumn{1}{l}{\rule{0pt}{1.0ex}} &\r
+ \multicolumn{6}{l}{\r
+ \truncate{12.8cm}{\small{~~~#1}}\r
+ } \\\r
+}\r
+% ...call detail (multiple columns already)...\r
+\newcommand{\FScalldetail}[1]{\r
+ \multicolumn{1}{l}{\rule{0pt}{1.0ex}} &\r
+ ~~~#1\r
+ \\\r
+}\r
+}\r
+% ...and total line items (which use the full 12.8cm length, ignoring\r
+% unitprice/quantity\r
+\newcommand{\FStotaldesc}[2]{\r
+ & \multicolumn{6}{l}{\r
+ \truncate{12.8cm}{#1}\r
+ } & #2\\\r
+}\r
+\r
+% ...usage class summary\r
+\newcommand{\FSusagedesc}[4]{\r
+ \multicolumn{1}{c}{\rule{0pt}{2.5ex}} &\r
+ \multicolumn{4}{l}{\textbf{#1}} &\r
+ \multicolumn{1}{r}{\textbf{#2}} &\r
+ \multicolumn{1}{r}{\textbf{#3}} &\r
+ \multicolumn{1}{r}{\textbf{#4}}\r
+ \\\r
+}\r