Saved Reports in 2.4.2 - customer report changed

Elizabeth Dodd edodd at billiau.net
Thu Mar 10 15:07:17 EST 2011


On Tue, 1 Mar 2011 09:04:38 +1100
Elizabeth Dodd <edodd at billiau.net> wrote:

> On Mon, 28 Feb 2011 22:11:30 +1100
> Elizabeth Dodd <edodd at billiau.net> wrote:
> 
> > I have used saved reports since v1.8
> > I updated gnucash (once only) 
> > ==============
> > Commit Log for Sun Feb 20 16:11:11 2011
> > 
> > 
> > Upgraded the following packages:
> > gnucash (1:2.2.9-11) to 1:2.4.2-1
> > gnucash-common (1:2.2.9-11) to 1:2.4.2-1
> > ===============
> > 
> > I converted the saved reports which were missing the correct
> > customer from 2.2 to 2.4
> > I used the reports, and closed as usual.
> > 
> > and today they are changed into
> > Vendor reports
> > the reports based on Transaction reports are unaffected.
> > 
> > GnuCash 2.4.2
> > Built 2011-02-13 from r20253M
> > 
> > 
> > from .gnucash/saved-reports-2.0
> > ==================
> > 
> > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> > ;; Options for saved report "Graham's account", based on template
> > "Customer Report" (let ()
> >  (define (options-gen)
> >   (let ((options (gnc:report-template-new-options/name "Customer
> >   Report")))
> > 
> > 
> > from .gnucash/saved-reports-2.4
> > ===========================
> > 
> > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> > ;; Options for saved report "Graham's account", based on template
> > "d7d1e53505ee4b1b82efad9eacedaea0" (let ()
> >  (define (options-gen)
> >   (let ((options (gnc:report-template-new-options/report-guid
> >   "d7d1e53505ee4b1b82efad9eacedaea0" "Vendor Report")))
> > _______________________________________________
> 
> a little fiddling this morning finds that
> hand editing the saved-reports-2.4 results in the file not being
> recognised and the 'update' process started again
> This time I noted that the edit options for a customer report were
> really the edit options for a vendor report, except it was accessing
> the customer list, so I was able to choose a customer.
> 
> so far, only making new reports and removing the old seems to work.
> _______________________________________________
>
Today I start by opening a customer report again
and while it does say "Customer Report" it then says "No valid customer
selected. Click on the Options button to select a customer."
This is a section from my saved-reports file
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Options for saved report "Adrian", based on template
"c146317be32e4948a561ec7fc89d15c1" (let ()
 (define (options-gen)
  (let ((options (gnc:report-template-new-options/report-guid
"c146317be32e4948a561ec7fc89d15c1" "Customer Report")))

; Section: __reg


; Section: Display Columns

(let ((option (gnc:lookup-option options
                                 "Display Columns"
                                 "Description")))
  ((lambda (option) (if option ((gnc:option-setter option) #f)))
option))


; Section: General

(let ((option (gnc:lookup-option options
                                 "General"
                                 "Report name")))
  ((lambda (option) (if option ((gnc:option-setter option) "Adrian")))
option))

(let ((option (gnc:lookup-option options
                                 "General"
                                 "Customer")))
  ((lambda (option) (if option ((gnc:option-setter option) '(2 .
"00000000000000000000000000000000")))) option))

(let ((option (gnc:lookup-option options
                                 "General"
                                 "To")))
  ((lambda (option) (if option ((gnc:option-setter option) '(relative .
today)))) option))

  options))
 (gnc:define-report 
  'version 1
  'name "Adrian"
  'report-guid "9d87b771cdf8b230d1b82139a7300660"
  'parent-type "c146317be32e4948a561ec7fc89d15c1"
  'options-generator options-gen
  'menu-path (list gnc:menuname-custom)
  'renderer (gnc:report-template-renderer/report-guid
  "c146317be32e4948a561ec7fc89d15c1" "Customer Report")))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

can anyone explain this very irritating situation?


More information about the gnucash-user mailing list