guile-2.0

2012-02-03 Thread rbibr...@t-online.de

Hello,
as reported in one of my earlier mails I have build a working gnucash
(opensuse 12.1, guile 2). but starting a report  is still impossible.
Today I tried it again in the console and got this message:

ERROR: In procedure hash-fold: Wrong type argument in position 3
(expecting hash-table): #(((bgcolor . #f6ffdb)))

this seemed to be in file html-document.scm line 292

actually I do not now if this is indeed an error in this file or one of
the new guile-2 things. ???

RBB



___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: guile-2.0

2012-02-03 Thread Geert Janssens
Op vrijdag 3 februari 2012 13:15:32 schreef rbibr...@t-online.de:
 Hello,
 as reported in one of my earlier mails I have build a working gnucash
 (opensuse 12.1, guile 2). but starting a report  is still impossible.
 Today I tried it again in the console and got this message:
 
 ERROR: In procedure hash-fold: Wrong type argument in position 3
 (expecting hash-table): #(((bgcolor . #f6ffdb)))
 
 this seemed to be in file html-document.scm line 292
 
 actually I do not now if this is indeed an error in this file or one of
 the new guile-2 things. ???
 
This is also where I stranded so far on Fedora 16, with test packages for 
Guile 2.0 installed.

My guile knowledge is too limited to understand this well. The gnucash code 
has a definition for the hash-table procedure. But this should only be 
triggered for guile 1.8 and older.

Guile 2.0 has its own definition of hash-table. Perhaps these definitions are 
not compatible ? I mean, the gnucash guile code was written for guile 1.6 and 
1.8. So perhaps GnuCash interprets hash-table differently in terms of 1.8 
while the 2.0 definition may be slightly different ?

From what I could read in the guile 2.0 manual it doesn't seem like that.

Geert
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: No vendor/customer address on printable invoice in trunk

2012-02-03 Thread Mike Evans
On Thu, 2 Feb 2012 22:48:29 +
Mike Evans mi...@saxicola.idps.co.uk wrote:

 On Thu, 02 Feb 2012 11:39:14 -0500
 Bob Brush gnuc...@wvit.net wrote:
 
  On 02/01/2012 12:02 PM, Mike Evans wrote:
   In SVN trunk, I've just noticed that the printable invoice
   (invoice.scm) doesn't have the customer's details, same with
   bills.  Not sure when this first occurred as I've not printed an
   invoice for a while. :(
  
   Tax invoice works fine.
  
  
   Mike Evans
   ___
   gnucash-devel mailing list
   gnucash-devel@gnucash.org
   https://lists.gnucash.org/mailman/listinfo/gnucash-devel
  I saw this behaviour happen once before, I had sent a request to 
  investigate on Dec 11, but by Dec 12 it was fixed, so I didn't
  worry about it any more.  I was kind of waiting to see what would
  happen.
  
 
 Thanks for that Bob.
 
 That may help to narrow down the error.  I didn't see
 any mention in the mailing lists however.
 
 Mike E
 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Committed fix in r21930.

Mike
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: r21930 - gnucash/trunk/src/report/business-reports - Restore missing customer|vendor in printable invoice.

2012-02-03 Thread Geert Janssens
Op vrijdag 3 februari 2012 08:16:23 schreef Mike Evans:
 Author: mikee
 Date: 2012-02-03 08:16:23 -0500 (Fri, 03 Feb 2012)
 New Revision: 21930
 Trac: http://svn.gnucash.org/trac/changeset/21930
 
 Modified:
gnucash/trunk/src/report/business-reports/invoice.scm
 Log:
 Restore missing customer|vendor in printable invoice.
 
 Modified: gnucash/trunk/src/report/business-reports/invoice.scm
 ===
 --- gnucash/trunk/src/report/business-reports/invoice.scm 2012-02-03
 11:13:53 UTC (rev 21929) +++
 gnucash/trunk/src/report/business-reports/invoice.scm 2012-02-03 13:16:23
 UTC (rev 21930) @@ -668,6 +668,7 @@
 
  (if (not (null? invoice))
   (begin
 +  (set! owner (gncInvoiceGetOwner invoice))
 (let ((type (gncInvoiceGetType invoice)))
   (cond
 ((eqv? type GNC-INVOICE-CUST-INVOICE)
 
Ah, that line seems to have gone lost in my commit 21575. Thanks for spotting 
it. I have additionally committed a fix for the easy invoice, which I broke 
similarly in r21551.

Geert
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: guile-2.0

2012-02-03 Thread rbibr...@t-online.de

-Original Message-
Date: Fri, 03 Feb 2012 13:36:58 +0100
Subject: Re: guile-2.0
From: Geert Janssens janssens-ge...@telenet.be

This is also where I stranded so far on Fedora 16, with test packages
for 
Guile 2.0 installed.

My guile knowledge is too limited to understand this well. The gnucash
code 
has a definition for the hash-table procedure. But this should only be 
triggered for guile 1.8 and older.

Guile 2.0 has its own definition of hash-table. Perhaps these
definitions are 
not compatible ? I mean, the gnucash guile code was written for guile
1.6 and 
1.8. So perhaps GnuCash interprets hash-table differently in terms of
1.8 
while the 2.0 definition may be slightly different ?

From what I could read in the guile 2.0 manual it doesn't seem like
that.

Geert

according to the manual guile provides two types of hashtables one
abstract type and one vectorlike type. May be that mixing both types
was allowed in guile 1.8 but not longer in 2.0

In file html-style-info.scm a vector type table was created. The lines
for the abstract type are outcommented. May be that the hanging
hash-fold should be replaced by a construction similare to kvt-fold.???

Rudolf



___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Invoice printing, table formatting.

2012-02-03 Thread Mike Evans
Hi all

In an effort to improve the look of the printable invoice I've
changed some of the table setting in invoice.scm near line 707 to:

  (gnc:html-table-set-style!
   table table
   'attribute (list border 1)
   'attribute (list cellspacing 0)  
'attribute (list STYLE=\border-collapse: collapse;\) 
'attribute (list cellpadding 2))

which, on screen, removes the double line table border.  It's the
border-collapse bit that's important here.  However, on printing to
actual paper I still don't get nice thin hard line cell borders.  My
question is why and where during the printing process does the
formatting get altered? 

Exporting to html and subsequent printing from a
browser retains the correct formatting.

Mike E
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


commit #21848 for htdocs: Fix facebook like button

2012-02-03 Thread Cristian Marchi
I've noticed that the commit #21848[1] commit broke the validation of 
the gnucash website. I don't really know what it does but I remember 
I've used that code because it was adviced (browsing the internet) to do 
so for validation purpose. While working with the website I've always 
aimed to have it validated (XHTML+RDFa as of now) but I don't really 
know if it is of any use.


Regards
Cristian

[1] 
http://svn.gnucash.org/trac/changeset?reponame=new=21848%40htdocs%2Ftrunkold=21769%40htdocs%2Ftrunk

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel