Split document in sale/purchase subdocuments