Purchase number on sale invoice

Hello sir,
I want item purchase invoice number automatically on my sale invoice when I select item to sale. How can i do this?

I do not fully understand your request.

Do you mean you want to include the Purchase Invoice reference number on a Sales Invoice?

What happens if the item has been purchased using more than one Purchase Invoice?

You could enter the Purchase Invoice number in the Description field of the line in the Sales Invoice, but this will not be automatic and will require manual input.

Manager does not identify purchase invoice numbers with inventory items. All units of any particular inventory item are presumed to be identical and interchangeable. So this is impossible within the program.

i’ll use same purches reffer number in one sale invoice but i have to print it on my sale invoice but autometically

As I already told you, @Miyad_Work, you cannot do this automatically because the data is not there.

if i want to add this code,where should i had to?

Once again, you cannot.