mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix fancy invoice report. Bug #341046.
Also, liberalize gnc:html-table-append-row! to accept a non-list argument. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13985 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
227f13e913
commit
3ed9be95ba
@ -843,8 +843,8 @@
|
||||
(set! date-table (make-date-table))
|
||||
;; oli-custom - moved invoice number here
|
||||
(gnc:html-table-append-row!
|
||||
date-table (sprintf #f (_ "Invoice # %d")
|
||||
(gnc:invoice-get-id invoice)))
|
||||
date-table (list (sprintf #f (_ "Invoice # %d")
|
||||
(gnc:invoice-get-id invoice))))
|
||||
(make-date-row! date-table (_ "Invoice Date") post-date)
|
||||
(make-date-row! date-table (_ "Due Date") due-date)
|
||||
date-table)
|
||||
|
@ -349,7 +349,9 @@
|
||||
(let* ((dd (gnc:html-table-data table))
|
||||
(current-num-rows (gnc:html-table-num-rows table))
|
||||
(new-num-rows (+ current-num-rows 1)))
|
||||
(set! dd (cons newrow dd))
|
||||
(if (list? newrow)
|
||||
(set! dd (cons newrow dd))
|
||||
(set! dd (cons (list newrow) dd)))
|
||||
(gnc:html-table-set-num-rows-internal!
|
||||
table
|
||||
new-num-rows)
|
||||
|
Loading…
Reference in New Issue
Block a user