Fixed purchasing order  not being created because of no vendor code.