At the moment you have joined the tables based on a date column
FROM Search.dbo.Invoice_Master INNER JOIN Search.dbo.Invoice_Detail
ON Invoice_Master.Invoice_date=Invoice_Detail.Invoice_date
I would guess that this is not the actual joining column between the tables. Instead probably multiple invoices can have the same date.
Investigate the schema and check what column in Invoice_Detail is the foreign key to Invoice_Master and use that when joining the tables.