In Corrective Credit Memo action, i have added the following statements:
SalesHeader.field:= FALSE;
SalesHeader.MODIFY();
I repeat that When an invoice is not closed, and i create a credit memo, my custom field change to false... this is what i want...
Buuutttt, In Posted Sales invoices that are closed,
My field doesnt change, It stay True.,