Source:
An example of the implementation of Sales Invoice Document in the 1C configuration:
You can Download*.dt file to develop your own application.
Also, you can study the instructions for developing this example from scratch using 1C:Enterprise platform.