Project

General

Profile

Bug #551

ESS Overtime validasi untuk backdate maksimal 30 hari kebelakang

Added by Muhammad Bintar about 3 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Start date:
11/10/2021
Due date:
11/12/2021
% Done:

0%

Estimated time:

Description

dear tim developer, mohon support nya untuk membuat validasi pada ess overtime dimana pada saat mengisi start date , maksimal 30 hari kebelakang.

rohto production
remote.minovais.com: 61121


Files

clipboard-202111101759-jcp6c.png (102 KB) clipboard-202111101759-jcp6c.png Muhammad Bintar, 11/10/2021 05:59 PM
validasi backdate.txt (952 Bytes) validasi backdate.txt M Azid Wahyudi, 11/11/2021 02:54 PM
#1

Updated by Kezia Pawitra Yulianti about 3 years ago

  • Status changed from New to Assigned
#2

Updated by M Azid Wahyudi about 3 years ago

penambahan :

init overtime penambahan :

'field[name=DateFrom]': {
change: function () {
setEndPlan();
getDayType();
validasiDateFrom(); // penambahan
}
},

method overtime penambahan function :

function validasiDateFrom() {
var now = Ext.Date.format(new Date(), 'Ymd');
var body = MinovaUtil.WORKFLOW.getViewBodyWorkflow();
var StartDate = body.down('field[name=DateFrom]').getValue();
var startDateOvt = (StartDate - now);
console.log(startDateOvt);
if (startDateOvt <= '-100') {
MinovaMessageInfo("Information", "WFOTCEKDATEFROM", "", "");
body.down('[name=DateFrom]').setValue('');
}
};

nambah data di SMESSAGECATALOG :

MessageId : WFOTCEKDATEFROM
LangId : EN
Message : Overtime cannot be done 30 days before today

MessageId : WFOTCEKDATEFROM
LangId : EN
Message : Overtime tidak bisa di lakukan 30 hari sebelum hari ini

#3

Updated by M Azid Wahyudi about 3 years ago

penambahan :

init overtime penambahan :

'field[name=DateFrom]': {
change: function () {
setEndPlan();
getDayType();
validasiDateFrom(); // penambahan
}
},

method overtime penambahan function :

function validasiDateFrom() {
var now = Ext.Date.format(new Date(), 'Ymd');
var body = MinovaUtil.WORKFLOW.getViewBodyWorkflow();
var StartDate = body.down('field[name=DateFrom]').getValue();
var startDateOvt = (StartDate - now);
console.log(startDateOvt);
if (startDateOvt <= '-100') {
MinovaMessageInfo("Information", "WFOTCEKDATEFROM", "", "");
body.down('[name=DateFrom]').setValue('');
}
};

nambah data di SMESSAGECATALOG :

MessageId : WFOTCEKDATEFROM
LangId : EN
Message : Overtime cannot be done 30 days before today

MessageId : WFOTCEKDATEFROM
LangId : IDN
Message : Overtime tidak bisa di lakukan 30 hari sebelum hari ini

#4

Updated by Muhammad Bintar about 1 month ago

  • Status changed from QA Test to Closed

Also available in: Atom PDF