Wed May  2 22:45:20 2001
Robert Heller, Deepwoods Software
heller@deepsoft.com
ftp://ftp.deepsoft.com/pub/deepwoods/Other/Invoice0.1.tar.gz
http://www.deepsoft.com/

Invoice Class (really mailing label / packing slip).

This is something I cobbled together as part of my E-Commerce site.  The
E-Commerce web site runs on a Linux system with PostgreSQL and Apache
installed, using CGI scripts written in Tcl.  The CGI scripts use
pgtclsh, a version of tclsh with interface code for PostgreSQL compiled
in.

Orders come in and are placed in the database as 'ShipPend'.  I extract
these records and pull them over the net from my server (remotely
co-located) to my home office system.  The order records are processed
by a Tcl script and a LaTeX file is generated (a typical (test) file is
included).  The LaTeX is fed to LaTeX and dvips and then to my printer,
where the mailing label / packing slip sheets are printed.  I peel out
the mailing label and put it on the outside of the package and put the
remainder (packing slip) inside with the order itself.

Files in this package:

 40859 May  2 18:42 DeepwoodsBannerSmall.ps	Banner for the labels
  1062 May  2 18:39 ExtractShipPend.tcl		Script run on the server
						to extract pending orders
  1872 May  2 18:40 InvoicesNov-28-2000-1.tex	Sample 'invoice'.
  5608 May  2 18:38 PrintInvs.tcl		Script to generate an invoice.
  1058 May  2 18:53 Readme.txt			This file.
    76 May  2 18:39 RunInv.csh			Script to generate invoices.
  1111 May  2 18:41 deepwoodsvarying.sql	SQL to create the db table
  4050 May  2 18:41 env.sty			Envelope package
 15524 May  2 18:38 invoice.cls			Class file.

The class file is hardwired to include my company logo
(DeepwoodsBannerSmall.ps) and return address.  It is also wired for peel
out label sheets:

	NEBS Product number 00P7010-1: CTM LSR LBL FRM (1)3.5x2 11"

These files are not well documented -- I wrote these for my own use. 
The class file should not be too hard to modify and the script files are
pretty basic.  env.sty is something I got off the net a log time ago and
modified slightly.  I don't know if it is still around or not. 
invoice.cls also uses the textpos package -- this is in the CTAN
archive.  It also uses the epsfig package (for the logo banner).
