diff --git a/src/store/modules/ADempiere/report.js b/src/store/modules/ADempiere/report.js index a5e30d2a..53c68ac9 100644 --- a/src/store/modules/ADempiere/report.js +++ b/src/store/modules/ADempiere/report.js @@ -74,10 +74,11 @@ const reportControl = { processId, processUuid, instanceUuid, - printFormatUuid + printFormatUuid, + tableName }) { return new Promise(resolve => { - requestListReportsViews({ processUuid }) + requestListReportsViews({ processUuid, tableName }) .then(reportViewResponse => { const reportViewList = reportViewResponse.reportViewsList.map(reportViewItem => { return { diff --git a/src/utils/ADempiere/apiConverts/process.js b/src/utils/ADempiere/apiConverts/process.js index 770721b9..65e941b9 100644 --- a/src/utils/ADempiere/apiConverts/process.js +++ b/src/utils/ADempiere/apiConverts/process.js @@ -1,3 +1,4 @@ +import { isEmptyValue } from '../valueUtils.js' import { convertReportOutput } from './report.js' export function convertProcessLog(processLogToConvert) { @@ -13,6 +14,6 @@ export function convertProcessLog(processLogToConvert) { // return convertEntity(parameter) // }), paramenters: [], - output: convertReportOutput(processLogToConvert.output) + output: isEmptyValue(processLogToConvert.output) ? {} : convertReportOutput(processLogToConvert.output) } }