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

[RESOLVED] Invoices - Missing time period #1210

Open
Lagneaux opened this Issue Jun 22, 2018 · 10 comments

Comments

Projects
None yet
2 participants
@Lagneaux

Lagneaux commented Jun 22, 2018

Expected behaviour

Actual behaviour

Steps to reproduce

Reproducible on demo.kimai.org? [yes|no]

Kimai version [for example: dev 1.1.0.1389|github master|github develop]

Relevant log entries from log file (debug tab or temporary/logfile.txt)

@Lagneaux

This comment has been minimized.

Lagneaux commented Jun 22, 2018

Hello everyone,

I'm trying desperately to find the solution! I went through the posts through Google but also find myself a solution, but to no avail.

After many exchanges, I hope finally, here and now, find the solution to my problem.

I'm trying to create an invoice. But each time, I have this recurring error message that tells me: "Missing time period"

Off, I use a European date formats: dd.mm.yy & %d.%m.%Y

What would be the parameters of kimai to modify?
or
What would be the code to modify and in which files? (file name, line number)

I send to all those who want to help me a big thank you in advance.

Regards
Dom

@kevinpapst

This comment has been minimized.

Member

kevinpapst commented Jun 22, 2018

there is a reason we have the template while creating the issue. please give all requested informations like kimai version, log messages...

@Lagneaux

This comment has been minimized.

Lagneaux commented Jun 23, 2018

Bjr Kevin,

The Kimai version is
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Kimai - Open Source Time Tracking
v1.3.1.1394 - © 2006-18 by the Kimai-Team:
Torsten Höltge, Severin Leonhardt, Kevin Papst, Simon Schaufelberger, Oleg Britvin, Martin Klemkow ...

Kimai Homepage | Forum | GitHub | Download | Friendly Hacks

Ce logiciel est un logiciel libre et publié 'EN L'ETAT' sans aucune espèce de garantie sous les conditions de la GPL 3.

Si vous faites des modifications, nous aprécierions que vous postiez sur forum. La dernière version peut être téléchargée Ici (Pour les test seulement!).

SVP supportez les futurs développements de Kimai avec une donation ou en étendant sa bibliothèque de langues. Si vous trouvez des bugs ou avez des idées de fonctionnalités, n'\hésitez pas à nous contacter sur le forum. Ou encore mieux: créer un ticket.

Des remerciement aussi pour le support à: Vasilis van Gemert, Maximilian Kern, Enrico Ties, Thomas Wensing, John Resig, Kelvin Luck, Urs Gerig, Willem van Gemert, Torben Boe and HamBug Studios, Klaus Franken, Chris (Urban Willi), Andreas Berndt, Niels Hoffmann, Günter Hengsbach, Paul Brand, Joaquín G. de la Zerda, Allesandro Bertoldo, José Ricardo Cardoso, RRZE (Regionales Rechenzentrum Erlangen) ...

Our thanks also go to the projects: Zend Framework, jQuery, phpjs, js-cookie, jQuery Form Plugin, jQuery newsticker, jQuery selectboxes, jqPlot, TinyButStrong, tinyDoc, TCPDF, Ultimate MySQL Class, PclZip, Composer, MySQL, PHP

Page error
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
url : http://www.mydomain.fr/clients/extensions/ki_invoice/print.php
message : Missing time period

kimai/temporary /logfile.txt
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
attached

Thank you inadvance for your help
Regards
Dom
logfile.txt

@kevinpapst

This comment has been minimized.

Member

kevinpapst commented Jun 23, 2018

I cannot see anything special in your log file.
Did you try if you can reproduce the problem on the demo site using the same date formats?
Or: reset your date formats to the once from the demo sites, then:

  • change on settings
  • try to generate an invoice
  • if then the error shows up, let me know which date format exactly you changed and provide a screenshot with all your admin preferences
@Lagneaux

This comment has been minimized.

Lagneaux commented Jul 3, 2018

@kevinpapst

This comment has been minimized.

Member

kevinpapst commented Jul 3, 2018

I need to know the exact formats you entered, otherwise I cannot test/verify your problem.

@Lagneaux

This comment has been minimized.

Lagneaux commented Jul 4, 2018

@Lagneaux

This comment has been minimized.

Lagneaux commented Jul 4, 2018

@Lagneaux

This comment has been minimized.

Lagneaux commented Jul 4, 2018

​[RESOLVED]
Good evening Kevin,

​​I ​have ​found why script sends me an error: time period missing! Indeed​!

I ​was ​used an old version and then I installed the new version under another directory​. In the new installation, I started the data entry from May 25th.

Outside, when I asked for an invoice, I indicated as departure​ day, May 1st. If, I put as departure date May 25​th​, I get ​my​ invoice.

So, it would be necessary ​​for the script to take a departure date earlier than the first available date in the database.

T​hank you for your help.​
Regards
Dom

@kevinpapst

This comment has been minimized.

Member

kevinpapst commented Jul 4, 2018

Interesting bug which very likely only occurs for the first invoice, if I understand it correct.
So we know that it has nothing to do with the formats, which is good as well.
Then we need to find the problematic part where the date is internally rewritten(?). I checked the database query and couldn't find anything. Probably there is some global check for the first database entry compared to the date range, but I don't know...
But at least its good to know and now documented here, if anyone else has that error.

@Lagneaux Lagneaux changed the title from Invoices - Missing time period to [RESOLVED] Invoices - Missing time period Jul 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment