Re: Need help customizing a modules list view
I created a custom Inventory Project in Module Builder. It consists of 4 modules, Items, Pricebook, Vendors, and Purchase Orders. Vendors has a one-to-many relationship with Purchase Orders. Purchase Orders has a one-to-many relationship with Items. Accounts has a one-to-many relationship with Items.
The purpose is to track orders placed with our vendors and if and when they are received. Then once an order is received to be able to track each item by serial number from the warehouse to technician stock to customer location. In this case I need an actual instance of each item rather than simply incrementing/decrementing a qty field. Since it's not practical to create 40+ nearly identical items manually and then go back and edit them individually once they are received in order to add serial numbers, I created a popup form that allows the user to select a templated item from the pricebook and specify a quantity. When submitted this popup creates X quantity of the selected item related to the Purchase Order they were created under by copying the standard fields (i.e. part number, price, etc) from the Pricebook table. This all works fine.
Where I'm running into a problem is going back in to add the serial numbers after the orders come in. Mass Update is of no use since each item will have a unique serial number. I've discussed this problem with a few people and someone suggested I could use AJAX to edit the serial number fields directly in list view. I've got a script to do exactly this and have used it in another database that I created and it works great.
The only modification I need to make to the original files is to give the <td>'s for the Serial Number field class="editText" and a unique id, then attach the external .js file.I have looked everywhere I could think of in the code though and can't find the html I need to edit to apply it to Item Module's list view.
Last edited by bstonehill; 2009-02-20 at 07:27 PM.
Sugar Version 5.1.0a
PHP 5.2.5
MySQL 5.0.37
Bookmarks