Hi All,
Is there a clean way to delete all sales quotes from NAV? I see that report 5179 "Delete Sales Quote Versions" deletes all archived sales quotes. Would I clone this report and modify to delete all sales quotes, both archived and not-archived? If so, what code to I change exactly?
Here is the C/AL for current report 5179:
---------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------BEGINNING OF CODE BLOCK-------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------
Sales header Archive - OnPreDataItem() Sales header Archive - OnAfterGetRecord() SalesHeader.SETRANGE("Document Type",SalesHeader."Document Type"::Quote);
SalesHeader.SETRANGE("No.","No.");
SalesHeader.SETRANGE("Doc. No. Occurrence","Doc. No. Occurrence");
IF NOT SalesHeader.FINDFIRST THEN
DELETE(TRUE);
Sales Header Archive - OnPostDataItem() ---------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------END OF CODE BLOCK-----------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------
As always, your help is greatly appreciated!
-Matt
------------------------------
Matt Cameron
Marine Ingredients
Mount Bethel PA
------------------------------