Hello Everyone,
We have two different conditions in pricing. All of our price conditions are entered manually.
The ZFI1 condition should only be entered in standard sales. ZF00 condition must be entered only in returns. Otherwise, the condition must be passive, or the user should not receive an error.
We wrote a requirement routine to provide this request.
The routines we wrote work properly in the order.


But when the invoice is issued, the line appears to be multiplied in the analysis. There is no problem with the price on the invoice.


What could be the reason for the multiplication in the analysis? How can we fix it?
The routine code assigned to the ZF00 condition:

The routine code assigned to the ZF01 condition:

Best regards,
Tuncay.