This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A form populates a table from form entry with a unique ID. After the submit button is clicked, it creates a file where you can save and print. It works perfectly but when an entry is edited, any subsequent entry doesn't create a new file but rather update the last entry. In other words, the unique ID doesn't increase anymore unless the system is relaunched. | |
Below is the function for my create button | |
$('#create_btn').click(function () { | |
$('#create_invoice').get(0).reset(); | |
$('#action').val('create_invoice'); | |
$('#title').text('DONATION'); | |
$('#action_create_invoice').val('Donate'); | |
$('#invoice_items').empty(); | |
calculateTotal(); |