Project

General

Profile

Bug #2743

Autoload Unit di menu Stock Transfer

Added by haykal haykal 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
High
Assignee:
Start date:
05/08/2024
Due date:
05/14/2024
% Done:

0%

Estimated time:
Spent time:

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


Add

Subtasks


Add

Related issues

#1

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

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);

#3

Updated by jihad .... 7 months ago

  • Status changed from QA Test to Closed

Also available in: Atom PDF