|
|
@@ -574,7 +574,7 @@ export default {
|
|
|
|
|
|
async loadWorkHours(taskId) {
|
|
|
try {
|
|
|
- const response = await api.get(`/api/work_hours.php?task_id=${taskId}`)
|
|
|
+ const response = await api.get(`/work_hours.php?task_id=${taskId}`)
|
|
|
if (response.data.success) {
|
|
|
this.workHours = response.data.data
|
|
|
this.workHoursSummary = {
|
|
|
@@ -729,7 +729,7 @@ export default {
|
|
|
async deleteWorkHour(workHourId) {
|
|
|
if (confirm('Haluatko varmasti poistaa tämän työtunnin?')) {
|
|
|
try {
|
|
|
- const response = await api.delete(`/api/work_hours.php?id=${workHourId}`)
|
|
|
+ const response = await api.delete(`/work_hours.php?id=${workHourId}`)
|
|
|
if (response.data.success) {
|
|
|
this.loadWorkHours(this.selectedTask.id)
|
|
|
this.loadTasks() // Refresh tasks to update total hours
|
|
|
@@ -742,7 +742,7 @@ export default {
|
|
|
|
|
|
async loadTaskClientInfo(taskId) {
|
|
|
try {
|
|
|
- const response = await api.get(`/api/work_hours.php?task_id=${taskId}`)
|
|
|
+ const response = await api.get(`/work_hours.php?task_id=${taskId}`)
|
|
|
if (response.data.success && response.data.data.length > 0) {
|
|
|
const firstWorkHour = response.data.data[0]
|
|
|
this.selectedTask.client_hour_price = firstWorkHour.client_hour_price
|