Skip to content

Commit

Permalink
Merge branch 'adempiere:main' into feature/solop-develop/spuy
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih authored Dec 23, 2024
2 parents 5dc5a73 + a5bd973 commit 19379cf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Binary file not shown.
11 changes: 11 additions & 0 deletions src/main/java/org/spin/report_engine/data/ColumnInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class ColumnInfo {
private String mappingClassName;
private PrintFormatItem item;
private String columnName;
private boolean isHideGrandTotal;


private ColumnInfo(PrintFormatItem item) {
Expand All @@ -56,6 +57,7 @@ private ColumnInfo(PrintFormatItem item) {
this.color = item.getColor();
this.mappingClassName = item.getMappingClassName();
this.item = item;
this.isHideGrandTotal = item.isHideGrandTotal();
}

public static ColumnInfo newInstance(PrintFormatItem item) {
Expand Down Expand Up @@ -163,6 +165,15 @@ public boolean isGroupColumn() {
return isGroupColumn;
}

public final boolean isHideGrandTotal() {
return isHideGrandTotal;
}

public final ColumnInfo withHideGrandTotal(boolean isHideGrandTotal) {
this.isHideGrandTotal = isHideGrandTotal;
return this;
}

@Override
public String toString() {
return "ColumnInfo [color=" + color + ", style=" + style + ", code=" + code + ", title=" + title + "]";
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/spin/report_engine/service/Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ private static Report.Builder convertReport(ReportInfo reportInfo, int limit, in
.setDisplayType(column.getDisplayTypeId())
.setIsGroupColumn(column.isGroupColumn())
.setSequence(column.getSequence())
.setIsHideGrandTotal(column.isHideGrandTotal())
.build()
).collect(Collectors.toList())
)
Expand Down
1 change: 1 addition & 0 deletions src/main/proto/service/report_engine.proto
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ message ReportColumn {
bool is_fixed_width = 10;
string font_code = 11;
string column_name = 12;
bool is_hide_grand_total = 13;
}

message ReportRow {
Expand Down

0 comments on commit 19379cf

Please sign in to comment.