* remove unnecessary checking

* only put in record_id param if it is > 0
This commit is contained in:
Heng Sin Low 2008-02-02 07:50:51 +00:00
parent 92b24e05b8
commit ad34029418
1 changed files with 129 additions and 130 deletions

View File

@ -391,7 +391,7 @@ public class ReportStarter implements ProcessCall, ClientProcess {
reportResult( AD_PInstance_ID, "Can not find report", trxName); reportResult( AD_PInstance_ID, "Can not find report", trxName);
return false; return false;
} }
if (Record_ID!=-1) {
JasperData data = null; JasperData data = null;
File reportFile = null; File reportFile = null;
String fileExtension = ""; String fileExtension = "";
@ -461,6 +461,7 @@ public class ReportStarter implements ProcessCall, ClientProcess {
} }
} }
if (Record_ID > 0)
params.put("RECORD_ID", new Integer( Record_ID)); params.put("RECORD_ID", new Integer( Record_ID));
// contribution from Ricardo (ralexsander) // contribution from Ricardo (ralexsander)
@ -531,8 +532,6 @@ public class ReportStarter implements ProcessCall, ClientProcess {
} }
} }
}
reportResult( AD_PInstance_ID, null, trxName); reportResult( AD_PInstance_ID, null, trxName);
return true; return true;
} }