Hi there. I have the following problem: I have posted a receipt line with a quantity of 100 pcs and i’d like to invoice that line. But 25% of the quantity is scrap, so the customer would like to invoice 75 pcs with price x and 25 pcs with price 0. There has been made a function that lets the user insert the scrap quantity on the purchase line which means: The user inserts Quantity = 100 and scrap quantity 25. On invoiceing the receipt line the system generates 2 lines. One with 75 and one with 25. Everything OK 'til here. Now there comes the item tracking thing. I cannot invoice one item ledger entry with two purchase invoice lines IN ONE STEP. Means: If i first invoice 75, post the invoice and then invoice 25 and post the invoice, everything is OK, but i cannot insert wo lines and invoice 75 with the first and 25 with the second due to the item tracking which returns me the following error on posting the invoice: Tracking Specification Entry No.=‘3322’ already exists. It is sad to see that it is not possible. We are using 3.60, and even in 3.70 it does not work. Any ideas?
If anyone is interested: In Codeunit 90 there is a function called SaveInvoiceSpecification. I replaced the line TempTrackingSpecification.INSERT with the line IF TempTrackingSpecification.INSERT THEN ;. Tested and working.