mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[new-aging] replace split->lot->split->lot with split->lot
remove unnecessary call to get earliest-split
This commit is contained in:
@@ -193,7 +193,7 @@ exist but have no suitable transactions."))
|
|||||||
;; simpler version of gnc:owner-from-split. must be gncOwnerFree after
|
;; simpler version of gnc:owner-from-split. must be gncOwnerFree after
|
||||||
;; use! see split-has-owner? above...
|
;; use! see split-has-owner? above...
|
||||||
(define (split->owner split)
|
(define (split->owner split)
|
||||||
(let* ((lot (xaccSplitGetLot (gnc-lot-get-earliest-split (xaccSplitGetLot split))))
|
(let* ((lot (xaccSplitGetLot split))
|
||||||
(owner (gncOwnerNew))
|
(owner (gncOwnerNew))
|
||||||
(use-lot-owner? (gncOwnerGetOwnerFromLot lot owner)))
|
(use-lot-owner? (gncOwnerGetOwnerFromLot lot owner)))
|
||||||
(unless use-lot-owner?
|
(unless use-lot-owner?
|
||||||
|
|||||||
Reference in New Issue
Block a user