Merge pull request 'hotFix_workerTimeControl_reUse_hasToRefill' (!2049) from hotFix_workerTimeControl_reUse_hasToRefill into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2049 Reviewed-by: Carlos Andrés <carlosap@verdnatura.es>
This commit is contained in:
commit
bbc3940cd9
|
@ -137,7 +137,8 @@ module.exports = Self => {
|
|||
tb.type,
|
||||
tb.businessFk,
|
||||
tb.permissionRate,
|
||||
d.isTeleworking
|
||||
d.isTeleworking,
|
||||
d.hasToRefill
|
||||
FROM tmp.timeBusinessCalculate tb
|
||||
JOIN account.user u ON u.id = tb.userFk
|
||||
JOIN department d ON d.id = tb.departmentFk
|
||||
|
@ -174,7 +175,7 @@ module.exports = Self => {
|
|||
myOptions.transaction = tx;
|
||||
try {
|
||||
workerFk = day.workerFk;
|
||||
if (day.timeWorkDecimal > 0 && day.timeWorkedDecimal == null
|
||||
if (day.hasToRefill && day.timeWorkDecimal > 0 && day.timeWorkedDecimal == null
|
||||
&& (day.permissionRate == null ? true : day.permissionRate)) {
|
||||
if (day.timeTable == null) {
|
||||
const timed = new Date(day.dated);
|
||||
|
|
Loading…
Reference in New Issue