IDEMPIERE-2850 Allow to schedule background reports in xls / do not set print format for financial reports

This commit is contained in:
Carlos Ruiz 2019-07-03 15:47:11 +02:00
parent 3a6f8f08e2
commit 077a2c07a4
1 changed files with 3 additions and 1 deletions

View File

@ -68,6 +68,7 @@ import org.compiere.model.MRole;
import org.compiere.model.MSysConfig;
import org.compiere.model.MUser;
import org.compiere.model.Query;
import org.compiere.model.SystemIDs;
import org.compiere.model.X_AD_ReportView;
import org.compiere.print.MPrintFormat;
import org.compiere.process.ProcessInfo;
@ -614,7 +615,8 @@ public abstract class AbstractProcessDialog extends Window implements IProcessUI
private void setReportTypeAndPrintFormat(MPInstance instance)
{
if (fPrintFormat != null && instance != null) {
if (fPrintFormat != null && instance != null
&& instance.getAD_Process_ID() != SystemIDs.PROCESS_RPT_FINREPORT) {
fPrintFormat.setValue((Integer) instance.getAD_PrintFormat_ID());
}