Thank you again for your effort,
you have asked a good questions, I think the requested form fill function should do an automatic Fields check before applying to the form.
The idea is simple:
* an additional button in the top of "Direct Purchase Invoice Entry" page will start a popup window
* in this popup there is a function that upload a csv file containing all the needed info to fill the direct purchase invoice line items
* when processed it should check the chosen csv file for any mistakes
* then it will fill the item lines form.
with out any complications or SQL statements, should be easy for any user.
why do I need it? because when I buy from my supplier I get an invoice with two formats (pdf, csv), I want to automatically use it to enter them to my inventory with out any mistakes in part no., desc., prices.