The lot scrubber should exclude stock-split splits.

This commit is contained in:
Sherlock authored and John Ralls committed 2026-07-14 14:19:24 -07:00
1 parent 0aac4438e7
commit b1efe0763c
1 file changed
+11
+11
View File
@@ -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))