If you did not have any employment contract, you were an employee at will. As an employee at will, you could be terminated at any time, for any reason, without prior notice, regardless of where you stood towards earning a commission or fulfilling a quota. You may be right about why your company did this, but that does not matter: they were legally allowed to.