Invoicing settings must be configured at first, otherwise the module will not work correctly.
In order to do this, go to Settings > Billing and Invoicing
Once you access this section, you will see the following options:
Lets look into them one by one