Need help with writing custom script report for Account Receivables

Hello all,

I am writing a custom script to fetch description data for account receivable reports.

This is what I have done so far.

columns.append ({
“label”: _(“Description”),
“fieldtype”: “Link”,
“fieldname”: “description”,
“width” : 150,
“options”: “sales_invoice_item”
})

This was what I got as my Description in the report.

Also take note that the data for the Due Date has changed, and the data for the Description is not the data I would like to fetch for the Description.

Please I don’t mind if someone can advise me on the appropriate code that would fetch the correct data for the description table.

Thank you very much.