RecGlEntry.SETRANGE("Source Type",RecGlEntry."Source Type"::Customer); RecGlEntry.SETRANGE("Document Type",RecGlEntry."Document Type"::Invoice); RecGlEntry.SETRANGE("Journal Batch Name",'');For purchase invoices:
RecGlEntry.SETFILTER("Source Type",'%1|%2',RecGlEntry."Source Type"::Vendor,RecGlEntry."Source Type"::"Fixed Asset"); RecGlEntry.SETRANGE("Document Type",RecGlEntry."Document Type"::Invoice); RecGlEntry.SETRANGE("Journal Batch Name",'');Is it correct or am I missing something?
Comments
If said only Sales Invoices... Sales Order will have the same footprint in table 17. Document type will still reflect "Invoice".
other than that it seems accurate.