In the QER_PITShopHelperFill_bulk also already finalized orders are recalculated.
And the QER_PITShopHelperFill_bulk is called from the QER_PITShopHelperFillAll, which is triggered in very many places to trigger the recalculation of decision makers.
There may be other sources as well.
Two errors can be noticed:
1. In the QER_PITShopHelperFillAll the recalculation is triggered for all PWOs with an OrderState that has a WorkingMethod:
select s.Orderstate
from QER_VPWOOrderState s
where s.HasWorkingMethod > 0
So for:
Granted
OrderProduct
OrderProlongate
OrderUnsubscribe
Waiting
For "Granted" and "Waiting" a recalculation is unnecessary, because PWOs of these OrderStates are ready approved.
2. The QER_PITShopHelperFill_bulk should ignore all ready approved PWOs.