hi Pieter,

Consider the senario:
step 1. Click on create new invoice,
step 2: fill in all the details, also add some items to the invoice items table. [DO NOT CLICK SAVE]
step 3: Close the browser -> open the browser and then click on create new invoice or [ just click on create new invoice again] [Basically we are canceling this invoice content and trying to create a new one]

Now we see that for this new Invoice, the invoice items table is listed with the previous entries, but this should not be the case. You have to clear this from the DB.

Suggestion: When you initiate/create a new invoice - clear the temp DB entries. [i.e entries with invoice_id = 0 in the invoice_items table]

Comments

pietervogelaar’s picture

Assigned: Unassigned » pietervogelaar
Status: Active » Closed (won't fix)

Creating large invoices can cost a human a lot of time. How it's designed now a session time out will never causes all invoice items that are created but not saved, to be gone.

A button to erase all added invoice items could be an option though.

Pieter