bugfix
This commit is contained in:
parent
4498199492
commit
aabbaa2eca
2 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ const prompt = `The input is a receipt, invoice or parking/bus ticket. The user
|
||||||
|
|
||||||
date (string): the date the item was purchased, formatted as an iso date. If not present, set this value to null. If there are both an invoice date and an order date available, pick the order date.
|
date (string): the date the item was purchased, formatted as an iso date. If not present, set this value to null. If there are both an invoice date and an order date available, pick the order date.
|
||||||
|
|
||||||
item_name (string): The name of the item purchased. Where there are multiple items, summarise them with a single name. Shorten excessively long product names.
|
item_name (string): The name of the item purchased. Where there are multiple items, summarise them with a single name. Summarise excessively long product names.
|
||||||
|
|
||||||
paid (number): The total amount that was paid
|
paid (number): The total amount that was paid
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ function handle_add_row(event) {
|
||||||
function rewrite_indices() {
|
function rewrite_indices() {
|
||||||
const els = [...document.querySelectorAll(".index")];
|
const els = [...document.querySelectorAll(".index")];
|
||||||
for(const i in els) {
|
for(const i in els) {
|
||||||
els[i].textContent = `${i}`;
|
els[i].textContent = `${i+1}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue