Jump to content

Dynamic order (like invoice)


houssam_ballout

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).

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.