-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Several templates, for example for invoices #104
Comments
Yes, sry, I meant 3.7.0. On Raspberry 4, but under Bullseye (yet), not Bookworm.
I can already see that using the program will fail because of this :'(
I haven't bothered with it that much yet (but it's been a few hours just for the templates), but I'm not looking for the reason why the code is added above my source code after saving. You can remove the added code and at some point when saving, no more code will be added. I suspect that it's due to Firefox (under Ubuntu), so I'll have to look into it further.
Yes, I always specify the payment deadline like this, where February 12, 2025 should be something like [[invoice.date|date('d.m.Y')]+10]:
|
Hi Thomas, In order to achieve your +x days requirement you can write the following (Twig-Syntax): |
Hi,
Look.
Only the invoice example https://raw.githubusercontent.com/developeregrem/fewohbee-examples/refs/heads/master/templates/rechnung-default.txt copied into the source code editor. The first three lines are always removed, no matter which template I want to create:
Sometimes, but not always, the code mentioned in the first post is added for each save (I still believe it is due to Firefox):
Then it looks like this:
The message also comes: The log then says when you "Als PDF exportieren":
Thanks, I just can't test it anymore because it's just Oops! An Error Occurred... occurs when exporting. |
Ok, very strange. It seems that the template-ID you choose is not set correctly when clicking on download. Furthermore, you can check whether it is possible to download an invoice manually. Next, right click on any download icon of an invoice and select "copy link address" Use this link and open it in a new tab and change the last number in the link, which represent the template-ID. E.g.: If this is still not working, I recommend cleaning everything and perform a fresh installation. You can clean it with the script |
Nix passiert in der Konsole, wenn ich auf der Rechnungsübersicht-Seite ein Template wähle. Aber, was ich jetzt feststelle: Die Template-ID des Link zum direkten Download auf der Rechnungsübersicht-Seite ändert sich mit Auswahl eines Templates, je nach Auswahl wird das richtige Template angewendet, das ist schonmal ein Erfolg.
Cool, vielen dank. |
Moin, Weitere Feststellung. Hat man keine Standard-Vorlage gewählt, ist die Template-ID default 1. Gibt es kein Template mit der 1, kommt die OOPS-Meldung. Gruß Thomas |
Hi Thomas, you are right, I forgot that there is another place to download an invoice :D I always use the icon in the overview page. |
Hello,
Great project, I should have found it sooner. Hope the integration of the electronic invoice function will happen soon.
I'm working on the templates, installed is the current 1.3.7. I imagine being able to use one template for cash payments, one for transfers and one for payments via Booking.
No matter which template I select in the combo box on the "Invoice overview" page, the template that I chose in my first test is always applied. Selecting another template has no function.
Is it really only possible to create one template type per category or am I doing something wrong when using it?
And another question, why is the following code often, not always, added to the top of the source code after saving?
Is it somehow possible to add, for example, 10 days to the placeholder invoice date?
Gruß
Thomas
The text was updated successfully, but these errors were encountered: