rerobe-js-orm 2.4.94 → 2.4.97
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.
|
@@ -91,6 +91,12 @@ class OrderFormState extends FormState_1.default {
|
|
|
91
91
|
const hidden = false;
|
|
92
92
|
if (fieldType === 'textInput') {
|
|
93
93
|
let inputValue = this.props[fieldKey] || '';
|
|
94
|
+
if (fieldKey === 'firstName') {
|
|
95
|
+
inputValue = this.props.name ? this.props.name.split(' ')[0] : '';
|
|
96
|
+
}
|
|
97
|
+
if (fieldKey === 'lastName') {
|
|
98
|
+
inputValue = this.props.name && this.props.name.split(' ').length > 1 ? this.props.name.split(' ')[1] : '';
|
|
99
|
+
}
|
|
94
100
|
if (fieldKey === 'subtotalPrice' ||
|
|
95
101
|
fieldKey === 'totalPrice' ||
|
|
96
102
|
fieldKey === 'totalDiscount' ||
|
|
@@ -309,7 +309,10 @@ class ProductStateManager extends Base_1.default {
|
|
|
309
309
|
if (status.includes(ProductStateManager.PRODUCT_STATES.clearance)) {
|
|
310
310
|
return this.state.toClearance();
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
if (status.includes(ProductStateManager.PRODUCT_STATES.listed)) {
|
|
313
|
+
return this.state.toListed();
|
|
314
|
+
}
|
|
315
|
+
return this.state.toSold();
|
|
313
316
|
}
|
|
314
317
|
toLoading() {
|
|
315
318
|
this.state.toLoading();
|
|
@@ -347,6 +350,7 @@ class ProductStateManager extends Base_1.default {
|
|
|
347
350
|
}
|
|
348
351
|
exports.default = ProductStateManager;
|
|
349
352
|
ProductStateManager.PRODUCT_STATES = {
|
|
353
|
+
archived: 'ARCHIVED',
|
|
350
354
|
sellRequestReview: 'SELL_REQUEST_REVIEW',
|
|
351
355
|
sellRequestReviewDraft: 'SELL_REQUEST_REVIEW_DRAFT',
|
|
352
356
|
rejected: 'REJECTED',
|