@axelor/aos-mobile-stock 7.2.3 → 7.2.4
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.
- package/lib/components/molecules/index.d.ts +0 -1
- package/lib/components/molecules/index.js +0 -1
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.d.ts +5 -2
- package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js +41 -17
- package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js.map +1 -1
- package/lib/components/templates/stockCorrection/index.d.ts +0 -1
- package/lib/components/templates/stockCorrection/index.js +0 -1
- package/lib/components/templates/stockCorrection/index.js.map +1 -1
- package/lib/i18n/en.json +0 -1
- package/lib/i18n/fr.json +0 -1
- package/lib/screens/stockCorrections/StockCorrectionCreationScreen.js +2 -2
- package/lib/screens/stockCorrections/StockCorrectionCreationScreen.js.map +1 -1
- package/package.json +3 -3
- package/lib/components/molecules/CarrierCard/CarrierCard.d.ts +0 -6
- package/lib/components/molecules/CarrierCard/CarrierCard.js +0 -46
- package/lib/components/molecules/CarrierCard/CarrierCard.js.map +0 -1
- package/lib/components/templates/stockCorrection/StockCorrectionCreationButton/StockCorrectionCreationButton.d.ts +0 -9
- package/lib/components/templates/stockCorrection/StockCorrectionCreationButton/StockCorrectionCreationButton.js +0 -64
- package/lib/components/templates/stockCorrection/StockCorrectionCreationButton/StockCorrectionCreationButton.js.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as CarrierCard } from "./CarrierCard/CarrierCard";
|
|
2
1
|
export { default as LocationsMoveCard } from "./LocationsMoveCard/LocationsMoveCard";
|
|
3
2
|
export { default as ProductCardDetails } from "./ProductCardDetails/ProductCardDetails";
|
|
4
3
|
export { default as StockCorrectionCard } from "./StockCorrectionCard/StockCorrectionCard";
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
export { default as CarrierCard } from './CarrierCard/CarrierCard';
|
|
19
18
|
export { default as LocationsMoveCard } from './LocationsMoveCard/LocationsMoveCard';
|
|
20
19
|
export { default as ProductCardDetails } from './ProductCardDetails/ProductCardDetails';
|
|
21
20
|
export { default as StockCorrectionCard } from './StockCorrectionCard/StockCorrectionCard';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/molecules/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/molecules/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,2CAA2C,CAAC"}
|
package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export default StockCorrectionButtons;
|
|
2
|
-
declare function StockCorrectionButtons({ saveStatus, reason, stockCorrection, realQty, status, comments, }: {
|
|
3
|
-
saveStatus
|
|
2
|
+
declare function StockCorrectionButtons({ saveStatus, reason, stockCorrection, product, stockLocation, trackingNumber, realQty, status, comments, }: {
|
|
3
|
+
saveStatus?: boolean;
|
|
4
4
|
reason: any;
|
|
5
5
|
stockCorrection: any;
|
|
6
|
+
product: any;
|
|
7
|
+
stockLocation: any;
|
|
8
|
+
trackingNumber: any;
|
|
6
9
|
realQty: any;
|
|
7
10
|
status: any;
|
|
8
11
|
comments: any;
|
package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js
CHANGED
|
@@ -15,46 +15,70 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import React, { useCallback } from 'react';
|
|
18
|
+
import React, { useCallback, useMemo } from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
19
20
|
import { useTranslator, useDispatch, useNavigation, useSelector, } from '@axelor/aos-mobile-core';
|
|
20
21
|
import { Button, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
21
22
|
import StockCorrection from '../../../../types/stock-corrrection';
|
|
22
|
-
import { updateCorrection } from '../../../../features/stockCorrectionSlice';
|
|
23
|
-
const StockCorrectionButtons = ({ saveStatus, reason, stockCorrection, realQty, status, comments, }) => {
|
|
23
|
+
import { createCorrection, updateCorrection, } from '../../../../features/stockCorrectionSlice';
|
|
24
|
+
const StockCorrectionButtons = ({ saveStatus = false, reason, stockCorrection, product, stockLocation, trackingNumber, realQty, status, comments, }) => {
|
|
24
25
|
const I18n = useTranslator();
|
|
25
26
|
const Colors = useThemeColor();
|
|
26
27
|
const navigation = useNavigation();
|
|
27
28
|
const dispatch = useDispatch();
|
|
28
29
|
const { mobileSettings } = useSelector(state => state.config);
|
|
30
|
+
const isValidateButtonVisible = useMemo(() => mobileSettings?.isStockCorrectionValidationEnabled &&
|
|
31
|
+
status !== StockCorrection.status.Validated, [status, mobileSettings?.isStockCorrectionValidationEnabled]);
|
|
29
32
|
const handleAPI = useCallback((_status = StockCorrection.status.Draft) => {
|
|
30
|
-
dispatch(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
dispatch(stockCorrection
|
|
34
|
+
? updateCorrection({
|
|
35
|
+
version: stockCorrection.version,
|
|
36
|
+
stockCorrectionId: stockCorrection.id,
|
|
37
|
+
realQty: saveStatus ? null : realQty,
|
|
38
|
+
reasonId: saveStatus ? null : reason?.id,
|
|
39
|
+
status: _status,
|
|
40
|
+
comments: comments,
|
|
41
|
+
})
|
|
42
|
+
: createCorrection({
|
|
43
|
+
productId: product.id,
|
|
44
|
+
stockLocationId: stockLocation.id,
|
|
45
|
+
reasonId: reason.id,
|
|
46
|
+
trackingNumberId: product?.trackingNumberConfiguration == null ||
|
|
47
|
+
trackingNumber == null
|
|
48
|
+
? null
|
|
49
|
+
: trackingNumber.id,
|
|
50
|
+
status: _status,
|
|
51
|
+
realQty: realQty,
|
|
52
|
+
comments: comments,
|
|
53
|
+
}));
|
|
38
54
|
navigation.pop();
|
|
39
55
|
}, [
|
|
56
|
+
comments,
|
|
40
57
|
dispatch,
|
|
41
58
|
navigation,
|
|
59
|
+
product,
|
|
42
60
|
realQty,
|
|
43
61
|
reason,
|
|
44
62
|
saveStatus,
|
|
45
63
|
stockCorrection,
|
|
46
|
-
|
|
64
|
+
stockLocation,
|
|
65
|
+
trackingNumber,
|
|
47
66
|
]);
|
|
48
67
|
const handleSave = useCallback(() => handleAPI(StockCorrection.status.Draft), [handleAPI]);
|
|
49
68
|
const handleValidate = useCallback(() => handleAPI(StockCorrection.status.Validated), [handleAPI]);
|
|
50
69
|
if (reason?.id == null) {
|
|
51
70
|
return null;
|
|
52
71
|
}
|
|
53
|
-
return (
|
|
54
|
-
{saveStatus
|
|
55
|
-
{
|
|
56
|
-
|
|
57
|
-
</>);
|
|
72
|
+
return (<View style={styles.container}>
|
|
73
|
+
{!saveStatus && (<Button title={I18n.t('Base_Save')} iconName="save" color={Colors.infoColor} width={isValidateButtonVisible ? '45%' : '90%'} onPress={handleSave}/>)}
|
|
74
|
+
{isValidateButtonVisible && (<Button title={I18n.t('Base_Validate')} iconName="check" width={saveStatus ? '90%' : '45%'} onPress={handleValidate}/>)}
|
|
75
|
+
</View>);
|
|
58
76
|
};
|
|
77
|
+
const styles = StyleSheet.create({
|
|
78
|
+
container: {
|
|
79
|
+
flexDirection: 'row',
|
|
80
|
+
justifyContent: 'space-evenly',
|
|
81
|
+
},
|
|
82
|
+
});
|
|
59
83
|
export default StockCorrectionButtons;
|
|
60
84
|
//# sourceMappingURL=StockCorrectionButtons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StockCorrectionButtons.js","sourceRoot":"","sources":["../../../../../src/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StockCorrectionButtons.js","sourceRoot":"","sources":["../../../../../src/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAC5D,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,sBAAsB,GAAG,CAAC,EAC9B,UAAU,GAAG,KAAK,EAClB,MAAM,EACN,eAAe,EACf,OAAO,EACP,aAAa,EACb,cAAc,EACd,OAAO,EACP,MAAM,EACN,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,UAAU,GAAG,aAAa,EAAE,CA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,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,cAAc;KAC/B;CACF,CAAC,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as StockCorrectionButtons } from "./StockCorrectionButtons/StockCorrectionButtons";
|
|
2
|
-
export { default as StockCorrectionCreationButton } from "./StockCorrectionCreationButton/StockCorrectionCreationButton";
|
|
3
2
|
export { default as StockCorrectionHeader } from "./StockCorrectionHeader/StockCorrectionHeader";
|
|
4
3
|
export { default as StockCorrectionReasonPicker } from "./StockCorrectionReasonPicker/StockCorrectionReasonPicker";
|
|
5
4
|
export { default as StockCorrectionHtmlInput } from "./StockCorrectionHtmlInput/StockCorrectionHtmlInput";
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
export { default as StockCorrectionButtons } from './StockCorrectionButtons/StockCorrectionButtons';
|
|
19
|
-
export { default as StockCorrectionCreationButton } from './StockCorrectionCreationButton/StockCorrectionCreationButton';
|
|
20
19
|
export { default as StockCorrectionHeader } from './StockCorrectionHeader/StockCorrectionHeader';
|
|
21
20
|
export { default as StockCorrectionReasonPicker } from './StockCorrectionReasonPicker/StockCorrectionReasonPicker';
|
|
22
21
|
export { default as StockCorrectionHtmlInput } from './StockCorrectionHtmlInput/StockCorrectionHtmlInput';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/templates/stockCorrection/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/templates/stockCorrection/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAC,OAAO,IAAI,2BAA2B,EAAC,MAAM,2DAA2D,CAAC;AACjH,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AACxG,OAAO,EAAC,OAAO,IAAI,8BAA8B,EAAC,MAAM,iEAAiE,CAAC;AAC1H,OAAO,EAAC,OAAO,IAAI,2BAA2B,EAAC,MAAM,2DAA2D,CAAC"}
|
package/lib/i18n/en.json
CHANGED
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
"Stock_ErrorProduct": "This is not the right product.",
|
|
88
88
|
"Stock_ErrorTrackingNumber": "This is not the right tracking number.",
|
|
89
89
|
"Stock_Customer": "Customer",
|
|
90
|
-
"Stock_Carrier": "Carrier",
|
|
91
90
|
"Stock_Supplier": "Supplier",
|
|
92
91
|
"Stock_SupplierCatalog": "Supplier catalog",
|
|
93
92
|
"Stock_OriginalAdress": "Original address",
|
package/lib/i18n/fr.json
CHANGED
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
"Stock_ErrorProduct": "Ce n'est pas le bon produit.",
|
|
88
88
|
"Stock_ErrorTrackingNumber": "Ce n'est pas le bon numéro de suivi.",
|
|
89
89
|
"Stock_Customer": "Client",
|
|
90
|
-
"Stock_Carrier": "Transporteur",
|
|
91
90
|
"Stock_Supplier": "Fournisseur",
|
|
92
91
|
"Stock_SupplierCatalog": "Catalogue fournisseur",
|
|
93
92
|
"Stock_OriginalAdress": "Adresse d'origine",
|
|
@@ -19,7 +19,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
19
19
|
import { StyleSheet } from 'react-native';
|
|
20
20
|
import { Screen, KeyboardAvoidingScrollView } from '@axelor/aos-mobile-ui';
|
|
21
21
|
import { useDispatch, useSelector } from '@axelor/aos-mobile-core';
|
|
22
|
-
import { ProductTrackingNumberSearchBar,
|
|
22
|
+
import { ProductTrackingNumberSearchBar, StockCorrectionButtons, StockCorrectionHtmlInput, StockCorrectionProductCardInfo, StockCorrectionQuantityCard, StockCorrectionReasonPicker, StockLocationSearchBar, } from '../../components';
|
|
23
23
|
import { fetchProductIndicators } from '../../features/productIndicatorsSlice';
|
|
24
24
|
import StockCorrection from '../../types/stock-corrrection';
|
|
25
25
|
const stockLocationScanKey = 'original-stock-location_internal-move-select-from';
|
|
@@ -120,7 +120,7 @@ const StockCorrectionCreationScreen = ({ route }) => {
|
|
|
120
120
|
return _current;
|
|
121
121
|
});
|
|
122
122
|
}, []);
|
|
123
|
-
return (<Screen removeSpaceOnTop={true} fixedItems={currentStep === CREATION_STEP.validation && (<
|
|
123
|
+
return (<Screen removeSpaceOnTop={true} fixedItems={currentStep === CREATION_STEP.validation && (<StockCorrectionButtons reason={reason} product={product} trackingNumber={trackingNumber} stockLocation={location} realQty={realQty} comments={comments}/>)}>
|
|
124
124
|
<KeyboardAvoidingScrollView style={[
|
|
125
125
|
styles.container,
|
|
126
126
|
currentStep < CREATION_STEP.validation ? styles.scroll : null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StockCorrectionCreationScreen.js","sourceRoot":"","sources":["../../../src/screens/stockCorrections/StockCorrectionCreationScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,MAAM,EAAE,0BAA0B,EAAC,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACjE,OAAO,EACL,8BAA8B,EAC9B,
|
|
1
|
+
{"version":3,"file":"StockCorrectionCreationScreen.js","sourceRoot":"","sources":["../../../src/screens/stockCorrections/StockCorrectionCreationScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,MAAM,EAAE,0BAA0B,EAAC,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACjE,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,8BAA8B,EAC9B,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,sBAAsB,EAAC,MAAM,uCAAuC,CAAC;AAC7E,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,MAAM,oBAAoB,GACxB,mDAAmD,CAAC;AAEtD,MAAM,WAAW,GAAG,mDAAmD,CAAC;AAExE,MAAM,aAAa,GAAG;IACpB,aAAa,EAAE,CAAC;IAChB,sBAAsB,EAAE,CAAC;IACzB,UAAU,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,cAAc,GAAG,EAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAC,CAAC;AAE5C,MAAM,6BAA6B,GAAG,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE;IAChD,MAAM,aAAa,GAAG,KAAK,EAAE,MAAM,EAAE,aAAa,CAAC;IACnD,MAAM,YAAY,GAAG,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;IAC5C,MAAM,mBAAmB,GAAG,KAAK,EAAE,MAAM,EAAE,cAAc,CAAC;IAC1D,MAAM,QAAQ,GAAG,WAAW,EAAE,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2B,CAC1B,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,EAEvC;YAAA,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,EACrD;UAAA,GAAG,CACJ,CAAC,CAAC,CAAC,IAAI,CACV;MAAA,EAAE,0BAA0B,CAC9B;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,UAAU,EAAE,QAAQ;QACpB,aAAa,EAAE,GAAG;KACnB;IACD,MAAM,EAAE;QACN,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,eAAe,6BAA6B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axelor/aos-mobile-stock",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.4",
|
|
4
4
|
"author": "Axelor",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react-i18next": "^11.18.6"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@axelor/aos-mobile-ui": "7.2.
|
|
32
|
-
"@axelor/aos-mobile-core": "7.2.
|
|
31
|
+
"@axelor/aos-mobile-ui": "7.2.4",
|
|
32
|
+
"@axelor/aos-mobile-core": "7.2.4",
|
|
33
33
|
"@reduxjs/toolkit": "^1.8.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Axelor Business Solutions
|
|
3
|
-
*
|
|
4
|
-
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
-
* as published by the Free Software Foundation.
|
|
9
|
-
*
|
|
10
|
-
* This program is distributed in the hope that it will be useful,
|
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
-
* GNU Affero General Public License for more details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
-
*/
|
|
18
|
-
import React from 'react';
|
|
19
|
-
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
20
|
-
import { Card, Icon, Text } from '@axelor/aos-mobile-ui';
|
|
21
|
-
import { useTranslator } from '@axelor/aos-mobile-core';
|
|
22
|
-
const CarrierCard = ({ style, onPress }) => {
|
|
23
|
-
const I18n = useTranslator();
|
|
24
|
-
return (<TouchableOpacity onPress={onPress} activeOpacity={0.9}>
|
|
25
|
-
<Card style={[styles.container, style]}>
|
|
26
|
-
<Icon name="truck"/>
|
|
27
|
-
<Text style={styles.text}>{I18n.t('Stock_Carrier')}</Text>
|
|
28
|
-
<Icon name="chevron-right"/>
|
|
29
|
-
</Card>
|
|
30
|
-
</TouchableOpacity>);
|
|
31
|
-
};
|
|
32
|
-
const styles = StyleSheet.create({
|
|
33
|
-
container: {
|
|
34
|
-
width: '60%',
|
|
35
|
-
flexDirection: 'row',
|
|
36
|
-
justifyContent: 'space-between',
|
|
37
|
-
alignItems: 'center',
|
|
38
|
-
paddingLeft: 15,
|
|
39
|
-
paddingRight: 15,
|
|
40
|
-
},
|
|
41
|
-
text: {
|
|
42
|
-
marginHorizontal: '5%',
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
export default CarrierCard;
|
|
46
|
-
//# sourceMappingURL=CarrierC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E,EAAE;KACjB;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,IAAI;KACvB;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default StockCorrectionCreationButton;
|
|
2
|
-
declare function StockCorrectionCreationButton({ reason, product, trackingNumber, stockLocation, realQty, comments, }: {
|
|
3
|
-
reason: any;
|
|
4
|
-
product: any;
|
|
5
|
-
trackingNumber: any;
|
|
6
|
-
stockLocation: any;
|
|
7
|
-
realQty: any;
|
|
8
|
-
comments: any;
|
|
9
|
-
}): JSX.Element;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Axelor Business Solutions
|
|
3
|
-
*
|
|
4
|
-
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
-
* as published by the Free Software Foundation.
|
|
9
|
-
*
|
|
10
|
-
* This program is distributed in the hope that it will be useful,
|
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
-
* GNU Affero General Public License for more details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
-
*/
|
|
18
|
-
import React, { useCallback } from 'react';
|
|
19
|
-
import { useTranslator, useDispatch, useNavigation, useSelector, } from '@axelor/aos-mobile-core';
|
|
20
|
-
import { Button, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
21
|
-
import StockCorrection from '../../../../types/stock-corrrection';
|
|
22
|
-
import { createCorrection } from '../../../../features/stockCorrectionSlice';
|
|
23
|
-
const StockCorrectionCreationButton = ({ reason, product, trackingNumber, stockLocation, realQty, comments, }) => {
|
|
24
|
-
const I18n = useTranslator();
|
|
25
|
-
const Colors = useThemeColor();
|
|
26
|
-
const navigation = useNavigation();
|
|
27
|
-
const dispatch = useDispatch();
|
|
28
|
-
const { mobileSettings } = useSelector(state => state.config);
|
|
29
|
-
const handleAPI = useCallback(status => {
|
|
30
|
-
dispatch(createCorrection({
|
|
31
|
-
productId: product.id,
|
|
32
|
-
stockLocationId: stockLocation.id,
|
|
33
|
-
reasonId: reason.id,
|
|
34
|
-
trackingNumberId: product?.trackingNumberConfiguration == null ||
|
|
35
|
-
trackingNumber == null
|
|
36
|
-
? null
|
|
37
|
-
: trackingNumber.id,
|
|
38
|
-
status: status,
|
|
39
|
-
realQty: realQty,
|
|
40
|
-
comments: comments,
|
|
41
|
-
}));
|
|
42
|
-
navigation.pop();
|
|
43
|
-
}, [
|
|
44
|
-
dispatch,
|
|
45
|
-
navigation,
|
|
46
|
-
product,
|
|
47
|
-
realQty,
|
|
48
|
-
reason,
|
|
49
|
-
stockLocation,
|
|
50
|
-
trackingNumber,
|
|
51
|
-
comments,
|
|
52
|
-
]);
|
|
53
|
-
const handleSave = useCallback(() => handleAPI(StockCorrection.status.Draft), [handleAPI]);
|
|
54
|
-
const handleValidate = useCallback(() => handleAPI(StockCorrection.status.Validated), [handleAPI]);
|
|
55
|
-
if (reason?.id == null) {
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
return (<>
|
|
59
|
-
<Button title={I18n.t('Base_Save')} color={Colors.secondaryColor} onPress={handleSave}/>
|
|
60
|
-
{mobileSettings?.isStockCorrectionValidationEnabled !== false && (<Button title={I18n.t('Base_Validate')} onPress={handleValidate}/>)}
|
|
61
|
-
</>);
|
|
62
|
-
};
|
|
63
|
-
export default StockCorrectionCreationButton;
|
|
64
|
-
//# sourceMappingURL=StockCorrectionCreationButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StockCorrectionCreationButton.js","sourceRoot":"","sources":["../../../../../src/components/templates/stockCorrection/StockCorr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