Respected Community Members, 

I have a query regarding the customization made in our AX . The settled invoices are displayed CustOpenTrans. I have written a code to remove the settled invoices from CustOpenTrans but it doesnt seem to yield the output i desire , Im attaching the screenshot of the code , kindly have a look at it and let me know if it would work , id appreciate if someone could help me wit this . Thanks