Closed alexmemex closed 2 years ago
@alexmemex can you please create a support ticket to follow up on this?
@mkelan I've created a support ticket for this issue.
As an update, it seems as though the interface was fixed in the retail proxy feed in version 9.36.3 this week. However our current version of the CSU (9.36.22161.2) doesn't seem to be populating those fields so the result remains the same.
@alexmemex Closing as this is a very old request and assuming its resolved. Issues here are not actively monitored. For future reference, kindly use https://community.dynamics.com/365/commerce/f/dynamics-365-commerce-forum.
We are experiencing inventory issues in both the buybox and cart modules in our current version (9.36).
From what we can tell the issue lies in a missing property on the ProductWarehouseInventoryAvailability interface. The product-inventory-utils.ts file uses the MaximumPurchasablePhysicalAvailableQuantity to assign the ProductAvailableQuantity that is returned from the inventory mapping functions. Since the property is not on the interface its assigning an undefined value instead of the actual inventory information.
The add to cart component checks if that available quantity is undefined and if so will show the product as out of stock whether there is valid inventory for the product or not. The cart is checking something similar.
Mapping function where the product quantity is set:
Current ProductWarehouseInventoryAvailability interface:
Our current package.json dependecies