phpb2b is an opensource b2b script.