contentoh-components-library 21.5.77 → 21.5.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -913,11 +913,11 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
913
913
|
type: "SET_SAVING",
|
|
914
914
|
payload: true
|
|
915
915
|
});
|
|
916
|
-
concept =
|
|
916
|
+
concept = (0, _utils.getConceptByTab)(state.active_tab);
|
|
917
917
|
articleId = state.product.id_article;
|
|
918
918
|
orderId = (_state$product$id_ord = state.product.id_order) !== null && _state$product$id_ord !== void 0 ? _state$product$id_ord : state.product.orderId;
|
|
919
919
|
sectionStatusKey = "".concat(concept, "_status");
|
|
920
|
-
evalStatus = state.product[sectionStatusKey];
|
|
920
|
+
evalStatus = getStatusByCurrentServiceAndRetailer() || state.product[sectionStatusKey] || "NA";
|
|
921
921
|
retailerId = (_state$active_retaile3 = state.active_retailer) === null || _state$active_retaile3 === void 0 ? void 0 : _state$active_retaile3.id_retailer;
|
|
922
922
|
data = {
|
|
923
923
|
articleId: articleId,
|
package/package.json
CHANGED
|
@@ -680,11 +680,14 @@ const RetailerProductEditionView = ({
|
|
|
680
680
|
if (state.saving) return;
|
|
681
681
|
dispatch({ type: "SET_SAVING", payload: true });
|
|
682
682
|
|
|
683
|
-
const concept =
|
|
683
|
+
const concept = getConceptByTab(state.active_tab);
|
|
684
684
|
const articleId = state.product.id_article;
|
|
685
685
|
const orderId = state.product.id_order ?? state.product.orderId;
|
|
686
686
|
const sectionStatusKey = `${concept}_status`;
|
|
687
|
-
const evalStatus =
|
|
687
|
+
const evalStatus =
|
|
688
|
+
getStatusByCurrentServiceAndRetailer() ||
|
|
689
|
+
state.product[sectionStatusKey] ||
|
|
690
|
+
"NA";
|
|
688
691
|
const retailerId = state.active_retailer?.id_retailer;
|
|
689
692
|
|
|
690
693
|
let data = { articleId, orderId, concept, evalStatus, retailerId };
|