Skip to content

Commit

Permalink
[investment-lots] ST/LT grouping option enables LT gain option
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Dec 24, 2022
1 parent 552bc17 commit 1f2b588
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gnucash/report/reports/standard/investment-lots.scm
Expand Up @@ -248,15 +248,19 @@
(N_ "Show unrealized gain table column(s) for unsold shares")
#t)

(gnc-register-multichoice-option options
(gnc-register-multichoice-callback-option options
pagename-columns
optname-group-gains-by-age
"h"
(N_ "Group gains (and sales?) by long-term (LT) and short-term (ST)")
"gains-only"
(list (vector 'no (N_ "No"))
(vector 'gains-only (N_ "Gains Only"))
(vector 'gains-and-sales (N_ "Gains and Sales"))))
(vector 'gains-and-sales (N_ "Gains and Sales")))
(lambda (x)
(gnc-optiondb-set-option-selectable-by-name
options pagename-columns optname-long-term-years
(not (eq? x 'no)))))

;; Note: Different governments may have different rules regarding how long
;; shares must be held to qualify for different tax treatment. So make
Expand Down

0 comments on commit 1f2b588

Please sign in to comment.