Bug #2743
Autoload Unit di menu Stock Transfer
Description
Ketika user memilih Nama Barang, ingin agar field Unit otomatis terautoload (mengambil dari field Unit of Measurement yang sudah terisi di Material Master Data). Terima kasih.
Menu Path: Logistic & Service > Inventory Document > Stock Transfer
Port: http://remote.minovais.com:61138/
DB: MinovaES_KJL_Prod
Files
Subtasks
Related issues
Updated by Kezia Pawitra Yulianti 7 months ago
- Due date set to 05/14/2024
- Status changed from New to Assigned
- Priority changed from Normal to High
Updated by shofwan shiddiq 7 months ago
- File clipboard-202405151441-aahcz.png clipboard-202405151441-aahcz.png added
- Status changed from Assigned to QA Test
- Assignee changed from shofwan shiddiq to jihad ....
Dear Jihad, untuk unit sudah auto load ya, terima kasih.
Perubahan
SDATATABLEFIELD > TableName = PTRMATERIALITEMINTERNAL WHERE FieldName ='MaterialID' > Field = SelectFunction
Script Select Function:
debugger; var store = Ext.StoreMgr.lookup("storePTRMATERIALITEMINTERNAL");
debugger;
var idx = store.getCount() - 1;
var materialID = val.value;
var unitmasurement;
Ext.Ajax.request({
async: false,
method: 'POST',
url: '/UserControl/GetStore',
params: {
tableName: 'PMDMAT0001',
param: 'MaterialID[=]' + materialID
},
success: function (response) {
var results = Ext.decode(response.responseText);
dtgrid1 = results.data;
}
});
unitmasurement = dtgrid10.UnitMeasurement;
store.getAt(idx).set('UnitMeasurement', unitmasurement);