Skip to content

Commit

Permalink
Merge branch 'adempiere:main' into feature/solop-develop/master
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih authored Oct 29, 2024
2 parents 4aecf0e + 4790230 commit 3b7b331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/spin/report_engine/service/Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,14 @@ public static Report.Builder getView(GetReportRequest request) {
int pageNumber = LimitUtil.getPageNumber(SessionManager.getSessionUuid(), request.getPageToken());
int limit = LimitUtil.getPageSize(request.getPageSize());
int offset = (pageNumber - 1) * limit;
ReportBuilder reportBuilder = ReportBuilder.newInstance().withPrintFormatId(request.getPrintFormatId()).withInstanceId(request.getInstanceId());
ReportBuilder reportBuilder = ReportBuilder.newInstance().withPrintFormatId(request.getPrintFormatId());
if(!Util.isEmpty(request.getFilters())) {
reportBuilder.withFilters(FilterManager.newInstance(request.getFilters())
.getConditions());
}
reportBuilder.withReportViewId(request.getReportViewId());
reportBuilder.withSummary(request.getIsSummary());
reportBuilder.withInstanceId(request.getInstanceId());
if(request.getRecordId() > 0
&& !Util.isEmpty(request.getTableName())) {
MTable table = MTable.get(Env.getCtx(), request.getTableName());
Expand Down

0 comments on commit 3b7b331

Please sign in to comment.