You can use page inspector (CTRL + ALT + F1) ti discover a table name or a page name.
In your case, table name in Sales Line and the page is Sales Invoice Subform.
To add a new field, you need to:
1) create a tableextension object that extends Sales Line
2) create a pageextension object that extends Sales Invoice Subform