BJ's Wholesale Club delivered one of the biggest earnings beats of the season on Friday — and Wall Street sent the stock down anyway. The warehouse club reported adjusted earnings of $1.73 a share, far above the $1.26 analysts expected, on revenue of $6.28 billion that also cleared forecasts, according to Barron's. Net income rose 44% to $219.5 million.

The catch is buried inside the numbers. BJ's said the quarter included a roughly $240 million benefit from settling litigation over credit-card interchange fees, partly offset by about $95 million in related expenses. Strip that out, and the underlying beat looks far less dramatic — which is exactly why investors focused on the quality of the earnings rather than the headline. JPMorgan analysts said the figure required some "math olympics" to unpack: after adjusting for merchandise-margin investments, selling and administrative expense benefits, and a sale-leaseback gain, the bank estimated earnings were closer to $1.20 a share.

The margin story didn't help. Merchandise margin fell 170 basis points as BJ's spent heavily on promotions during its birthday celebration, and comparable club sales excluding gasoline rose 4.1% — ahead of the 2.9% expected, but not enough to offset the margin pressure. Shares fell 7.1% in premarket trading to $102.85, and were still down about 3.8% at $106.50 in late-morning trading, per the Wall Street Journal.

Management, for its part, is acting like the quarter was a win. BJ's raised its full-year adjusted earnings outlook to $5.10 to $5.30 a share, up from $4.60 to $4.80, and lifted the low end of its comparable-sales guidance. The problem is the bar: the stock was hovering near a 19-month high and had risen for ten consecutive weeks heading into the report, so a beat that needed a settlement to get there was never going to be enough.

What to watch: whether the promotional spending that dented margins actually buys lasting traffic — and whether the raised guidance, which management presumably built on the cleaner run-rate rather than the settlement, survives contact with a fourth quarter that has no $240 million windfall in it.

— via Barron's