[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lsmb department template variable



On Tue, Feb 16, 2010 at 1:47 PM, Luke <..hidden..> wrote:
> If I use:
>
> <?lsmb department ?>
>
> in a template (at least, an HTML template--presumably others as well), I
> get the name of the department, two dashes, and a 5 digit number which
> looks very much like an ID which the customer should not be seeing.
>
> Is there a way to pull just the name of a department?

A line similar to the following somewhere in LedgerSMB/IS.pm (sub
invoice_detail) should sort out this issue:

$form->{department} = split /--/, $form->{department};

This is just a hint. Adjust as required.

Regards
Armaghan

--
- Sql-Ledger hosting, docs and development
- http://www.ledger123.com/