Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Fix: InstanceId In Report Engine (#2893)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricargame authored Oct 29, 2024
1 parent 2d0498d commit 33f97e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/api/ADempiere/reportManagement/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export function getView({
printFormatId,
reportViewId,
isSummary,
instanceId,
// window
tableName,
recordId
Expand All @@ -142,7 +143,8 @@ export function getView({
report_view_id: reportViewId,
is_summary: isSummary,
table_name: tableName,
record_id: recordId
record_id: recordId,
instance_id: instanceId
}
})
}
Expand Down
8 changes: 1 addition & 7 deletions src/store/modules/ADempiere/reportManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,17 +701,11 @@ const reportManager = {
type: 'info'
})
return new Promise((resolve, reject) => {
let filters = getOperatorAndValue({
const filters = getOperatorAndValue({
format: 'array',
containerUuid,
fieldsList
})
if (!isEmptyValue(instanceId)) {
const filtersArray = JSON.parse(filters)
const newFilter = { 'name': 'AD_PInstance_ID', 'operator': 'equal', 'values': instanceId }
filtersArray.push(newFilter)
filters = JSON.stringify(filtersArray)
}
getView({
printFormatId,
reportViewId,
Expand Down

0 comments on commit 33f97e2

Please sign in to comment.