String lineRef = line.getItemField("reference");
String malzRef = line.getItemField("stockrefItemsLink.reference");
String satirAciklamasi = line.getItemField("lineexp");
Console.println("LINE REF : "+lineRef);
Console.println("MALZ REF : "+line.getItemField("stockrefItemsLink.reference"));
String aciklama2 = "";
if (StringUtil.length(malzRef)>0 && StringUtil.length(satirAciklamasi)>0){
Object sorguMalzeme = createSql("SELECT CODE,NAME FROM $SN$LG_$F$_ITEMS WHERE LOGICALREF>0 AND LOGICALREF="+malzRef);
Object rowMalz = executeSql(sorguMalzeme);
if (rowMalz != null){
if (satirAciklamasi != null){
aciklama2 = StringUtil.trim(rowMalz.getString("CODE")+ " "+rowMalz.getString("NAME") + " - " + satirAciklamasi);
}
else{
aciklama2 = StringUtil.trim(rowMalz.getString("NAME"));
}
}
Console.println("Aciklama2 : "+aciklama2);
if (StringUtil.length(aciklama2)>0){
line.setName(aciklama2);
}
}