Todays date format in invoice

Erik Haagensen erik.haa at gmail.com
Tue Jan 24 12:55:32 EST 2012


> Understood.  The "make-date-row!" is formatting the table at the top
> where it says e.g. "Due Date: ...." which is where I think you're having
> your issue.

> Oh, wait..  the Today Date.  That's set in the Report Options, on the
> Display page.  However, it should default to the format you have set in
> File -> Properties, provided you create and run the report after you set
> that Property.

I've set up the Files->Properties->Business->Date format
correct and in advance.
Fancy date format-> Custom-> %d.%m.%Y
Like this:
http://www.bokbinding.no/wp-content/uploads/2012/01/24.01.2012-18_36_16.png

Then I run the invoice print report
and the date is not like formatted as described above.
It's like this:
http://www.bokbinding.no/wp-content/uploads/2012/01/24.01.2012-17_59_36.png

I can change that however, by typing in the format I wish it to be like.
I have to do this in the Print Invoice window - selecting Alternatives->
Show-> Todays Date Format  -
Like in this dialog box:
http://www.bokbinding.no/wp-content/uploads/2012/01/24.01.2012-18_37_02.png

and change to %d.%m.%Y



2012/1/24 Derek Atkins <warlord at mit.edu>

> Erik Haagensen <erik.haa at gmail.com> writes:
>
> >> Which invoice report do you use?  Take a look at the definition of
> >> make-date-row! in that invoice report .scm file to see how it formats
> >> the date.
> >
> > .smc files !!!
>
> .scm, not .smc
>
> > Now I'm moving into a scary landscape !
> > Well - I use invoice.scm
>
> Okay, so you use the Printable Invoice.  Okay.
>
> > and this is what I find searcing for make-date-row:
> >
> > (define (make-date-row! table label date)
> >   (gnc:html-table-append-row!
> >    table
> >    (list
> >     (string-append label ": ")
> >     (string-expand (gnc-print-date date) #\space " "))))
> >
> > When I see the word "row" i get a little suspicious about if there is a
> > misunderstanding here.
>
> Nope, no misunderstanding.
>
> > Alle the rows in the invoice have correctly formatted dates.
> > I's the date that is below the section with my company name and address
> that's
> > wrongly formatted.
> >
> > All dates else are correct.
>
> Understood.  The "make-date-row!" is formatting the table at the top
> where it says e.g. "Due Date: ...." which is where I think you're having
> your issue.
>
> Oh, wait..  the Today Date.  That's set in the Report Options, on the
> Display page.  However, it should default to the format you have set in
> File -> Properties, provided you create and run the report after you set
> that Property.
>
> -derek
> --
>       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>       Member, MIT Student Information Processing Board  (SIPB)
>       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>       warlord at MIT.EDU                        PGP key available
>



-- 
mvh
Erik Haagensen

Oslia
NO-2550 Os i Østerdalen
tlf: +47 94430332
http://www.bokbinding.no
Kart<http://maps.google.no/maps/ms?msa=0&msid=218325836997074322353.000486e53d1fbcaa77b09&ie=UTF8&ll=62.504671,11.175585&spn=0.027897,0.077162&z=14>


More information about the gnucash-user mailing list