It really depends on where you live, regarding this 2nd company and the laws regarding employment. Usually companies cannot withhold salary, even if you quit. Maybe commissions are different, if that was your situation, or maybe it was stated in your letter - which they assumed you agreed to since you showed up to work. You might want to follow up with them on the salary issue, if it's worth it to you. —
user70848 2 mins ago