fix: refs #6878 use clockIn procedure on update time
This commit is contained in:
parent
c227e3683f
commit
eb8b4211bb
|
@ -0,0 +1,6 @@
|
||||||
|
ALTER TABLE vn.professionalCategory DROP COLUMN IF EXISTS code;
|
||||||
|
ALTER TABLE IF EXISTS vn.professionalCategory ADD COLUMN code VARCHAR(25) DEFAULT NULL;
|
||||||
|
|
||||||
|
UPDATE vn.professionalCategory
|
||||||
|
SET code = 'driverCE'
|
||||||
|
WHERE name = 'Conductor C + E';
|
|
@ -415,7 +415,6 @@ class Controller extends Section {
|
||||||
throw new Error(`The entry type can't be empty`);
|
throw new Error(`The entry type can't be empty`);
|
||||||
|
|
||||||
const query = `WorkerTimeControls/${entry.id}/updateTimeEntry`;
|
const query = `WorkerTimeControls/${entry.id}/updateTimeEntry`;
|
||||||
|
|
||||||
if (entry.direction !== entry.$orgRow.direction) {
|
if (entry.direction !== entry.$orgRow.direction) {
|
||||||
this.$http.post(query, {direction: entry.direction})
|
this.$http.post(query, {direction: entry.direction})
|
||||||
.then(() => this.vnApp.showSuccess(this.$t('Data saved!')))
|
.then(() => this.vnApp.showSuccess(this.$t('Data saved!')))
|
||||||
|
|
Loading…
Reference in New Issue