cuba-platform / yarg

Yet Another Report Generator - CUBA Platform reporting engine
https://www.cuba-platform.com
Apache License 2.0
239 stars 75 forks source link

Incorrect display of logical fields in the report #154

Closed NikitaShchienko closed 2 years ago

NikitaShchienko commented 4 years ago

Environment

Description of the bug or enhancement

Boolean fields are displayed incorrectly.

Forum: https://www.cuba-platform.ru/discuss/t/otchet-xlsx-vyvodit-pustye-polosy-na-platform-7-2/4022

Minimal reproducible example

  1. Create a new entity with a logical field
  2. Create an edit and view screen for this entity
  3. Create a report for this entity

Entity:

@NamePattern("%s|name")
@Table(name = "TESTREPORTBLANKLINES_TEST_ENTITY")
@Entity(name = "testreportblanklines_TestEntity")
public class TestEntity extends StandardEntity {
    private static final long serialVersionUID = -8663906688552045810L;

    @Column(name = "NAME")
    protected String name;

    @Column(name = "FLAG", nullable = false)
    protected Boolean flag = false;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }
}

Data: image

Report Template: image

Report: image