Script report as rows instead of columns

Hi!

You need to setup two colums for example:

colums = [
    {
        "fieldname": "vat_type",
        "label": "Vat Type",
        "fieldtype": "Data",
        "width": 200
    },
    {
        "fieldname": "value",
        "label": "Value",
        "fieldtype": "Data",
        "width": 200
    }
]

And for the data add the number of rows do you need, for example:

data = [
    {'vat_type': 'Box 01 Vat Due in this Period', 'value': vat_box_due_in_period},
    {'vat_type': 'VAT due in this period on acq', 'value': vat_due_period_acq},
    ...
]

And you get something like this:

11

3 Likes