On Thu, Mar 18, 2010 at 09:01:10PM -0400, Luke wrote: > If an invoice is posted unpaid, and is later paid via cash -> receipt, > should the invoice show payments? Yes it should and in my version it does, even for part-paid invoices. > I paid two invoices with a single receipt. > > The PDF invoice indicates "paid", but where it would list the payments, it > has the table with no payment data. > > The code is this: > > invoice.tex: 168,180: > > <?lsmb if paid_1 ?> > ..hidden..@{}} > \textbf{Payments} & & & \\ > \hline > \textbf{Date} & & \textbf{Source} & \textbf{Amount} \\ > <?lsmb end paid_1 ?> > <?lsmb foreach payment ?> > <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb payment ?> \\ > <?lsmb end payment ?> > <?lsmb if paid_1 ?> > \end{tabularx} > <?lsmb end paid_1 ?> <?lsmb if paid ?> ..hidden..@{}} \textbf{Payments} & & & \\ \hline \textbf{Date} & \textbf{Account} & \textbf{Source} & \textbf{Amount} \\ <?lsmb end paid ?> <?lsmb foreach payment ?> <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb payment ?> \\ <?lsmb end payment ?> <?lsmb if paid ?> \end{tabularx} <?lsmb end paid ?> So the difference is my "if" conditions relate to "paid" rather than "paid_1". Not sure quite what that means for the code, but it seems to work for me (on 1.2.20). HTH, Pete -- Openstrike - improving business through open source http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107
Attachment:
pgprxI6mdRZTM.pgp
Description: PGP signature