Hello Pavel,
I suggest you raise a new post and cross-link to this one.
1) People are more likely to see a new post, rather than an update against one two years old.
2) You can spell your requirements out a bit more, which are unlikely to be the same as the original poster here, who almost certainly could only achieve the detailed parts of the requirements by writing custom SPL code triggers.
Thanks, Kyle_R.