[lms] Need help with auto invoice creation