Hello, I was trying to add purchase line into warehouse receipt line and when Insert() triggers I get
“The record in table Warehouse Receipt Line already exists.”
However, warehouse receipt line doesn’t have that purchase line.
WhseRecLine.Init();
WhseRecLine.Validate(“Source No.”, THOPONO);
WhseRecLine.Validate(“Item No.”, ITEM);
WhseRecLine.Validate(“Description”, purchLine.Description);
WhseRecLine.Validate(“Invoice No.”, “TGINV1 & TGINV2”);
Evaluate(whseQty, JpnTranDet.THQTY);
WhseRecLine.“Quantity” := whseQty;
WhseRecLine.SetRange(“No.”, whsenum);
WhseRecLine.Insert();
here is my code