X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_latex;h=aaec6be2129aeea9f25d5919fc13b7a3a2a1676a;hb=a04f7d97cd3e57ee9061fba5f737d6d77c782c13;hp=d819160195eb9260fc3f2f914f26521ee49752e2;hpb=9c42579467b332e5b188c75e5acb109eb33b7297;p=freeside.git diff --git a/conf/invoice_latex b/conf/invoice_latex index d81916019..aaec6be21 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -19,7 +19,7 @@ \documentclass[letterpaper]{article} -\usepackage{fancyhdr,lastpage,ifthen,longtable,afterpage,caption,multirow,bigstrut} +\usepackage{fancyhdr,lastpage,ifthen,fslongtable,afterpage,caption,multirow,bigstrut} \usepackage{graphicx} % required for logo graphic \addtolength{\voffset}{-0.0cm} % top margin to top of header @@ -157,16 +157,21 @@ % Commands for freeside table header... + +\newcommand{\FSdescriptionlength} { [@-- $unitprices ? '8.2cm' : '12.8cm' --@] } +\newcommand{\FSdescriptioncolumncount} { [@-- $unitprices ? '4' : '6' --@] } +\newcommand{\FSunitcolumns}{ [@-- $unitprices ? '\makebox[2.5cm][l]{\textbf{~~Unit Price}}&\makebox[1.4cm]{\textbf{~Quantity}}&' : '' --@] } + \newcommand{\FShead}{ \hline \rule{0pt}{2.5ex} \makebox[1.4cm]{\textbf{Ref}} & - \makebox[2.9cm][l]{\textbf{Description}}& - \makebox[1.4cm][l]{}& - \makebox[1.4cm][l]{}& - \makebox[2.5cm][l]{}& - \makebox[2.5cm][l]{\textbf{[@-- $unitprices ? '~~Unit Price' : '' --@]}}& - \makebox[1.4cm]{\textbf{[@-- $unitprices ? '~Quantity' : '' --@]}}& +% \makebox[2.9cm][l]{\textbf{Description}}& +% \makebox[1.4cm][l]{}& +% \makebox[1.4cm][l]{}& +% \makebox[2.5cm][l]{}& + \multicolumn{\FSdescriptioncolumncount}{l}{\makebox[\FSdescriptionlength][l]{\textbf{Description}}}& + \FSunitcolumns \makebox[1.6cm][r]{\textbf{Amount}} \\ \hline } @@ -207,7 +212,7 @@ [@-- $coupon ? '\enlargethispage{-\extracouponspace}' : '' --@] \addressinset \rule{0.5cm}{0cm} \makebox{ -\begin{minipage}[t]{5.0cm} +\begin{minipage}[t]{7.0cm} \vspace{0.25cm} \textbf{[@-- $payname --@]}\\ \addressline{[@-- $company --@]} @@ -228,9 +233,6 @@ $OUT .= "\\addressline{$ship_city, $ship_state~~$ship_zip}"; $OUT .= "\\addressline{$ship_country}"; $OUT .= '~\\\\'; - $OUT .= "\\textbf{ID:}~~$agent_custid\\\\" if $agent_custid; - $OUT .= "\\textbf{Fax:}~~$ship_fax\\\\" if $ship_fax; - $OUT .= '~\\\\' if ($ship_fax or $agent_custid); }else{ $OUT .= ''; }