From fdc81386fc15f19b3e5b778b62d2a235ce37c2c6 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Wed, 11 Nov 2020 17:49:29 -0400 Subject: [PATCH] Bugfix/procces error (#540) * Correcting errors in the processes and reports The process was successful but it was throwing undefined Uuid error * delete console.log Co-authored-by: elsiosanchez --- src/store/modules/ADempiere/report.js | 5 +++-- src/utils/ADempiere/apiConverts/process.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) 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) } }