Both the CartItem (OrderItem) record and the attached Supplement contain quantity data. This leaves the question open:
How will updateQuantity() requests be handled for Cart items? The options are:
Each concrete utility works to keep both values updated
The Supplement data is only for cart item creation, then its value is ignored and only the cart item record is kept up to date
The Supplement datum is delete after cart item creation to avoid confusion and only the cart item record is kept up to date
One important factor to consider - Supplement data is the basis for the Edit Cart Item feature. The data stored there will repopulate the form and the form will have an input for quantity.
Both the CartItem (OrderItem) record and the attached Supplement contain quantity data. This leaves the question open:
How will updateQuantity() requests be handled for Cart items? The options are:
One important factor to consider - Supplement data is the basis for the Edit Cart Item feature. The data stored there will repopulate the form and the form will have an input for quantity.