api-feature/import-per-csv #25
@@ -6,6 +6,7 @@
|
|||||||
.idea/**/workspace.xml
|
.idea/**/workspace.xml
|
||||||
.idea/**/tasks.xml
|
.idea/**/tasks.xml
|
||||||
.idea/**/usage.statistics.xml
|
.idea/**/usage.statistics.xml
|
||||||
|
.idea/**/markdown.xml
|
||||||
.idea/**/dictionaries
|
.idea/**/dictionaries
|
||||||
.idea/**/shelf
|
.idea/**/shelf
|
||||||
|
|
||||||
|
|||||||
@@ -27,11 +27,8 @@
|
|||||||
let work_to = new Date(item['Bis'])
|
let work_to = new Date(item['Bis'])
|
||||||
let actual_day = work_from.toISOString().substring(0, 10)
|
let actual_day = work_from.toISOString().substring(0, 10)
|
||||||
let actual_work_hours = (work_to - work_from)/(1000*60*60)
|
let actual_work_hours = (work_to - work_from)/(1000*60*60)
|
||||||
if (cash_work_days[actual_day] === undefined) {
|
cash_work_days[actual_day] ??= 0
|
||||||
cash_work_days[actual_day] = actual_work_hours
|
|
||||||
} else {
|
|
||||||
cash_work_days[actual_day] += actual_work_hours
|
cash_work_days[actual_day] += actual_work_hours
|
||||||
}
|
|
||||||
})
|
})
|
||||||
for (let day in cash_work_days) {
|
for (let day in cash_work_days) {
|
||||||
let hours = cash_work_days[day]
|
let hours = cash_work_days[day]
|
||||||
|
|||||||
Reference in New Issue
Block a user