TWIG-templates are slow or even not finished

Hey guys,

Twig let me run into sleeples nights – literally!

I’ve made a twig-template for listing project-tasks and -time-logs. The preview in the (React-) editor are “O.K.” – at least they still react to changes in the code. But when I try to run a template on a project, the processing won’t come to its end. It’s just working and working and working … (last try was about more than 6 hours without any result).

Can you give me a special developer-advice for the best practice here?

Thanks for your never ending motivation!

Greetz

Schmitti

(Edited because I didnt RTFM! Sorry!)

Hi,

Are you seeing any errors?

Hi, @hillel,

no there are no errors at all.

Funny: I’m running my (docker-) server now not as a daemon, so I can see the input- and output-messages (but not in debug-mode). However, I’ve made a lot of changes to my template like outcommenting nearly everything, but the template still fails.

Are there any known issues about project-templates?

Oh, and another question:

What is meant with “statements” → statement-templates

I don’t get what’s meant with it and what’s the difference to other templates.

EDIT:
Here’s the server-output when I start running the template on projects:

app-1     |   2024-08-02 09:21:58 App\Services\Template\TemplateAction ........... RUNNING
app-1     |   2024-08-02 09:21:58 App\Services\Template\TemplateAction ..... 449.24ms FAIL

And I put the server in debug-mode now … :-/

I suggest removing as much as needed to make it run again to try to debug where it’s failing.

The statement templates are for client statements which are slightly different than other kinds of templates.

Yes, that’s how I’m proceeding since 9:00 today. But whatever I’m outcommenting, the template always fails. Weird.

Can you please explain me what is meant with “statement” or “client statement” in this context? I still don’t get it, sorry.

In the app there are two main types of PDFs which can be generated: invoices and statements.

I suggest using the app to generate both types to review the differences.

I’m sorry, I don’t find where to use the option to use the statement. In the invoice-designer I’ve found the option to set up the standard-statement-template, but where is it used?

I’m generally using the desktop-app. When I’m on Invoices I can click on “show pdf” and then otptionally choose printing a “delivery note”. Where is this statement-thing in German?

In the desktop app you can view statements using the client’s action menu.

Ahhh, it’s the “Bericht”! That’s usually “report” in English. No wonder why I couldn’t understand. Thank you!

So, by the way: “Aging” means sent e-mails? Or what exactly is meant by that, please?

Aging means how long the invoice has been past due.

1 Like

Ahhhh! So this kind of report shows if the client paid on time or over due?! Damn, when I’m finished with this project-report-template, then I’ll try to help with the translation again!

1 Like

Wow, wtf!? My code is now something like NOTHING and the template’s still failing. What’s going on there?!

EDIT: Seems to be a bug. The same behaviour in the react-demo. I’m going to move to github sigh

1 Like