diff --git a/src/api/ADempiere/reportManagement/index.ts b/src/api/ADempiere/reportManagement/index.ts index 49b6f58cef..09a5aada4a 100644 --- a/src/api/ADempiere/reportManagement/index.ts +++ b/src/api/ADempiere/reportManagement/index.ts @@ -176,7 +176,7 @@ export function runExport({ reportId }) { return request({ - baseURL: `/report-engine/export/${reportId}/${format}`, + url: `/report-engine/export/${reportId}/${format}`, method: 'post' }) } diff --git a/src/lang/ADempiere/en/report.js b/src/lang/ADempiere/en/report.js index 2279db1fd7..5e74806992 100644 --- a/src/lang/ADempiere/en/report.js +++ b/src/lang/ADempiere/en/report.js @@ -104,7 +104,8 @@ const report = { printFormat: 'Print Format', viewReport: 'Report View', Detail: 'View Detailed', - summary: 'View Summary' + summary: 'View Summary', + exportFormat: 'Export Format' } } diff --git a/src/lang/ADempiere/es/report.js b/src/lang/ADempiere/es/report.js index 78043be6ea..d37d68f5f2 100644 --- a/src/lang/ADempiere/es/report.js +++ b/src/lang/ADempiere/es/report.js @@ -104,7 +104,8 @@ const report = { printFormat: 'Formato de Impresión', viewReport: 'Vista del Informe', Detail: 'Ver Detallado', - summary: 'Ver Resumido' + summary: 'Ver Resumido', + exportFormat: 'Formato de Exportación' } } diff --git a/src/utils/ADempiere/notification.js b/src/utils/ADempiere/notification.js index 0a9c6cc66a..9489aa58b5 100644 --- a/src/utils/ADempiere/notification.js +++ b/src/utils/ADempiere/notification.js @@ -80,7 +80,25 @@ export function showNotification({ type = 'success', title, message = '', summar } }) } - +export function showNotificationReport({ type = 'success', title, message, link }) { + return Notification({ + title, + message: ` +
{{ $t('report.reportEnginer.printFormat') }}
+{{ $t('report.reportEnginer.exportFormat') }}