From 9c204d88057d15005a4d39b7ab67ade7b53d42dc Mon Sep 17 00:00:00 2001 From: Shankar Konar Date: Mon, 9 Mar 2020 17:23:52 +0530 Subject: [PATCH 1/3] Tooltip added in product detail page for salable product qty --- .../adminhtml/ui_component/product_form.xml | 9 ++- .../adminhtml/web/css/source/_module.less | 18 ++++++ .../web/template/product/form/fieldset.html | 57 +++++++++++++++++++ 3 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 InventorySalesAdminUi/view/adminhtml/web/css/source/_module.less create mode 100644 InventorySalesAdminUi/view/adminhtml/web/template/product/form/fieldset.html diff --git a/InventorySalesAdminUi/view/adminhtml/ui_component/product_form.xml b/InventorySalesAdminUi/view/adminhtml/ui_component/product_form.xml index 2169a79059b2..6705b1148e8f 100644 --- a/InventorySalesAdminUi/view/adminhtml/ui_component/product_form.xml +++ b/InventorySalesAdminUi/view/adminhtml/ui_component/product_form.xml @@ -6,7 +6,14 @@ */ -->
-
+
+ + + + Aggregated inventory available to purchase for a stock. The amount aggregates assigned source's Quantity subtracting the Out-of-Stock Threshold (or MinQty). + + + true diff --git a/InventorySalesAdminUi/view/adminhtml/web/css/source/_module.less b/InventorySalesAdminUi/view/adminhtml/web/css/source/_module.less new file mode 100644 index 000000000000..f49ae24ac95e --- /dev/null +++ b/InventorySalesAdminUi/view/adminhtml/web/css/source/_module.less @@ -0,0 +1,18 @@ +// /** +// * Copyright © Magento, Inc. All rights reserved. +// * See COPYING.txt for license details. +// */ + +// +// Styling for tooltip styling +// --------------------------------------------- + +.admin__field-saleable-qty { + margin-top: 0; + .admin__field-tooltip-content { + width: 29rem; + right: -5rem; + font-size: 14px; + font-weight: normal; + } +} diff --git a/InventorySalesAdminUi/view/adminhtml/web/template/product/form/fieldset.html b/InventorySalesAdminUi/view/adminhtml/web/template/product/form/fieldset.html new file mode 100644 index 000000000000..890ddc392198 --- /dev/null +++ b/InventorySalesAdminUi/view/adminhtml/web/template/product/form/fieldset.html @@ -0,0 +1,57 @@ + +
+ From 02feabd04f67db9d59341b3e8a56be9b5100dfe0 Mon Sep 17 00:00:00 2001 From: konarshankar07 Date: Tue, 10 Mar 2020 00:20:21 +0530 Subject: [PATCH 2/3] Feedback changes --- InventorySalesAdminUi/i18n/en_US.csv | 1 + .../view/adminhtml/web/template/product/form/fieldset.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/InventorySalesAdminUi/i18n/en_US.csv b/InventorySalesAdminUi/i18n/en_US.csv index da0f8db2188f..20e6bcf8acef 100644 --- a/InventorySalesAdminUi/i18n/en_US.csv +++ b/InventorySalesAdminUi/i18n/en_US.csv @@ -4,3 +4,4 @@ Websites,Websites "Product Salable Quantity","Product Salable Quantity" "Salable Quantity","Salable Quantity" +"Aggregated inventory available to purchase for a stock. The amount aggregates assigned source's Quantity subtracting the Out-of-Stock Threshold (or MinQty)", "Aggregated inventory available to purchase for a stock. The amount aggregates assigned source's Quantity subtracting the Out-of-Stock Threshold (or MinQty)" diff --git a/InventorySalesAdminUi/view/adminhtml/web/template/product/form/fieldset.html b/InventorySalesAdminUi/view/adminhtml/web/template/product/form/fieldset.html index 890ddc392198..a6eeab558f0b 100644 --- a/InventorySalesAdminUi/view/adminhtml/web/template/product/form/fieldset.html +++ b/InventorySalesAdminUi/view/adminhtml/web/template/product/form/fieldset.html @@ -23,7 +23,7 @@