Some parameters like basketnumber, frameworkcode and boookseller are not passed to neworderempty causing an error when saving the order.
Created attachment 3985 [details] [review] proposed patch
Pushed, please test