18. Januar 2016 11:50
20. Januar 2016 10:14
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);
20. Januar 2016 19:33
22. Januar 2016 14:52
youngerSalesHeaderArchive.SETRANGE("Document Type",youngerSalesHeaderArchive."Document Type"::Order);
youngerSalesHeaderArchive.SETRANGE("No.","No.");
youngerSalesHeaderArchive.SETFILTER("Version No.", '>%1', "Version No.");
IF NOT youngerSalesHeaderArchive.ISEMPTY THEN
DELETE(TRUE);