Opened 2 years ago
Closed 23 months ago
#2990 closed defect (fixed)
Change to is_available inventory prevents web check out of existing cart item
| Reported by: | Stacey | Owned by: | dbmulg |
|---|---|---|---|
| Priority: | medium | Milestone: | Server 2.3.11 |
| Component: | Public Website 2 | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
PW user cart does not allow checkout of an accession that was added to the cart with an inventory that is no longer available. A change in the distribution inventory lot on 28 - August prevented the requestor from submitting a request.
Scenario:
- Requestor added item to cart prior to 8/28. PI 603833 22ai01 inventory.
- Curator unchecked the is_available flag on 22ai01 inventory on 8/28.
- Curator checked is_available flag on 2023ai01 inventory on 8/28
- Requestor successfully submitted web request on 8/31. PI 603833 remained in cart.
Resolution:
Requestor takes the following steps to submit a "fresh" request for accession:
- Delete PI 603833 from your cart
- Search for PI 603833
- Add PI 603833 to the empty cart
- Submit your request through the standard checkout process
- After successful submission, the site merged new web request with open request
Attachments (1)
Change History (5)
by , 2 years ago
| Attachment: | PW unable to check out due to availability change.pdf added |
|---|
comment:1 by , 2 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 2 years ago
| Milestone: | → Server 2.3.11 |
|---|---|
| Status: | assigned → addressed |
modified code in order.aspx.cs, checked into GIT for next release 2.3.11.
comment:3 by , 2 years ago
Works as expected on Dev. Very good PW user experience.
It highlights the cart item if the accession is no longer available with any inventory
AND does not notify the user if the underlying inventory was updated in the CT but the accession is still available.
comment:4 by , 23 months ago
| Resolution: | → fixed |
|---|---|
| Status: | addressed → closed |
Verified on prod in January 1, 2025 - GG Server Release 2.3.11

The user chose an accession and when they put it in their cart, it had a default inventory_id of some number. By the time they checked out, the cooperator changed what inventory_id was the default, so when the last check to see if that inventory_id was ok, it came back as not not available. Inventory_id is assigned for every cart item, so the checks if (invid == 0) will never happen.
You'll need to determine if the accession is available with any inventory_id if the user didn't request a specific inventory.