[html-utilities] gnc:owner-report-text can accepts enddate

This commit is contained in:
Christopher Lam
2020-08-15 16:19:37 +08:00
parent 9ec5c86f55
commit 5e0340560a

View File

@@ -94,7 +94,7 @@
(else
""))))
(define (gnc:owner-report-text owner acc)
(define* (gnc:owner-report-text owner acc #:optional date)
(let* ((end-owner (gncOwnerGetEndOwner owner))
(type (gncOwnerGetType end-owner)))
(gnc-build-url
@@ -105,6 +105,7 @@
((eqv? type GNC-OWNER-EMPLOYEE) "owner=e:")
(else "unknown-type="))
(gncOwnerReturnGUID end-owner)
(if date (format #f "&enddate=~a" date) "")
(if (null? acc) "" (string-append "&acct=" (gncAccountGetGUID acc))))
"")))