Skip to content

Commit

Permalink
explain further reasons for the error
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Feb 4, 2025
1 parent f6b9416 commit b888a49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions collections/_documentation/invoices.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,11 @@ Find out more about PHPWord templates [here](https://phpword.readthedocs.io/en/l

Spreadsheet templates are powered by [PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet).

**Important:** within the first 100 rows you MUST-HAVE the template row for timesheet entries, which means there must be
a value starting with `${entry.` in one of the first 10 columns, otherwise no timesheet records will be rendered!
**Important:** within the first 100 rows of the **active spreadsheet** you MUST-HAVE the template row for timesheet entries, which means there must be
a value starting with `${entry.` in one of the first 10 columns, otherwise no timesheet records will be rendered.

If you don't have that, you will see the error `Invalid invoice document, no template row found.`.
This error might also happen if you have multiple sheets in your spreadsheet, and save the file while the active sheet is one without the `${entry.` placeholder.

_Check the default templates if that doesn't make sense to you ;-)_

Expand Down

0 comments on commit b888a49

Please sign in to comment.