Sales tab logic fixes