Recently, I embarked on a project to enhance the functionality of restaurant table items and implement value-saving features.
Initially, everything worked smoothly with one item list. However, upon introducing a second list and attempting to manipulate items through buttons, the quantity would increase/decrease while the total sum remained unchanged.
While new items are accurately reflected in the sum, manipulating existing ones seems to be causing issues.
If you add the provided code snippet, you can run it yourself to observe this behavior.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Prototype</title>
<style>
// CSS styles here
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
</head>
<body onload="init()">
// HTML structure and script calls here
Thank you for your assistance!