XAPM-23 Modify salesorder amount field from long to integer, misc: remove unnecessary template