Jump to content

Recommended Posts

 

Hello,

I need help creating dynamic order (for invoice) in php.

Its like an invoice, where the header is entered once, but the products, quantity are entered more than one time in the same page,

so for example, if the user select a product and click add, it will displayed on a row & a new row become active.

Also, the table called order, how should I manage it?

As it may had multiple products per it?

Any help is much appreciated

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/234911-dynamic-order-like-invoice/
Share on other sites

Well,

Its a page to add an invoice holding multiple products per it.

I had created the products table & the vendor table.

I need help creating the order table & how to build up the php table so that it can dynamically insert additional rows.

Thanks

Can you show us what you have so far?  I would expect you to have an order table with an order id (primary key), and an "order_products" table with an order id, product id and item count, and perhaps additional information like actual price charged (which may be different if there's a discount, for example).

Well, I need help in this:

 

I am willing to add multiple products, so an additional row will be created once the above had been completed, and those rows will not being inserted into the database without finally I press save.

Help me :) ?

Thanks

I have found it much easier to create a new table per invoice/order with a master index table for lookup.

 

Also - not trying to be nasty, but you're clearly not ready for this yet. Put it on the top shelf for now and work on learning rather than doing.

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.