FIX totalDayAll hours in tasks
The extra days hours were not considered in total hours
This commit is contained in:
parent
212f157c0f
commit
20add7d3fc
@ -1,5 +1,6 @@
|
|||||||
/* Copyright (C) 2014 delcroip <delcroip@gmail.com>
|
/* Copyright (C) 2014 delcroip <delcroip@gmail.com>
|
||||||
* Copyright (C) 2015-2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2015-2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2021 Josep Lluís Amador <joseplluis@lliuretic.cat>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -257,7 +258,7 @@ function updateTotal(days,mode)
|
|||||||
result=parseTime(jQuery('.totalDay'+stringdays).text(),taskTime);
|
result=parseTime(jQuery('.totalDay'+stringdays).text(),taskTime);
|
||||||
if (result >= 0)
|
if (result >= 0)
|
||||||
{
|
{
|
||||||
totalhour = totalhour + taskTime.getHours();
|
totalhour = totalhour + taskTime.getHours() + result*24;
|
||||||
totalmin = totalmin + taskTime.getMinutes();
|
totalmin = totalmin + taskTime.getMinutes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user