[freeside] Customising Invoice

ivan ivan at 420.am
Tue Aug 7 17:02:39 PDT 2001


On Tue, Aug 07, 2001 at 01:01:20PM -0400, Rob Spurlock wrote:
> Hello folks.  I have Freeside up and running and with a few tweaks
> and twists it seems to be running fine.  I have a question and any
> help would be great.  In creating an invoice, I would like to
> customize it to show the Customer's Name (not just company name) and
> Account Number.
> 
> I see there is a place that spits out:
> { $address[0]; }
> { $address[1]; }
> { $address[2]; }
> { $address[3]; }
> { $address[4]; }
> { $address[5]; }
> 
> But it only includes a company name, attention and city, state, zip. 
> It will not show the customers name.  I tried adding the string for
> custnum and first last but nothing works.  Anyone help with this bit
> of code?

Variables for invoice templates are setup in FS::cust_bill::print_text,
under the comment

  #setup template variables

The name that gets stuffed into the @address array is the payname field of
cust_main - from the UI perspective, the field under "Name on card" for
CARD billing or "Attention" for BILL billing.

-- 
meow
_ivan



More information about the freeside-users mailing list