Copy Comments

I need to program Navision to copy the comments from an unposted Sales Header, to the posted Sales Invoice Header when posted. I am attempting to leverage existing CopyCommentLines code in Codeunit 80. I added a Boolean to Sales & REceivables Setup called “Copy Comments Unpost to Post”, in codeunit 80 , I duplicated the code already in use for the other Copy Comment functions: IF SalesSetup.“Copy Comments Unpost to Posted” THEN CopyCommentLines( “Document Type”, SalesCommentLine.“Document Type”::“Posted Invoice”, “No.”, SalesInvHeader.“No.”); I reviewed the variables, and it is passing the correct unposted document type and number, yet when it reaches the CopyCommentLines function and sets the filter on SalesCommentLine, it finds no records. The Sales Comment Lines from the unposted document are not deleted until the very end of the On Run function in CodeUnit 80, so why can’t they be found? I have checked a few things for about an hour and a half and I cannot see what I am doing wrong. This was supposed to take 30 minutes… please help

Please disregard, I was missing a RESET statement.