scheduler-node-models 1.0.106 → 1.0.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -804,6 +804,8 @@ class Employee {
|
|
804
804
|
* @returns The numeric value for the total hours of actual work
|
805
805
|
*/
|
806
806
|
getWorkedHours(start, end, chgno, ext) {
|
807
|
+
start = new Date(Date.UTC(start.getFullYear(), start.getMonth(), start.getDate()));
|
808
|
+
end = new Date(Date.UTC(end.getFullYear(), end.getMonth(), end.getDate()));
|
807
809
|
let answer = 0.0;
|
808
810
|
if (this.work) {
|
809
811
|
this.work.forEach(wk => {
|
@@ -516,7 +516,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
516
516
|
alignment: this.alignments.get('center'),
|
517
517
|
border: this.borders.get('blackthin')
|
518
518
|
};
|
519
|
-
let hours = emp.getWorkedHours(first,
|
519
|
+
let hours = emp.getWorkedHours(first, last, lCode.chargeNumber, lCode.extension);
|
520
520
|
// if the worksheet displays forecast data and the last date is after the
|
521
521
|
// employee's last recorded actual workday, show as a forecast value and get the
|
522
522
|
// forecast hours added to the actual hours.
|
@@ -524,7 +524,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
524
524
|
if (last.getTime() > lastWorked.getTime()) {
|
525
525
|
style.font = this.fonts.get('blue12');
|
526
526
|
}
|
527
|
-
hours += emp.getForecastHours(lCode, first,
|
527
|
+
hours += emp.getForecastHours(lCode, first, last, this.workcodes);
|
528
528
|
}
|
529
529
|
let cellID = this.getCellID(column, row);
|
530
530
|
this.setCell(sheet, cellID, cellID, style, hours);
|