For purchase credit memos (from return or from invoice), the invoicing elements are transferred from the previous step, but the amount is left zero. It is up to the user to check, for each invoicing element, whether he is affected by the credit memo and…