only amount

ST smntov at
Tue Mar 6 07:00:48 EST 2012

another question - where and how should I define this function? Now I
place at the beginning of taxinvoice.eguile.scm and here is the error
that I get:

An error occurred when processing the template:

ERROR: In procedure memoization:
ERROR: In line 30: Mixed definitions and expressions in (define-public (fmtmoneyNoCurrency curr amt) (nbsp (gnc:monetary->string (gnc:make-gnc-monetary curr amt)))).
In current input:
   4: 54* (let* ((x 42)) (define-public (fmtmoneyNoCurrency curr amt) (nbsp #)) ...)

thank you,

On Tue, 2012-03-06 at 13:05 +0200, ST wrote:
> Hi,
> how do I rewrite following function, so that it outputs only ammount,
> without currency?
> (define-public (fmtmoney curr amt)
>   ;; Format a monetary amount in the given currency as HTML
>   (nbsp (gnc:monetary->string (gnc:make-gnc-monetary curr amt)))) 
> thank you
> ST

More information about the gnucash-devel mailing list