Bug #632
[HR-TIME DATA- ABSENCE HALFDAY] field sequence pada MD Absence Half Day dibuatkan autoload
0%
Description
dear tim developer mohon support nya untuk penambahan fungsi pada MD Absence Halfday dimana pada saat melakukan action - add , pada field Sequence dibuatkan autoload berdasarkan max sequence dengan data yang ada.
Jika datanya tidak ada pada MD absence halfday maka sequence nya dibuat nilai value 1
jika data nya ada pada MD absence halfday maka sequence dibuat nilai dengan rumus= Max Sequences + 1
Files
Updated by Saswanto Tampan about 3 years ago
- Status changed from New to QA Test
- Assignee changed from Saswanto Tampan to Muhammad Bintar
Updated by Muhammad Bintar about 3 years ago
- File clipboard-202201171445-z6q97.png clipboard-202201171445-z6q97.png added
- File clipboard-202201171446-myxdz.png clipboard-202201171446-myxdz.png added
update:
update script pada file mdgenerator.js di UI/scripts
sebelum :
sesudah:
script:
Ext.ComponentQuery.query('[name=DetailMD]')[0].setTitle('Add' + ' - ' + Label + ' - ' + getParam("EmployeeID") + ' - ' + getParam("FullName"));
if (Label == "Absence Half Day")
{
var maxseq='0'
MinovaUtil.ExecuteParamQuery({
ID: 'MAXSEQPA118',
EmployeeID:EmpID
}, function (s) {
var result = Ext.decode(s.responseText);
var dt = Ext.decode(Ext.decode(result.data));
if (dt.length > 0){
maxseq = dt0.max_sequence;}
});
Ext.ComponentQuery.query('[name=Seq]')[0].setValue(maxseq);
}
=================================================================
update ke custparam dengan nama MAXSEQPA118
query:
SELECT MAX + 1 AS max_sequence FROM PHRPA0118 WHERE EmployeeID = @EmployeeID
Updated by Muhammad Bintar about 3 years ago
- File mdgenerator.js mdgenerator.js added
- File clipboard-202201171510-f1zv6.png clipboard-202201171510-f1zv6.png added
- Status changed from QA Test to Closed
- Assignee changed from Muhammad Bintar to Saswanto Tampan
file mdgenerator.js
sudah deploy ke rohto production di client