<!--
      (Do not remove this comment block.)
  Version: 1.8.4
  Last modified: April 10th 2004
  Maintainers: 
               Chris Lyttle <chris@wilddev.net>
  Author:
  		Jon Lapham <lapham@extracta.com.br>
  Originally designed by Carol Champagne.
  Translators:
               (translators put your name and email here)
-->
 <chapter id="chapter12">
 <title>Accounts Receivable</title>
 <para>Accounts Receivable (or A/R) refers to products or services provided by the company on credit for which payment has not yet been received.</para>

 <sect1 id="bus_ar_overview1">
 <title>Overview of Business Features</title>
 <para>The accounting needs of a business can be quite different from that of a person.  Businesses have customers that owe money, vendors which are owed money, employee payroll, more complex tax laws, etc.  GnuCash offers some business oriented features to help facilitate these needs.</para>
 <para>Accounts Receivable (A/R) and Accounts Payable (A/P) are used by businesses to record sales for which they are not immediately paid, or to record bills that they have received, but might not pay until later. These types of accounts are used primarily when you've got a lot of bills and receipts flowing in and out, and don't want to lose track of them just because you don't pay/get paid right away. For most home users, A/R and A/P are too complicated and confusing to be worth the effort.</para>
 </sect1>

 <sect1 id="bus_ar_concepts1">
 <title>Basic Concepts</title>
  <para>Accounts Receivable (or A/R) refers to products or services provided by the company on credit for which payment has not yet been received.  This is represented on the balance sheet as an asset, because the expectation is that you will receive payment soon.</para>
  </sect1>

  <sect1 id="bus_ar_setup1">
  <title>Initial Setup</title>
  <para>To setup GnuCash to work with handling accounts receivable for a company, there are 2 preliminary things that must be done.  The first thing to do is to build an appropriate Account Hierarchy and the second is to register the company in GnuCash.</para>
  <sect2 id="bus_ar_setupacct2">
  <title>Account Setup</title>
  <para>There are many different ways to setup a business account hierarchy.  You can start with the Business Accounts setup which is available from the New Account druid, or you could build one manually.  To access the prebuilt Business Accounts, start GnuCash and click on <guimenu>File</guimenu> -> <guimenu>New File</guimenu> and proceed until you see the list of available accounts, select Business Accounts.</para>
  <para>Most likely, the prebuilt Business Account hierarchy will exactly meet your needs, however it should be close enough that it is recommended you begin with it.  You may need adjust some accounts manually for it to function well with your particular situation, but the defaults should be adequate for many situations.</para>
  <para>Accounts Receivable (or A/R) refers to products or services provided by the company on credit for which payment has not yet been received.  This is represented on the balance sheet as an asset, because the expectation is that you will receive payment soon.  To use GnuCash's integrated accounts receivable system, you must first setup an account (usually a sub-account under Assets) defined with account type <emphasis>A/Receivable</emphasis>.  It is within this account that the integrated A/R system will place transactions.</para>
  <literallayout>
Basic A/R Account Hierarchy:

-Assets
   -Checking
   -Accounts Receivable
-Income
   -Sales
  </literallayout>

 <para>You will need to add additional asset, expense, and income accounts to this hierarchy for it to be useful.  But, the most important aspects of this hierarchy are the use of an income account and the Accounts Receivable asset account, with account type set to <emphasis>A/Receivable</emphasis>.</para>

  <note>
  <para>You do not need to create an individual A/R account for each customer.  GnuCash will keep track of customers internally and provides reports per-customer based on the internal tracking.</para>
  </note>
  </sect2>

  <sect2 id="bus_ar_setupcname2">
  <title>Register Your Company</title>
  <para>After you have built your account structure, you will want to register the GnuCash file as belonging to your company.  To do so, add your Business Name, Address and GST number.  Click on <guimenu>File</guimenu> -> <guimenu>Properties</guimenu>.  Type the Business name and address, add an empty line and add the GST number: <quote>GST: 1234-5678RT</quote>.  Click <guilabel>OK</guilabel>.</para>
 </sect2>
 
 </sect1>

 <sect1 id="bus_ar_components1">
 <title>System Components</title>
  <para>GnuCash has an integrated accounts receivable system.  The transactions generated by the A/R system will be placed within the Accounts Receivable account, as a record of what occurs, but you do not directly work within this account.  Rather, you will principally be working with the 4 integrated GnuCash A/R application components, available from the sub-menu <guimenu>Business</guimenu> -> <guimenu>Customers</guimenu>.  These 4 application components are:</para>

  <itemizedlist>
  <listitem>
  <para><guilabel>Customers</guilabel> are people or companies to whom you sell products or services on credit.</para>
  </listitem>
  <listitem>
  <para><guilabel>Invoices</guilabel> represent the physical invoice you send to a customer, requesting payment.  This invoice contains an itemized list of things you sold.</para>
  </listitem>
  <listitem>
  <para><guilabel>Jobs</guilabel> (optional) is where you register Customer Jobs, a grouping mechanism by which you can group invoices to a particular customer.</para>
  </listitem>
  <listitem>
  <para><guilabel>Process Payments</guilabel> is where you register money payments from a customer to  your company.</para>
  </listitem>
  </itemizedlist>

  <para>In the next 4 sections of this chapter, the above 4 application components will be introduced.</para>
 </sect1>

 <sect1 id="bus_ar_customers1">
 <title>Customers</title>
  <para>Customers are people of companies to whom you sell goods or services.  They must be registered within the A/R system.</para>

  <sect2 id="bus_ar_custnew2">
 <title>New</title>
 <para>To register a new customer, enter the menu <guimenu>Business</guimenu> -> <guimenu>Customer</guimenu> -> <guimenu>New Customer</guimenu>.  Fill in the appropriate billing address for the customer, such as Company Name, Address, Phone, Fax, etc.  Below is a list of the other options: </para>
 <itemizedlist>
 <listitem>
 <para><guilabel>Identification - Customer Number</guilabel> - can be any number you would like to use to refer to this customer, or you may leave it blank and a number will be chosen automatically.</para>
 </listitem>
 <listitem>
 <para><guilabel>Identification - Active</guilabel> - this check box is used to differentiate active customers from inactive ones, useful for when you have many past customers, and you want to see only the active.</para>
 </listitem>
 <listitem>
 <para><guilabel>Billing Address - Name</guilabel> - this is the contact name of the person to receive the bill.</para>
 </listitem>
 <listitem>
 <para><guilabel>Notes</guilabel> - you can enter any text you would like to in this area, additional commentaries about this customer.</para>
 </listitem>
 <listitem>
 <para><guilabel>Billing Information - Currency</guilabel> - here you can specify what the default billing currency will be.</para>
 </listitem>
 <listitem>
 <para><guilabel>Billing Information - Terms</guilabel> - here you can specify what the default billing terms will be for this customer.  These terms must be preregistered using <guimenu>Business</guimenu> -> <guimenu>Billing Terms</guimenu>.</para>
 </listitem>
 <listitem>
 <para><guilabel>Billing Information - Tax Included</guilabel> - this specifies whether tax has already been included in the invoice.  You can choose <guilabel>Yes</guilabel>, <guilabel>No</guilabel>, or <guilabel>Use Global</guilabel>.  Yes means that the tax is already included in the invoice, No means tax has not been included in the invoice, and Use Global means to use the global tax (Derek?).</para>
 </listitem>
 <listitem>
 <para><guilabel>Billing Information - Tax Table</guilabel> - this allows you to specify a specific preregistered tax table to apply to invoices to this customer.  Tax tables must be registered from the menu item <guimenu>Business</guimenu> -> <guimenu>Tax Table</guimenu>.</para>
 </listitem>
 <listitem>
 <para><guilabel>Shipping Address</guilabel> - if the customers shipping address is different from the billing address, you can enter this information in the third and final windows tab entitled <guilabel>Shipping Address</guilabel>.</para>
 </listitem>
 </itemizedlist>
 
 <para>This is what the New Customer registration window looks like:</para>
	<screenshot id="bus_ar_custnew">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_custnew.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>New Customer Registration Window</phrase>
	    </textobject>
	    <caption>
	       <para>New Customer Registration Window</para>
	    </caption>
          </mediaobject>
        </screenshot>
 
 </sect2>
 <sect2 id="bus_ar_custfind2">
 <title>Find and Edit</title>

 <para>To search for a preexisting customer, use the <guimenu>Business</guimenu> -> <guimenu>Customers</guimenu> -> <guimenu>Find Customers</guimenu> application.  From the results of the search, you can select a customer to edit, or view.</para>

	<screenshot id="bus_ar_custfind">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_custfind.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>Find Customer Window</phrase>
	    </textobject>
	    <caption>
	       <para>Find Customer Window
	       </para>
	    </caption>
          </mediaobject>
        </screenshot>
 
 <note>
 <para>To return a list of all registered active customers, set the search criterion to "matches regex", and place a single dot "." in the text field area.  Then, click <guibutton>Find</guibutton>.  The regular expression "." means to match anything.</para>
 </note>
 
 </sect2>
 </sect1>

 <sect1 id="bus_ar_invoices1">
 <title>Invoices</title>
 <para>An invoice is the paperwork you send to a customer requesting payment for a product or services rendered.  GnuCash can be used to generate and track invoices.</para>
 <sect2 id="bus_ar_invoicenew2">
 <title>New</title>
 <para>To send an invoice to a customer you must first create a new invoice.  This is accomplished using the application available at <guimenu>Business</guimenu> -> <guimenu>Customers</guimenu> -> <guimenu>New Invoice</guimenu>.  The New Invoice window should be filled in appropriately:</para>
  <itemizedlist>
  <listitem>
  <para><guilabel>Invoice Info - Invoice ID</guilabel> - the identification number of this invoice (IE: your internal number for this invoice).  If you leave it blank, a number will automatically be generated for it.</para>
  </listitem>
  <listitem>
  <para><guilabel>Invoice Info - Date Opened</guilabel> - the date this Invoice was created.</para>
  </listitem>
  <listitem>
  <para><guilabel>Billing Info - Customer</guilabel> - the customer who is to receive this invoice.</para>
  </listitem>
  <listitem>
  <para><guilabel>Billing Info - Job</guilabel> (optional) - the customer job to associate with this invoice.</para>
  </listitem>
  <listitem>
  <para><guilabel>Billing Info - Billing ID</guilabel> - this is the customer's PO Number or other "customer reference number" that you should use to identify your invoices to this customer (and job, if you have one).</para>
  </listitem>
  <listitem>
  <para><guilabel>Billing Info - Terms</guilabel> - the payback terms agreement for this invoice, a list of preregistered terms is available within the pop up menu.</para>
  </listitem>
  </itemizedlist>

	<screenshot id="bus_ar_invoicenew">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_invoicenew.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>Creating a New Invoice</phrase>
	    </textobject>
	    <caption>
	       <para>Creating a New Invoice
	       </para>
	    </caption>
          </mediaobject>
        </screenshot>
 
 <para>Once you fill in all the information for the new invoice, you will be presented with the <guilabel>Edit Invoice</guilabel> window.</para>
  </sect2>

 <sect2 id="bus_ar_invoiceedit2">
  <title>Edit</title>
  <para>From the Edit Invoice window you can enter an itemized list of things you sold on this invoice in a manner similar to how the account register works.</para>
  	<screenshot id="bus_ar_invoiceedit">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_invoiceedit.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>Edit Invoice Window</phrase>
	    </textobject>
	    <caption>
	       <para>Edit Invoice Window
	       </para>
	    </caption>
          </mediaobject>
        </screenshot>

  <para>There are 15 columns in the Invoice Entries area:</para>
  <itemizedlist>
  <listitem>
  <para><guilabel>Date</guilabel> - The date this item was sold</para>
  </listitem>
  <listitem>
  <para><guilabel>Invoiced?</guilabel> - <guilabel>X</guilabel> means the item is attached to this invoice, an empty box means the item is not attached to this invoice.  If the box is empty you can attach the item to the invoice by first selecting the item row and then clicking in this box.</para>
  </listitem>
  <listitem>
  <para><guilabel>Description</guilabel> (optional) - what the item is called</para>
  </listitem>
  <listitem>
  <para><guilabel>Action</guilabel> (optional) - user defined field.  Can place Cost Center info here, or use one of the 3 predefined actions, Hours, Material, or Project.</para>
  </listitem>
  <listitem>
  <para><guilabel>Income Account</guilabel> - which income account is credited with this income</para>
  </listitem>
  <listitem>
  <para><guilabel>Quantity</guilabel> - how many of the items you sold</para>
  </listitem>
  <listitem>
  <para><guilabel>Unit Price</guilabel> - the unit price of the item</para>
  </listitem>
  <listitem>
  <para><guilabel>Discount Type</guilabel> - type of discount, monetary value ($) or percentage (%)</para>
  </listitem>
  <listitem>
  <para><guilabel>Discount How</guilabel> - the discount can be computed after the tax is applied (<guilabel>&gt;</guilabel>), before the tax is applied(<guilabel>&lt;</guilabel>), or the discount and tax can be applied to the pretax value (<guilabel>=</guilabel>)</para>
  </listitem>
  <listitem>
  <para><guilabel>Discount</guilabel> (optional) - total discount (in monetary units or percentage, depending on <guilabel>Discount Type</guilabel>.  You can leave blank for no discount.</para>
  </listitem>
  <listitem>
  <para><guilabel>Taxable?</guilabel> - is this item taxable?  <guilabel>X</guilabel> means yes, a blank field means no.</para>
  </listitem>
  <listitem>
  <para><guilabel>Tax Included?</guilabel> - has the tax already been included in the unit price?  <guilabel>X</guilabel> means yes, a blank field means no.  For example, if there is 1 item of $100 with a tax of 5%, if Tax Included is empty then subtotal = $100 and tax = $5, whereas if Tax Included is true, then subtotal = $95 and tax = $5</para>
  </listitem>
  <listitem>
  <para><guilabel>Tax Table</guilabel> (optional) - this is a pop up menu of all the available tax tables.  If you set the item as taxable then this tax table is used to compute the amount of tax.</para>
  </listitem>
  <listitem>
  <para><guilabel>Subtotal</guilabel> (uneditable) - computed subtotal for this item (less tax)</para>
  </listitem>
  <listitem>
  <para><guilabel>Tax</guilabel> (uneditable) - computed tax for this item</para>
  </listitem>
  </itemizedlist>

  <para>When you have finished entering all the items, <guilabel>Post</guilabel> the invoice.</para>
  </sect2>

 <sect2 id="bus_ar_invoicepost2">
  <title>Post</title>

  <para>When you have finished editing an invoice and are ready to print you must <guilabel>Post</guilabel> the invoice.  You do not have to post the invoice immediately, and in fact you should only post the invoice when you are ready to print it.  Posting an invoice will place the invoice transactions into an accounts receivable account.  The Post Invoice window will appear asking you to enter the Post Date, the Due Date, a Description, and Post to Account (from which you can select from a list of A/Receivable accounts).</para>
  	<screenshot id="bus_ar_invoicepost">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_invoicepost.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>Post Invoice Window</phrase>
	    </textobject>
	    <caption>
	       <para>Post Invoice Window
	       </para>
	    </caption>
          </mediaobject>
        </screenshot>
  </sect2>

 <sect2 id="bus_ar_invoicefind2">
  <title>Find</title>
  <para>To find a preexisting invoice, use the <guimenu>Business</guimenu> -> <guimenu>Customers</guimenu> -> <guimenu>Find Invoices</guimenu> application.  From the results of the search, you can select an invoice to edit, or view. </para>
  <note>
  <para>Before you can edit a preexisting posted invoice, you will need to unpost it.</para>
  </note>
 </sect2>

 <sect2 id="bus_ar_invoiceprint2">
 <title>Print</title>
  <para>After you have posted an invoice, you should print it to send to your customer.  This can be done from the Edit Invoice window using the <guibutton>Print</guibutton> button, or from within the Process Payment dialog, or from the main window: <guimenu>Reports</guimenu> -> <guimenu>Business Reports</guimenu> -> <guimenu>Printable Invoice</guimenu>.  You can edit the invoice options to select the invoice you want to print.  See the later section in this chapter on the Process Payment dialog for instructions on printing.</para>
  <para>An example of the default GnuCash invoice print output is shown below.</para>

  	<screenshot id="bus_ar_invoiceprint">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_invoiceprint.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>Invoice Print Output</phrase>
	    </textobject>
	    <caption>
	       <para>Invoice Print Output
	       </para>
	    </caption>
          </mediaobject>
        </screenshot>
  <note>
  <para>You can modify the appearance of the invoice, IE: add a company logo, etc.  To do so, see the section in this chapter entitled "Changing the Invoice Appearance".</para>
  </note>
 </sect2>

 <sect2 id="bus_ar_invoicestarting2">
 <title>Assign Starting Invoice Number</title>
  <para>There is no easy way to assign an automatic starting invoice number.  GnuCash will start with number 1 and increment from there.  You can override the invoice number by typing an invoice number into the text box each time you create an invoice, but this is bound to get tiring and will sooner or later lead to duplicate numbers.</para>
  <para>If, however, it is important that you be able to change the invoice starting number, there is a way, but unfortunately there is no UI interface to do it.  You have to hand edit your XML data file (it should be right at the beginning of the file in the "counters" section). </para>
 </sect2>
  </sect1>

 <sect1 id="bus_ar_jobs1">
 <title>Customer Jobs</title>
  <para>You can use the optional GnuCash feature called Customer Jobs to associate invoices which fall under a single customer.  This is useful for when you have multiple "jobs" for the same customer, and would like to view all the invoices for one job.</para>
  <para>To use customer jobs, you must create them using the <guimenu>Business</guimenu> -> <guimenu>Customers</guimenu> -> <guimenu>New Jobs</guimenu> application.  Once there, you will see the <guilabel>New Job</guilabel> window.  The editable fields are:</para>
   <itemizedlist>
   <listitem>
   <para><guilabel>Job Info - Job Number</guilabel> (optional) - enter the number for this job.  If left blank, a reasonable number will be chosen for you.</para>
   </listitem>
   <listitem>
   <para><guilabel>Job Info - Job Name</guilabel> - the name you want to call this job.</para>
   </listitem>
   <listitem>
   <para><guilabel>Owner Info - Customer</guilabel> - the customer associated with this  job.</para>
   </listitem>
   <listitem>
   <para><guilabel>Owner Info - Billing ID</guilabel> - the customer's reference to this job (e.g. their PO Number).  It's the "Billing Identification" that they require on your invoices to them.</para>
   </listitem>
   <listitem>
   <para><guilabel>Job Active</guilabel> - toggles this job being active or not.  This is useful to use when you have lots of inactive jobs, it is easier to find all the active ones.</para>
   </listitem>
   </itemizedlist>

  	<screenshot id="bus_ar_jobnew">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_jobnew.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>New Customer Job</phrase>
	    </textobject>
	    <caption>
	       <para>New Customer Job
	       </para>
	    </caption>
          </mediaobject>
        </screenshot>

  <para>To find a preexisting customer job, use the <guimenu>Business</guimenu> -> <guimenu>Customer</guimenu> -> <guimenu>Find Job</guimenu> application.  From the results of the search, you can select a job to edit, or view.</para>
  </sect1>

 <sect1 id="bus_ar_payment1">
 <title>Process Payment</title>
  <para>Eventually, you will receive payment from your customers for outstanding invoices.  To register these payments, use the Process Payment application found in <guimenu>Business</guimenu> -> <guimenu>Customers</guimenu> -> <guimenu>Process Payment</guimenu>.</para>
  <para>The Process Payment application consists of:</para>
  <itemizedlist>
  <listitem>
  <para><guilabel>Payment Info - Customer</guilabel> - the customer who paid you.</para>
  </listitem>
  <listitem>
  <para><guilabel>Payment Info - Date</guilabel> - the date you you received payment, normally the current date.</para>
  </listitem>
  <listitem>
  <para><guilabel>Payment Info - Amount</guilabel> - the amount of money received.</para>
  </listitem>
  <listitem>
  <para><guilabel>Payment Info - Num</guilabel> - the check number.</para>
  </listitem>
  <listitem>
  <para><guilabel>Payment Info - Memo</guilabel> - any comments about this payment.</para>
  </listitem>
  <listitem>
  <para><guilabel>Post To</guilabel> - the A/Receivable account to post this transaction.</para>
  </listitem>
  <listitem>
  <para><guilabel>Transfer Account</guilabel> - the account where the money will be deposited to (a checking account for example) from this payment.</para>
  </listitem>
  </itemizedlist>
  
  <para>Below is the GnuCash Accounts Receivable payment window.</para>
  	<screenshot id="bus_ar_payment">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_payment.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>Process Payment</phrase>
	    </textobject>
	    <caption>
	       <para>Process Payment Window
	       </para>
	    </caption>
          </mediaobject>
        </screenshot>

  <note>
  <para>One of the design goals in GnuCash's Account Receivable system was to allow different processes to get to the same state, so you can reach an invoice from different directions based on the way you think about the problem:</para>
  <literallayout>
  * you can search for the customer first, then list their invoices
  * you can search for invoices by number
  * you can search for invoices by company name

  Or, if you prefer, you could

  * you can create a new invoice and then select the customer
  * you can search for a customer, view their invoices, then click "new invoice"
  </literallayout>
  </note>

 </sect1>

 <sect1 id="bus_ar_invoicechange1">
 <title>Changing the Invoice Appearance</title>
 <para>The default Invoice style is fairly barren, as you can see in the example given in the "Invoices" section of this chapter.  The default invoice style leaves the top part of the form blank, so that you print on company letterhead paper.  However, there are some things you can do to change this default appearance.</para>
  <para>If you go to File, Properties, then you can enter your company name and address, which will then be printed on the right hand side of the invoices.</para>
  <para>To add a customized background, heading banner or logo to the invoices,  modify the invoice style sheets.  To do this, go to <guimenu>Edit</guimenu> -> <guimenu>Style Sheets</guimenu> and make a <guilabel>New...</guilabel> style sheet.  You will see a window like this:</para>

  	<screenshot id="bus_ar_invoicechange">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_invoicechange1.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>New Style Sheet Window</phrase>
	    </textobject>
	    <caption>
	       <para>The New Style Sheet initial window.</para>
	    </caption>
          </mediaobject>
        </screenshot>

  <para>You must select the <guilabel>Fancy</guilabel> style sheet template, and choose a name for your new style sheet.  The new style sheet will appear in the list to the left.  Select it, and now use the tabbed window to the right to make modifications.  There are 4 tabs available, Colors, General, Images, and Tables.  The Colors tab allows you to change the colors of the various sections of the invoice.  The General tab allows you to set the Preparer and Prepared for information, and to enable links.  The Images tab allows you to import graphics into the style sheet, such as your company logo.  Finally, the Tables tab allows you to adjust the spacing around the tables which make up the invoice.</para>
  <para>To create the graphical images, use your favorite graphics application such as The Gimp or OpenOffice Draw, and save the image in either GIF or PNG format.  Then import them into the style sheet.</para>

  <para>Below is presented a (hideous) example.</para>

  	<screenshot id="bus_ar_invoicechange2">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_invoicechange2.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>HTML Style Sheets example</phrase>
	    </textobject>
	    <caption>
	       <para>The HTML Style Sheets window with an example Background Tile, Heading Banner, and Logo.</para>
	    </caption>
          </mediaobject>
        </screenshot>

  <para>The placement of the images in the invoice is as follows. The <guilabel>Background Tile</guilabel> is tiled to become the background image, the <guilabel>Heading Banner</guilabel> goes to above the invoice text, and the <guilabel>Logo</guilabel> is placed in the upper left corner of the invoice to the left of the Heading Banner.  You will probably have to try a few different sized images until you get the invoices to print nicely.  Some sizing suggestions are that the Logo should be 1 square cm (~0.5 inch), and the Heading Banner should be 15 cm (~6 inches) wide and 1 cm (~0.5 inch) tall.</para>

 <para>With the style sheet configured, when you print the invoice, you select the style sheet to use from the <guimenu>Options</guimenu> menu.  Below is the resultant invoice after applying the style sheet demonstrated above.</para>

  	<screenshot id="bus_ar_invoicechange3">
	  <mediaobject>
	    <imageobject>
	      <imagedata fileref="figures/bus_ar_invoicechange3.png" 
	      srccredit="Jon Lapham" format="PNG"/>
            </imageobject>
	    <textobject>
	        <phrase>HTML Style Sheets example</phrase>
	    </textobject>
	    <caption>
	       <para>The hideous invoice which results from the graphics selected in the style sheet.</para>
	    </caption>
          </mediaobject>
        </screenshot>

  </sect1>

 </chapter>
