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 ?>
> \begin{tabularx}{10c...@{}lxlr@{}}
>    \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 ?>
\begin{tabularx}{10c...@{}lxlr@{}}
  \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: pgpCAnNbj6xWW.pgp
Description: PGP signature

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ledger-smb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users

Reply via email to