thanks, although i know about server scripts but do to lack of debuging tools i didnt want to make any customization and wanted to use build in solutions, i will check it out, thanks
Server scripts use the regular error logging process, so you can spot problems in production. In development, I believe you can use all the regular debugging tools you would use for other server-side code.
Generating a purchase order from a sales order is somewhat unusual as use-case, so I doubt it will ever be built in. It’s a pretty easy customization to implement, though.