Investors & landlords

Isn’t ac1099 B is still valid for the time period that the person who may have sold shares when alive. So if they received a gain and 1099 DIV  shows 1a and 1b which is reported on final 1040 is taxed from individual . So how does the cash from that sale get tracked.