Hi Guys,
I have a request that I need to update the customer's Classification Id to " Inactive " through a job if below three conditions are met.
1. There is no record exists in the table ForecastSales with this customer for the last 12 months ( we have fields end date and start date in this table)
2. There is no open orders for this customer Account in the sales table
3. There is nothing invoiced to this customer account for the last 12 months
how can I check these conditions and update the customer status through X++ Code.
Thanks in Advance.
*This post is locked for comments