[freeside] no invoice_lines() functions in template?

David david at jetrentals.co.nz
Thu Mar 13 20:15:02 PST 2003


Thanks for the comments Mike,

I have included below the details from the template I used. They look 
almost identical.

I've checked to make sure that my copy of Text::Template is up to date 
and it is. Any other ideas, as I'm stuck!

It's 5pm Friday on this side of the world so I will brood on it over the 
weekend.

-David.


                                 Invoice
                                 { substr("Page $page of 
$total_pages          ", 0, 19); } { u
se Date::Format; time2str("%x", $date); }  FS-{ $invnum; }


Ivan Kohler
1339 Hayes St.
San Francisco, CA  94117


{ $address[0]; }
{ $address[1]; }
{ $address[2]; }
{ $address[3]; }
{ $address[4]; }
{ $address[5]; }

{
  join("\n",
    map {
      my ( $desc, $price ) = @{$_};
      "  ". substr( $desc. " "x65, 0, 65). " ". substr( $price. " "x11, 
0, 11);
    } invoice_lines(31)
  );
}

 -=> Freeside - open-source billing for ISPs - 
http://www.sisd.com/freeside <=-





Mike wrote:

>
>Make sure the following is included...particularly the invoice_lines
>section. And make sure it is "contained" with the correct syntax.
>Hope this helps.
>------------start---------
>{
>  join("\n",
>    map {
>      my ( $desc, $price ) = @{$_};
>      "  ". substr( $desc. " "x60, 0, 60). " ". substr( $price. " "x11, 0,
>11);
>    } invoice_lines(21)
>  );
>}
>----------end----------
>Mike
>ORCA-NET
>
>  
>




More information about the freeside-users mailing list