From: James P. K. I. <jk...@lo...> - 2005-10-19 02:49:08
|
The button to "Post" will store the data in the database (and make it available for accounting purposes. with out this, you have not done anything!) When you "print", you have several options. You must have an output format (html, ps or pdf) and a print location (screen, spool, printer from list). By ordering the listings in the sql-ledger.conf file, the first one will be the default listing on the screen. In order to print to a printer, you will need to be able to send a postscript file to the printer using lp (or lpr) and have it work. I have found that there are some subtle spacing differences between ps and pdf output sent to the printer. So I always use pdf as I also send pdf format by email for invoices (and late notices). If you choose "screen" as the output device, you only have 2 options, html (which always work) and pdf (which requires a reader like xpdf, acroread, etc). I will use pdf to screen when I need to leave an invoice at a client location immediately instead of sending it by email. On Tue, 2005-10-18 at 21:48 -0400, Ciro Soto wrote: > I still can't print. > I changed the conf file, added the printer name I have=20 > %printer =3D ('Samsung' =3D> 'lpr -Pml-1740-2'); > I selected in the preferences (now it's my default). I logeed out, > logged in, > but I don't see any action when I click "print"=20 >=20 > There is nothing in /usr/local/sql-ledger/spool/ >=20 > I don't understand the differences between post/print/ > what does the software do when I choose 'screen'? >=20 > thank you for your help > ciro >=20 > On 10/18/05, James P. Kinney III <jk...@lo...> > wrote: > On Mon, 2005-10-17 at 22:27 -0400, Ciro Soto wrote: > > I finally got sql_ledger to work. Without a manual this is > very > > difficult to figure out. > > Anyways, I tried to print a invoice, and after I click on > 'print' I=20 > > don't know where the pdf file goes. > > What directory is it printed to ? > =20 > You have to modify the sql-ledger.conf file to have real > printers > listed. It's a perl hash generator string with 'name' =3D> > 'print command'=20 > pairs. The print command is what would be used to print a file > from the > command line minus the filename. > =20 > e.g, I want to print file foo.txt to a printer called hp: > =20 > lp -Php foo.txt > =20 > So for sql-ledger.conf I would have a printer line like: > =20 > 'hp' =3D> 'lp -Php' > =20 > If you have multiple printers, each line is separated by a > ';'. > > > > Fedora Core 3 system. > > > > c > > > > -- > > "All problems are at the interface. Each one of them has a > solution."=20 > > from: "The Guitar Maker: An Exploration of Wisdom, Design > and Love." > > A novel by C. A. Soto Aguirre. > > http://www.TheGuitarMakerExploration.com/ > -- > James P. Kinney III \Changing the mobile computing > world/ > CEO & Director of Engineering \ one Linux > user / > Local Net Solutions,LLC \ at a > time. / > 770-493-8244 \.___________________________./ > http://www.localnetsolutions.com > =20 > GPG ID: 829C6CA7 James P. Kinney III (M.S . Physics) > <jk...@lo...> > Fingerprint =3D 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C > 6CA7 > =20 > =20 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > =20 > iD8DBQBDVU/jYZCtw4KcbKcRAoZVAJ9mZ2W2pOZdvoBlN45ojVfglKlHRACfaNLk > ZOhqQr/oJUY1siexezHQ9z4=3D > =3DXxvt > -----END PGP SIGNATURE----- > =20 > =20 >=20 >=20 >=20 > --=20 > "All problems are at the interface. Each one of them has a solution."=20 > from: "The Guitar Maker: An Exploration of Wisdom, Design and Love."=20 > A novel by C. A. Soto Aguirre. > http://www.TheGuitarMakerExploration.com/ --=20 James P. Kinney III \Changing the mobile computing world/ CEO & Director of Engineering \ one Linux user / Local Net Solutions,LLC \ at a time. / 770-493-8244 \.___________________________./ http://www.localnetsolutions.com GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jk...@lo...> Fingerprint =3D 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 |