Hi,
i want to settle the sales order invoice using general journal .
my requirement is that i need to create custom batch using query (in query filter user will choose the type of journal name) to do the settlement.
how to create a custom batch job using query in d365