When will the stock buy the commission?

By huanggs
When will the stock buy the commission that is traded, will it be automatically withdrawn if the transaction is not sold?