corrected syntax error
Reworked creation of purchaseOrder into the refactoring schema
parameter handling