@nuskin/ns-product-lib 2.6.0-cx24-3464.14 → 2.6.0-cx24-3464.15
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [2.6.0-cx24-3464.15](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3464.14...v2.6.0-cx24-3464.15) (2023-03-11)
|
2
|
+
|
3
|
+
|
4
|
+
### Update
|
5
|
+
|
6
|
+
* get child skus to be used for add-to-cart #CX24-3464 ([02a8995](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/02a8995022dd0a196826df52b3723b8d19c0ea38)), closes [#CX24-3464](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3464)
|
7
|
+
|
1
8
|
# [2.6.0-cx24-3464.14](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3464.13...v2.6.0-cx24-3464.14) (2023-03-11)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* availableQuantity returns the atp (available-to-purchase) quantity.
|
3
3
|
* @param {import('./').Product} product
|
4
4
|
* @returns {number}
|
5
5
|
*/
|
6
|
-
function
|
6
|
+
function availableQuantity(product) {
|
7
7
|
if (product.inventoryProperties) {
|
8
8
|
return product.inventoryProperties.atpQty;
|
9
9
|
}
|
@@ -19,4 +19,4 @@ function mapAvailableQuantity(product) {
|
|
19
19
|
return 0;
|
20
20
|
}
|
21
21
|
|
22
|
-
module.exports =
|
22
|
+
module.exports = availableQuantity;
|