af11kcc
10-04-2003, 09:15 AM
Hi, I need to create an invoice manually using ASP.
SKU QTY DESCRIPTION UNIT PRICE TOTAL PRICE
QTY and UNIT PRICE are <input> fields.
1.- I scan the barcode of the product, I look up the product description and insert a line on a database containing the SKU, QTY = 0, DESC = DESC, UNIT PRICE = 0, TOTAL PRICE = 0
2.- I reload the page and display the header and the line created
SKU QTY DESCRIPTION UNIT PRICE TOTAL PRICE
123....[ ]..123 Description[ ]
3.- I enter the QTY and UNIT PRICE (Which is always variable).
Calculate TOTAL PRICE = QTY * UNIT PRICE
Update these values on the inserted record, reload to show the changes...
This works fine, but when I have 50 or more lines the page is taking too long to refresh...
Can you recommend a more efficient way to do this?
I was thinking on an iframe or something to avoid reloading the page each time....
Thanks in advance.
SKU QTY DESCRIPTION UNIT PRICE TOTAL PRICE
QTY and UNIT PRICE are <input> fields.
1.- I scan the barcode of the product, I look up the product description and insert a line on a database containing the SKU, QTY = 0, DESC = DESC, UNIT PRICE = 0, TOTAL PRICE = 0
2.- I reload the page and display the header and the line created
SKU QTY DESCRIPTION UNIT PRICE TOTAL PRICE
123....[ ]..123 Description[ ]
3.- I enter the QTY and UNIT PRICE (Which is always variable).
Calculate TOTAL PRICE = QTY * UNIT PRICE
Update these values on the inserted record, reload to show the changes...
This works fine, but when I have 50 or more lines the page is taking too long to refresh...
Can you recommend a more efficient way to do this?
I was thinking on an iframe or something to avoid reloading the page each time....
Thanks in advance.