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

Error creating invoice #1011

Closed
dbrisser opened this Issue Aug 1, 2017 · 8 comments

Comments

Projects
None yet
4 participants
@dbrisser

dbrisser commented Aug 1, 2017

Expected behaviour

Actual behaviour

Steps to reproduce

Reproducable 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)

@dbrisser

This comment has been minimized.

Show comment
Hide comment
@dbrisser

dbrisser Aug 1, 2017

Hi, I started using Kimai this month and tried to create an invoice for this month. I have all the fields filled out and when I click the create button I a new page opens with the error "Missing time period" . I have tried adjusting the time period to be d/m/y or m/d/y as well as other variations of the date however the error persists. Is there something I'm missing? I have all my dates setup in preferences as dd/mm/yy.

dbrisser commented Aug 1, 2017

Hi, I started using Kimai this month and tried to create an invoice for this month. I have all the fields filled out and when I click the create button I a new page opens with the error "Missing time period" . I have tried adjusting the time period to be d/m/y or m/d/y as well as other variations of the date however the error persists. Is there something I'm missing? I have all my dates setup in preferences as dd/mm/yy.

@kevinpapst

This comment has been minimized.

Show comment
Hide comment
@kevinpapst

kevinpapst Dec 16, 2017

Member

Can you sent us all the relevant settings and a screenshot of your invoice screen just before submitting.
Are there javascript errors in your console?
Is there something in the Kimai log (check the debug panel)?

Member

kevinpapst commented Dec 16, 2017

Can you sent us all the relevant settings and a screenshot of your invoice screen just before submitting.
Are there javascript errors in your console?
Is there something in the Kimai log (check the debug panel)?

@kevinpapst kevinpapst added the Invoice label Dec 16, 2017

@simonschaufi

This comment has been minimized.

Show comment
Hide comment
@simonschaufi

simonschaufi Jan 5, 2018

Member

No response. If this problem still exists, please comment. we will get notified.

Member

simonschaufi commented Jan 5, 2018

No response. If this problem still exists, please comment. we will get notified.

@Lagneaux

This comment has been minimized.

Show comment
Hide comment
@Lagneaux

Lagneaux May 30, 2018

Kimai : v1.3.1.1394 and installed on an external and shared server

Hi,

While all fields in the "Invoice" tab are completed, when you click "Create", an error message is displayed : «Missing time period».

I guess the error comes from the print.php and private_func.php scripts since the message url come from: .../extensions/ki_invoice/print.php

What i have to do?

Thank you in advance for your help ...

Regards
DOm

Nota: I have found this post: Post number 1032
• I have done this in the print.php file:

//$model->setBeginDate($beginDate);
$model->setBeginDate(date("d.m.Y",$beginDate));
//$model->setEndDate($endDate);
$model->setEndDate(date("d.m.Y",$endDate));
//$model->setInvoiceDate(time());
$model->setInvoiceDate(time()); 

• I have done this in the private_func.php file:

// added date function to the format start and end properly
// $arr['start'] = $entry['start'];
$arr['start'] = date("H:i",$entry['start']);
//$arr['end'] = $entry['end'];
$arr['end'] = date("H:i",$entry['end']);

ki_invoice.zip

Lagneaux commented May 30, 2018

Kimai : v1.3.1.1394 and installed on an external and shared server

Hi,

While all fields in the "Invoice" tab are completed, when you click "Create", an error message is displayed : «Missing time period».

I guess the error comes from the print.php and private_func.php scripts since the message url come from: .../extensions/ki_invoice/print.php

What i have to do?

Thank you in advance for your help ...

Regards
DOm

Nota: I have found this post: Post number 1032
• I have done this in the print.php file:

//$model->setBeginDate($beginDate);
$model->setBeginDate(date("d.m.Y",$beginDate));
//$model->setEndDate($endDate);
$model->setEndDate(date("d.m.Y",$endDate));
//$model->setInvoiceDate(time());
$model->setInvoiceDate(time()); 

• I have done this in the private_func.php file:

// added date function to the format start and end properly
// $arr['start'] = $entry['start'];
$arr['start'] = date("H:i",$entry['start']);
//$arr['end'] = $entry['end'];
$arr['end'] = date("H:i",$entry['end']);

ki_invoice.zip

@simonschaufi

This comment has been minimized.

Show comment
Hide comment
@simonschaufi

simonschaufi May 30, 2018

Member

We don't fully support english date formats yet but we have something to review to make it work. See #1121

Member

simonschaufi commented May 30, 2018

We don't fully support english date formats yet but we have something to review to make it work. See #1121

@Lagneaux

This comment has been minimized.

Show comment
Hide comment
@Lagneaux

Lagneaux May 30, 2018

Hi,
Thank you for your reply, Simon.

I can read a php script a bit but I'm not really able to edit it.

I was seeing the post #1121 but I am completely lost
In order to be able to produce invoices, how to modify the print.php script of the Invoice extension to no longer have the error message "Missing time period"?

For information, "Missing time period" is not translated and should be translated into French by: «Intervalle de temps manquant» (~Time range missing)

May you help me ?

Regards
DOm

kimai_date_parameters

Lagneaux commented May 30, 2018

Hi,
Thank you for your reply, Simon.

I can read a php script a bit but I'm not really able to edit it.

I was seeing the post #1121 but I am completely lost
In order to be able to produce invoices, how to modify the print.php script of the Invoice extension to no longer have the error message "Missing time period"?

For information, "Missing time period" is not translated and should be translated into French by: «Intervalle de temps manquant» (~Time range missing)

May you help me ?

Regards
DOm

kimai_date_parameters

@Lagneaux

This comment has been minimized.

Show comment
Hide comment
@Lagneaux

Lagneaux Jun 18, 2018

Hi,

I still have my invoice edition problems. In my previous post, I posted my date settings.

I tried several possible combinations with / or . and also reverse the order in the dates parameters between d, m, y but nothing helps. I still have the same error message:
"Missing time period".

What would be the code change to do? And in which file(s)? In which lines?

I tried to find the post that would help me, but without success!

Thank you in advance for always helpful help.
Yours truly

Lagneaux commented Jun 18, 2018

Hi,

I still have my invoice edition problems. In my previous post, I posted my date settings.

I tried several possible combinations with / or . and also reverse the order in the dates parameters between d, m, y but nothing helps. I still have the same error message:
"Missing time period".

What would be the code change to do? And in which file(s)? In which lines?

I tried to find the post that would help me, but without success!

Thank you in advance for always helpful help.
Yours truly

@kevinpapst

This comment has been minimized.

Show comment
Hide comment
@kevinpapst

kevinpapst Jun 18, 2018

Member

You are commenting on an old and closed ticket. Can you please create a new ticket with all the aggregated informations? Thanks!

Member

kevinpapst commented Jun 18, 2018

You are commenting on an old and closed ticket. Can you please create a new ticket with all the aggregated informations? Thanks!

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