Sorry for rush out in the middle but this dude
is a good paying client and I keep him real happy.LOL
Ok here is the 30,000 foot view of the App
- It's a simple in house pay vendors and as well payroll program.
- One master database called accounting
with tables called vendors,payroll,customers,vendor_trans,code_numbers.
The main key is the code_numbers section as this is what is handed off to the book keeper at the end of each 1/4.
Now in it's simple design I query the master database and the table "code_numbers" and once that information comes back stuff it into
a select tag.
I only need the number but as well provide the
client with this .
107 Payroll_account
Now the text to the right is just a handy fast lookup and the real power comes from the number in the reports section.
as well the vendors table has "If they have provided one" an account # so it as well is being place into a <select name=name> tag
now here is the first rub in doing a php app at least for me.
I bring in all the fields of the vendors table but for the select tag really only need to view the name. But once the submit button is hit I need to pass the whole value of the record off to the voucher section.
So my select option would read this:
my vendor name.
and you would select that from the options list.
then you push submit and off to the voucher
section and now I need the full data value of the selected vendor to read like this.
my vendor name
123 any ave
my citr, my st zip
now the reason for all this twice work is simple on my part the checks we have we use the vendor information in the window on the envelop to mail the check to.
At this time I have made up a HTML print form and placed the elements where I need them and then just push the print button on the browser to get the print out. Not the best of operations but at least it works for now.
Ok thats enough for this session I will let you address this bit of data and reply with as I'm sure some questions as to
Why are you doing this or That.
Again thanks for the help in your insight.
Ron / hodge
ps if you would like to take this off line and save the board space use this address to email
hodge@hodgepodgesite.com
it's just a slush address and once I get your personal email I will provide you with a good one.