return null;
}
SQLReturnObject[] data = null;
if (ld != null) {
Vector<Object> v = new Vector<Object>();
SQLReturnObject data1 = new SQLReturnObject();
if (!strProcessing.equals("") && strProcessing.equals("Y")) {
data1.setData("ID", "XL");
v.addElement(data1);
} else if (strDocStatus.equals("NA")) {
data1.setData("ID", "AP");
v.addElement(data1);
data1 = new SQLReturnObject();
data1.setData("ID", "RJ");
v.addElement(data1);
data1 = new SQLReturnObject();
data1.setData("ID", "VO");
v.addElement(data1);
} else if (strDocStatus.equals("DR") || strDocStatus.equals("IP")) {
data1.setData("ID", "CO");
v.addElement(data1);
if (!strTable.equals("319") && !strTable.equals("800212")) {
data1 = new SQLReturnObject();
data1.setData("ID", "VO");
v.addElement(data1);
}
} else if ((strDocStatus.equals("CO")) && !(strTable.equals("318")) && // C_Invoice
!(strTable.equals("319"))) { // M_InOut
// Exclude Close for tables C_Invoice and M_InOut because it has
// no sense for them
data1.setData("ID", "CL");
v.addElement(data1);
}
data1 = new SQLReturnObject();
if (strTable.equals("259")) { // C_Order
if (strDocStatus.equals("DR")) {
data1.setData("ID", "PR");
v.addElement(data1);
} else if (strDocStatus.equals("CO")) {
data1.setData("ID", "RE");
v.addElement(data1);
}
} else if (strTable.equals("318")) { // C_Invoice
if (strDocStatus.equals("CO")) {
data1.setData("ID", "RC");
v.addElement(data1);
data1 = new SQLReturnObject();
data1.setData("ID", "RE");
v.addElement(data1);
}
} else if (strTable.equals("319")) { // M_InOut
if (strDocStatus.equals("CO")) {
data1.setData("ID", "RC");
v.addElement(data1);
}
} else if (strTable.equals("224")) { // GL_Journal
if (strDocStatus.equals("CO")) {
data1.setData("ID", "RE");
v.addElement(data1);
}
} else if (strTable.equals("800212")) { // M_Requisition
if (strDocStatus.equals("CO")) {
data1.setData("ID", "RE");
v.addElement(data1);
}
}
data = new SQLReturnObject[v.size()];