Jump to content

Multiple item entry with edit and delete option


rohanraj

Recommended Posts

Help me with code for sales order in which one can add multiple item and can store it in database. Example.
-------------------------------------------------------------------------------------------
item name | item rate | item quantity| total amount|
LEd              2100           2                        4200    |Edit|Delete      (line 1)
Mouse          100             4                        400      |Edit|Delete      (line 2)
Item list     | auto fill   |  manual        | Auto fill       | Add             (line 3) 

                                    Grand Total  | 4400        |

                                                     

                                                                                **Submit**

Item list is taken from databse. item rate should be come auto as specified in database and total amount should come automatically. after pressing add button next line come automatically as line 3 and the added line must look like line 1 and line 2 with edit and delete option. after submitting the form all entry inserted into database.

Help will be highly appreciated.

the work I have done is .....

------------------------------------------------------------------------------------------------------

fee.php
----------------------------------------------------------------------------------------------------------------

checkfee.php

 

is attached.....

 

checkfee.php

Fee.php

Link to comment
Share on other sites

I think I understand what you want.  So you have a table displayed on the page with data and you want to hit a button "add" and have it make another table cell below that yo ucan continue to enter more in, then submit it all at once?  Is that about right? Check an example of this http://demo.amecms.com/a.php?menu=Products&admin_page=purchaseorder&action=add and click the "add more rows" at the bottom. 

The demo login info is (case sensitive)

username: admindemo

password: Admindemo1

 

If that example is what you are looking for, it's not the somplest thing to do and involves javascript and ajax.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.