fix for tax report warning

Richard -Gilligan- Uschold uschold@cs.ucf.edu
Mon, 20 Nov 2000 17:09:41 +0000


This is a multi-part message in MIME format.
--------------3D523237236D11CA3460C759
Content-Type: multipart/alternative;
 boundary="------------B9936A5ECC36B86735966812"


--------------B9936A5ECC36B86735966812
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Here is the fix for the tax report warning:

gnucash: [W] "gnc:run-report - "#<unspecified>" is the wrong type."

I hadn't seen this warning recently, because I hadn't run gnucash from
the command line recently, though I have seen it in the past.  When I
ran from the command line, the warning showed up every time I ran the
report.  It's caused by an "if" without an "else" that returns the
#<unspecified> type.  For "if's" that directly return data that is sent
to the report, these "else's" should return a null list or null string.

This diff is from the last patch I sent and contains only diffs for
three files.

taxtxf.scm
xacc-hierarchical-report.html
xacc-txf-export-report.html


--

Gilligan            |                    __o           .oooO
                   /|                  _ \<,_          (   )
                  /p|\                (_)/ (_)          \ (   Oooo.
                 /  | \             ------------         \_)  (   )
                ========                                       ) /
                 ========       gilligan@mpinet.net           (_/
             ~~~~~~~~~~~~~~~~   uschold@cs.ucf.edu



--------------B9936A5ECC36B86735966812
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
Here is the fix for the tax report warning:

gnucash: [W] "gnc:run-report - "#<unspecified>" is the wrong type."

I hadn't seen this warning recently, because I hadn't run gnucash from the command line recently, though I have seen it in the past.  When I ran from the command line, the warning showed up every time I ran the report.  It's caused by an "if" without an "else" that returns the #<unspecified> type.  For "if's" that directly return data that is sent to the report, these "else's" should return a null list or null string.

This diff is from the last patch I sent and contains only diffs for three files.

taxtxf.scm
xacc-hierarchical-report.html
xacc-txf-export-report.html
 

-- 

Gilligan            |                    __o           .oooO
                   /|                  _ \<,_          (   )
                  /p|\                (_)/ (_)          \ (   Oooo.
                 /  | \             ------------         \_)  (   )
                ========                                       ) /
                 ========       gilligan@mpinet.net           (_/
             ~~~~~~~~~~~~~~~~   uschold@cs.ucf.edu
  --------------B9936A5ECC36B86735966812-- --------------3D523237236D11CA3460C759 Content-Type: application/octet-stream; name="gnucash.diff-1.4.8a.gz" Content-Transfer-Encoding: x-uuencode Content-Disposition: attachment; filename="gnucash.diff-1.4.8a.gz" begin 660 gnucash.diff.gz M'XL(",Y3&3H"`V=N=6-A,Q$L,1KY0"1;HZ6=Z>OI5 MO(!A%$O`?PPRIH((QB*'25H$3$:VYW2=GIWR&2@!118RQ2%6].$1HKW_`O#? M4`#+LN0!%-%JQ@%^?3>\N@%O`)=1&.(Z6R@>O.9C,G0X@3B*E[>7-Q[;)"12*7[C]$Q-+/ M/R,K2Z6[T,*>.P^.8KDS^8,V9.S!1@+9_W7[H0D'\P.0D2B2$$8M\GTGM?60'A\/ON`J#6G]FYRSZ0@!].6^N76C ME45O8^B-22)FTMP-X_$8[`(.'GF?&XK`C=0T<2_=.0L".XIYSN@L`I;8.<]$ MKARZ?[!!N%U?>O]]&O+Y`)S:(ONV;3\#OG>'[G8MOH+7`Z\]:)\..EUHMUJM M_:.CHV?QX+%HGCYXWJ!U/.B>&IXW;\#V6LU3.-+O;][L`\"9&W$6GNO+D0@? M]!7`ODWO9Y%W_O>5=>`B"$21*KC5ZZ&L=[Y_]!12KD$-M7X_BZ<3N+N]?&7% M4XPWU^Q@;5=.EDXLN/@P?&4%21SZ\4)(CD M"0851[T8[DFA-CE/M&8+=I93[,DL80]$Z*#'.FE/"7EM-JP5>6%%P^ M0KTU!.:*9BD1HO,43H M#1@:Z(&Z8%A_3=2/%M4RZ[]6LZ(QH445N%P**R46MAC]P0'X-$:J(I<<AI5K6.0C0:D#2W>(U0O#'NOI8N6PW!PY)R?6Y(%66:.YYSR3 M.E_H(*C:D(323WF]X)--L@&NLUA7%E.Y4`B#Y)$$YIX)5]0.G+E9F9^?L($& MP>+\+Y:4V",A8)$>Z2M2P&1?P#Q*(:H[C?+V\O!5@37`>"2=4ZJ[$0[6<#Z& M*_TU]C6QLE;7T/F#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