issue #23646: can not save purchase order

Some missing columns in ORM's and typos in the model. Can't see the need for test here as this shouldn't happen again.