thm-p3-configurator 0.0.80 → 0.0.81
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.
|
@@ -204,12 +204,17 @@ const SingleOrderModalContent = _ref3 => {
|
|
|
204
204
|
} = _ref5;
|
|
205
205
|
setSelectedBranchId(value);
|
|
206
206
|
setLocalBranchId(value);
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
207
|
+
if (branchIdWithFormulaCode.has(value)) {
|
|
208
|
+
console.log('setting formula code', branchIdWithFormulaCode.get(value));
|
|
209
|
+
dispatch({
|
|
210
|
+
type: _OrderSessionContext.orderSessionActions.SET_SINGLE_ORDER_FORMULA_CODE,
|
|
211
|
+
payload: {
|
|
212
|
+
formulaCode: branchIdWithFormulaCode.get(value)
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
} else {
|
|
216
|
+
console.log('no formula code found');
|
|
217
|
+
}
|
|
213
218
|
}
|
|
214
219
|
}));
|
|
215
220
|
};
|
|
@@ -98,9 +98,12 @@ const InternalSingleOrderProductOverview = _ref => {
|
|
|
98
98
|
executionAnswer2
|
|
99
99
|
}] = (0, _OrderSessionContext.useOrderSession)();
|
|
100
100
|
let formula = (0, _FormulaContext.useFormula)();
|
|
101
|
+
console.log('singleOrderFormulaCode', singleOrderFormulaCode);
|
|
101
102
|
if (singleOrderFormulaCode) {
|
|
102
103
|
formula = singleOrderFormulaCode;
|
|
104
|
+
console.log('hello world');
|
|
103
105
|
}
|
|
106
|
+
console.log('current formula', formula);
|
|
104
107
|
const mergedFilters = _objectSpread(_objectSpread({}, filters), {}, {
|
|
105
108
|
licensePlate,
|
|
106
109
|
model,
|