mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-25 23:50:06 -05:00
The lot scrubber should exclude stock-split splits.
This commit is contained in:
1 parent
0aac4438e7
commit
b1efe0763c
1 file changed
+11
@@ -68,6 +68,9 @@ restart_loop:
|
||||
{
|
||||
/* If already in lot, then no-op */
|
||||
if (split->lot) continue;
|
||||
|
||||
/* Skip stock splits */
|
||||
if (xaccSplitIsStockSplit(split)) continue;
|
||||
|
||||
/* Skip voided transactions */
|
||||
if (gnc_numeric_zero_p (split->amount) &&
|
||||
@@ -116,6 +119,14 @@ xaccLotFill (GNCLot *lot)
|
||||
return; /* Handle the common case */
|
||||
}
|
||||
|
||||
/* Reject stock split transactions */
|
||||
if (xaccSplitIsStockSplit(split))
|
||||
{
|
||||
LEAVE ("Stock split transaction (lot=%s, acc=%s)",
|
||||
gnc_lot_get_title(lot), xaccAccountGetName(acc));
|
||||
return;
|
||||
}
|
||||
|
||||
/* Reject voided transactions */
|
||||
if (gnc_numeric_zero_p(split->amount) &&
|
||||
xaccTransGetVoidStatus(split->parent))
|
||||
|
||||
Reference in new issue
Block a user