Self employed

Thank you @RobertB4444 . Just to clarify the S corp does have a cap gain. And so I'm thinking that when it flows thru K1 to personal 4797/Sch D that it will allow the -$30K Cap Loss carryover  to offset the $23K Cap Gain, reducing 1040, Ln 7 and ultimately AGI. Am I understanding that correctly? 

Thanks again.