Neuen Einkauf hinzufügen
Chat GPT Command:
Process this receipt: Keep the calculated totals for weighted items but remove the calculation of it. Remove tax letters (A, B, C) from prices. Apply all discount lines (e.g., Desc., PROMO) to the immediately preceding item. If an item has a quantity >1, calculate the discounted total, divide by quantity to get the per-unit price, and expand each unit into a separate line. After processing all items, calculate the sum of all final per-unit prices and compare it to the total amount on the receipt. If the sums do not match, throw an error. Generate a table listing each unit purchased with its final per-unit price. After confirmation, output the final list as JSON with keys item and price, one object per unit purchased, ready for use. As last item of the JSON create a key/value pair {"item" : "Einkauf bezahlt von", "price": 0}.