Deleting a Sales Header do not delete the Lines!

Hi everyone. If you create an invoice with the field Service Mgt. Document activated (from Service Management), then if you delete the record, the system do not delete the lines!! Does anyone experienced (…and solved) this problem? Marco

Problem solved, sorry. I’ve added those lines in the OnDelete Trigger fo table 36: […] SalesLine.SETFILTER(“Appl.-to Service Entry”,’>%1’,0); IF SalesLine.FIND(’-’) THEN ERROR(Text046,“No.”); // Add this line SalesLine.SETRANGE(“Appl.-to Service Entry”); […]