Sales - Credit Note Settlement

Hey all,

When I create a Credit Note on a sale order and invoice it, The settlement between this sale order and the credit note is done automatically. is there any way to prevent this settlement?

For example, I need to add a check box in CustTable called : Disable Credit Note settlement.

When this check Box is unthicked, then the settlment should be performed normally, but when the check Box is thicked, in this case I need to post the credit note without settlement.

Where Can I find the piece of code that makes such a thing so I can add some controls.

Thank you in advance

Why would you want to do it? If you do create the invoice and credit memo separately at the invoice stage, or if this still applies then create a separate return/credit.