Hi
I am trying to create a very simple report that details live customer accounts.
Each account has a stop_flag status: 0=Off Stop, 1=Soft Stop, 2=Hard Stop, 3=Closed
Some customer accounts are Delivery accounts only, so sales are invoiced on a related Invoicing (customer) account, not on the Delivery account.
Customer A/c Invoice A/c Stop Flag status
ABE004 ABE004 3 Closed
ABE005 ABE004 0 Off stop
FIR001 FIR001 0
FIR002 FIR001 0
FIR003 FIR001 0
The problem I have is that when a customer account that is also an invoicing account for one or more depots is closed on the sales ledger, the stop flag status becomes 3 e.g. ABE004 but all delivery accounts which feed into it, e.g. ABE005, despite having the closed flag displayed on the SL account, remain at Stop Flag status 0. Therefore, if I use record selection customer.stop_flag<>3 this will remove ABE004 from my report but will not remove ABE005, and I want both gone as both are closed.
I can’t simply do a suppress if customer.account <> invoice_ac because this will suppress FIR002 and FIR003 and they are live, active (delivery) accounts that I want on my report together with their invoicing account FIR001.
So how do I code for the scenario, suppress if the stop_flag for the invoice_ac of the customer.account is 3.
Any help would be much appreciated.
Many thanks
I am trying to create a very simple report that details live customer accounts.
Each account has a stop_flag status: 0=Off Stop, 1=Soft Stop, 2=Hard Stop, 3=Closed
Some customer accounts are Delivery accounts only, so sales are invoiced on a related Invoicing (customer) account, not on the Delivery account.
Customer A/c Invoice A/c Stop Flag status
ABE004 ABE004 3 Closed
ABE005 ABE004 0 Off stop
FIR001 FIR001 0
FIR002 FIR001 0
FIR003 FIR001 0
The problem I have is that when a customer account that is also an invoicing account for one or more depots is closed on the sales ledger, the stop flag status becomes 3 e.g. ABE004 but all delivery accounts which feed into it, e.g. ABE005, despite having the closed flag displayed on the SL account, remain at Stop Flag status 0. Therefore, if I use record selection customer.stop_flag<>3 this will remove ABE004 from my report but will not remove ABE005, and I want both gone as both are closed.
I can’t simply do a suppress if customer.account <> invoice_ac because this will suppress FIR002 and FIR003 and they are live, active (delivery) accounts that I want on my report together with their invoicing account FIR001.
So how do I code for the scenario, suppress if the stop_flag for the invoice_ac of the customer.account is 3.
Any help would be much appreciated.
Many thanks