@axelor/aos-mobile-stock 7.2.13 → 7.2.14
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.
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import React from 'react';
|
|
19
|
-
import { StyleSheet,
|
|
19
|
+
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
20
20
|
import { useTranslator, useSelector, useNavigation, } from '@axelor/aos-mobile-core';
|
|
21
21
|
import { Text, useThemeColor, Icon } from '@axelor/aos-mobile-ui';
|
|
22
22
|
const ProductSeeStockLocationDistribution = ({ product, companyId, forceShow = false, }) => {
|
|
@@ -34,25 +34,23 @@ const ProductSeeStockLocationDistribution = ({ product, companyId, forceShow = f
|
|
|
34
34
|
(productIndicators?.realQty != null &&
|
|
35
35
|
parseInt(productIndicators?.realQty, 10) !== 0 &&
|
|
36
36
|
parseInt(productIndicators?.futureQty, 10) !== 0)) {
|
|
37
|
-
return (<TouchableOpacity onPress={navigateStockLocationDetails}>
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
<Icon name="angle-right" size={24} color={Colors.primaryColor.background} style={styles.arrowIcon}/>
|
|
41
|
-
</View>
|
|
37
|
+
return (<TouchableOpacity onPress={navigateStockLocationDetails} style={styles.container}>
|
|
38
|
+
<Text>{I18n.t('Stock_SeeDistributionStockLocation')}</Text>
|
|
39
|
+
<Icon name="angle-right" size={24} color={Colors.primaryColor.background} style={styles.icon}/>
|
|
42
40
|
</TouchableOpacity>);
|
|
43
41
|
}
|
|
44
42
|
return null;
|
|
45
43
|
};
|
|
46
44
|
const styles = StyleSheet.create({
|
|
47
|
-
|
|
45
|
+
container: {
|
|
48
46
|
flexDirection: 'row',
|
|
49
|
-
justifyContent: 'flex-end',
|
|
50
47
|
alignItems: 'center',
|
|
51
|
-
marginHorizontal: 16,
|
|
52
48
|
width: '90%',
|
|
49
|
+
alignSelf: 'center',
|
|
50
|
+
flex: 1,
|
|
53
51
|
},
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
icon: {
|
|
53
|
+
flex: 1,
|
|
56
54
|
},
|
|
57
55
|
});
|
|
58
56
|
export default ProductSeeStockLocationDistribution;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSeeStockLocationDistribution.js","sourceRoot":"","sources":["../../../../../src/components/templates/product/ProductSeeStockLocationDistribution/ProductSeeStockLocationDistribution.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"ProductSeeStockLocationDistribution.js","sourceRoot":"","sources":["../../../../../src/components/templates/product/ProductSeeStockLocationDistribution/ProductSeeStockLocationDistribution.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EACL,aAAa,EACb,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAEhE,MAAM,mCAAmC,GAAG,CAAC,EAC3C,OAAO,EACP,SAAS,EACT,SAAS,GAAG,KAAK,GAClB,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,EAAC,iBAAiB,EAAC,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAE1E,MAAM,4BAA4B,GAAG,GAAG,EAAE;QACxC,UAAU,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version": "7.2.14",
|
|
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.14",
|
|
32
|
+
"@axelor/aos-mobile-core": "7.2.14",
|
|
33
33
|
"@reduxjs/toolkit": "^1.8.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|