I have crated table "sales order" which having relation with sales table
ie salesorder.RefRecid == salestable .Recid
i have created another table that is "salesorderLines" having relation with sales line
salesorderlines.RefRecid == salesLines.Recid
when i create new Sales order some records is inserted in table "sales order" and
like "buyer" , "Exporter" , "RefRecId" , "InvoiceId" and "InvoiceDate"
when sales order is invoiced ,here "InvoiceId" and "InvoiceDate" will be blank till sales order is invoice
and here table "salesorderLine" contain HSN code which will get inserted if lines are added in line tab of salesOrder.
so these tables populate same as if records are inserted in salestable and salesline as per relation.
but in my when sales order is created a row is inserted in table "salesorder" and when salesorder is invoiced another row is inserted in table "salesorder" .so i am getting 2 records for one sales order that must not happen. can anyone suggest how can solve this issue.