Form Upgrades
We have a file that hold information for different lots tied to a product.
1 – If you click on any of the links under lot you will see on the next page you will see the item section with 2 fields next to it. One is lot.item_sku (which equals product.id) and the other is lot.item (which is the same as product.name) Basically we want to have 1 ajax field that we can either enter the product.sku or product.name and when we select it enters the product.id into lot.item_sku and product.name into lot.item. We did something similar to this on another file that we no longer use if it’s helps you can look at it and copy and tweak the code.
2 – We have a section on the product page that we can upload an image of each product. I copied and changed the code so we could upload an image of each cofa for the lot but it’s not working. So we would like where the cofa section is to be able to select and image and have it upload to pics/cofa.
3 – On the lot main page you will see COFA on the right hand side. We would like this to only show up if the lot has an image uploaded and be a link that opens up in a separate window showing the image. So if a lot doesn’t have something in cofa then the link would not show. We have this same code on product.php if you’d like to just copy it from there and tweak it as needed.
4 – When adding a new lot the received date and exp_date calendars do not show so we need them to show up.
5 – Not every item has an exp_date so if it’s not to hard we’d like to have a checkbox next to the calendar that either puts NULL or N/A in the exp_date field.
6 – on the lot main page if you do a FIND for lot K820697 and click into it you will see the inventory says 1.11907e+08. I’m not sure why it shows up that way. It should show up something like 75274.93. So i’m guessing when the inventory gets too long it converts it into this weird #. Is it because the field is FLOAT? If so is there a way to get it to print out correctly? What are the advantages or disadvantages to float.


