Skip to content

Commit

Permalink
REFACTOR: Simplify Trans Number handling
Browse files Browse the repository at this point in the history
Previously there was a check for the presence of "Trans Number".
But if 'use-split-action' the options will always contain
the toggle 'Trans Number'. Therefore remove unnecessary check.
  • Loading branch information
christopherlam committed Dec 23, 2017
1 parent 8044f2b commit 68aa61a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gnucash/report/standard-reports/transaction.scm
Expand Up @@ -745,9 +745,7 @@ Credit Card, and Income accounts."))))))
(_ "Reconciled Date"))
(add-if (column-uses? 'num columns-used)
(if (and (qof-book-use-split-action-for-num-field (gnc-get-current-book))
(if (gnc:lookup-option options gnc:pagename-display (N_ "Trans Number"))
(opt-val gnc:pagename-display (N_ "Trans Number"))
#f))
(opt-val gnc:pagename-display (N_ "Trans Number")))
(_ "Num/T-Num")
(_ "Num")))
(add-if (column-uses? 'description columns-used)
Expand Down

0 comments on commit 68aa61a

Please sign in to comment.