@axelor/aos-mobile-stock 7.1.0 → 7.1.2
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/api/index.d.ts +10 -10
- package/lib/api/index.js +10 -10
- package/lib/api/index.js.map +1 -1
- package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.js +1 -1
- package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.js.map +1 -1
- package/lib/components/templates/StockLocationSearchBar/StockLocationSearchBar.d.ts +1 -2
- package/lib/components/templates/StockLocationSearchBar/StockLocationSearchBar.js +3 -23
- package/lib/components/templates/StockLocationSearchBar/StockLocationSearchBar.js.map +1 -1
- package/lib/components/templates/TrackingNumberSearchBar/TrackingNumberSearchBar.d.ts +2 -1
- package/lib/components/templates/TrackingNumberSearchBar/TrackingNumberSearchBar.js +2 -2
- package/lib/components/templates/TrackingNumberSearchBar/TrackingNumberSearchBar.js.map +1 -1
- package/lib/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.d.ts +1 -2
- package/lib/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.js +2 -2
- package/lib/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.js.map +1 -1
- package/lib/components/templates/internalMove/InternalMoveLineNotes/InternalMoveLineNotes.js +2 -22
- package/lib/components/templates/internalMove/InternalMoveLineNotes/InternalMoveLineNotes.js.map +1 -1
- package/lib/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.d.ts +2 -2
- package/lib/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.js +3 -4
- package/lib/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.js.map +1 -1
- package/lib/components/templates/internalMove/InternalMoveLineQuantityCard/InternalMoveLineQuantityCard.d.ts +1 -2
- package/lib/components/templates/internalMove/InternalMoveLineQuantityCard/InternalMoveLineQuantityCard.js +1 -2
- package/lib/components/templates/internalMove/InternalMoveLineQuantityCard/InternalMoveLineQuantityCard.js.map +1 -1
- package/lib/components/templates/product/ProductTrackingNumberSelect/ProductTrackingNumberSelect.js +7 -31
- package/lib/components/templates/product/ProductTrackingNumberSelect/ProductTrackingNumberSelect.js.map +1 -1
- package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js +3 -0
- package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js.map +1 -1
- package/lib/components/templates/stockCorrection/StockCorrectionReasonPicker/StockCorrectionReasonPicker.js +2 -2
- package/lib/components/templates/stockCorrection/StockCorrectionReasonPicker/StockCorrectionReasonPicker.js.map +1 -1
- package/lib/features/asyncFunctions-index.d.ts +16 -15
- package/lib/features/asyncFunctions-index.js +16 -15
- package/lib/features/asyncFunctions-index.js.map +1 -1
- package/lib/features/customerDeliveryLineSlice.d.ts +1 -1
- package/lib/features/customerDeliveryLineSlice.js +2 -2
- package/lib/features/customerDeliveryLineSlice.js.map +1 -1
- package/lib/features/customerDeliverySlice.d.ts +1 -1
- package/lib/features/index.d.ts +3 -3
- package/lib/features/index.js +3 -3
- package/lib/features/index.js.map +1 -1
- package/lib/features/internalMoveLineSlice.d.ts +1 -1
- package/lib/features/internalMoveLineSlice.js +2 -2
- package/lib/features/internalMoveLineSlice.js.map +1 -1
- package/lib/features/internalMoveSlice.d.ts +1 -1
- package/lib/features/inventoryLineSlice.d.ts +1 -1
- package/lib/features/inventorySlice.d.ts +1 -1
- package/lib/features/partnerSlice.d.ts +1 -1
- package/lib/features/productIndicatorsSlice.d.ts +1 -1
- package/lib/features/productSlice.d.ts +1 -1
- package/lib/features/productTrackingNumberSlice.d.ts +1 -1
- package/lib/features/productVariantSlice.d.ts +1 -1
- package/lib/features/racksListSlice.d.ts +1 -1
- package/lib/features/stockAppConfigSlice.d.ts +1 -1
- package/lib/features/stockCorrectionReasonSlice.d.ts +1 -1
- package/lib/features/stockCorrectionSlice.d.ts +1 -1
- package/lib/features/stockLocationLineSlice.d.ts +1 -1
- package/lib/features/stockLocationSlice.d.ts +1 -1
- package/lib/features/supplierArrivalLineSlice.d.ts +1 -1
- package/lib/features/supplierArrivalSlice.d.ts +1 -1
- package/lib/features/supplierCatalogSlice.d.ts +1 -1
- package/lib/features/trackingNumberSlice.d.ts +1 -1
- package/lib/features/unitSlice.d.ts +1 -1
- package/lib/index.d.ts +5 -4
- package/lib/index.js +5 -4
- package/lib/index.js.map +1 -1
- package/lib/screens/customerDeliveries/index.d.ts +24 -23
- package/lib/screens/customerDeliveries/index.js +7 -0
- package/lib/screens/customerDeliveries/index.js.map +1 -1
- package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js +5 -7
- package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js.map +1 -1
- package/lib/screens/internalMoves/index.d.ts +26 -25
- package/lib/screens/internalMoves/index.js +8 -0
- package/lib/screens/internalMoves/index.js.map +1 -1
- package/lib/screens/inventories/index.d.ts +24 -23
- package/lib/screens/inventories/index.js +7 -0
- package/lib/screens/inventories/index.js.map +1 -1
- package/lib/screens/products/ProductStockDetailsScreen.js +3 -3
- package/lib/screens/products/ProductStockDetailsScreen.js.map +1 -1
- package/lib/screens/products/index.d.ts +17 -16
- package/lib/screens/products/index.js +6 -0
- package/lib/screens/products/index.js.map +1 -1
- package/lib/screens/stockCorrections/StockCorrectionCreationScreen.js +7 -1
- package/lib/screens/stockCorrections/StockCorrectionCreationScreen.js.map +1 -1
- package/lib/screens/stockCorrections/index.d.ts +11 -10
- package/lib/screens/stockCorrections/index.js +3 -0
- package/lib/screens/stockCorrections/index.js.map +1 -1
- package/lib/screens/supplierArrivals/SupplierArrivalLineCreationScreen.js +5 -4
- package/lib/screens/supplierArrivals/SupplierArrivalLineCreationScreen.js.map +1 -1
- package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js +8 -2
- package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js.map +1 -1
- package/lib/screens/supplierArrivals/index.d.ts +27 -26
- package/lib/screens/supplierArrivals/index.js +8 -0
- package/lib/screens/supplierArrivals/index.js.map +1 -1
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +20 -0
- package/lib/utils/index.js.map +1 -0
- package/package.json +5 -5
- package/lib/utils/filters.d.ts +0 -6
- package/lib/utils/filters.js +0 -77
- package/lib/utils/filters.js.map +0 -1
package/lib/api/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { addLineStockMove as addCustomerDeliveryLine,
|
|
2
|
-
export { searchCustomerDeliveryLines, updateLine as updateCustomerDeliveryLineApi, } from './customer-delivery-line-api';
|
|
3
|
-
export { fetchInternalMove as fetchInternalMoveApi,
|
|
4
|
-
export { searchInternalMoveLines, updateInternalMoveLine as updateInternalMoveLineApi, } from './internal-move-line-api';
|
|
1
|
+
export { addLineStockMove as addCustomerDeliveryLine, fetchCustomerDelivery as fetchCustomerDeliveryApi, realizeSockMove as realizeCustomerDeliveryApi, searchDeliveryFilter, } from './customer-delivery-api';
|
|
2
|
+
export { searchCustomerDeliveryLines, updateLine as updateCustomerDeliveryLineApi, fetchCustomerDeliveryLine as fetchCustomerDeliveryLineApi, } from './customer-delivery-line-api';
|
|
3
|
+
export { createInternalStockMove, fetchInternalMove as fetchInternalMoveApi, modifyInternalMoveNotes, realizeInternalMove as realizeInternalMoveApi, searchInternalMoveFilter, } from './internal-move-api';
|
|
4
|
+
export { fetchInternalMoveLine as fetchInternalMoveLineApi, searchInternalMoveLines, updateInternalMoveLine as updateInternalMoveLineApi, } from './internal-move-line-api';
|
|
5
5
|
export * from './inventory-api';
|
|
6
|
-
export
|
|
6
|
+
export { addTrackingNumber, createInventoryLine, fetchInventoryLine as fetchInventoryLineApi, searchInventoryLines, updateInventoryLineDetails, } from './inventory-line-api';
|
|
7
7
|
export * from './partner-api';
|
|
8
8
|
export * from './product-api';
|
|
9
|
-
export { fetchStockCorrection as fetchStockCorrectionApi,
|
|
9
|
+
export { createStockCorrection, fetchStockCorrection as fetchStockCorrectionApi, searchStockCorrection, updateStockCorrection, } from './stock-correction-api';
|
|
10
10
|
export * from './stock-correction-reason-api';
|
|
11
11
|
export * from './stock-location-api';
|
|
12
|
-
export
|
|
13
|
-
export {
|
|
14
|
-
export { searchSupplierArrivalLines, updateLine as updateSupplierArrivalLineApi, } from './supplier-arrival-line-api';
|
|
12
|
+
export { searchAvailableProducts as searchAvailableProductsApi, searchStockLocationLine, } from './stock-location-line-api';
|
|
13
|
+
export { addLineStockMove as addSupplierArrivalLine, fetchSupplierArrival as fetchSupplierArrivalApi, realizeSockMove as realizeSupplierArrivalApi, searchSupplierArrivalFilter, } from './supplier-arrival-api';
|
|
14
|
+
export { fetchSupplierArrivalLine as fetchSupplierArrivalLineApi, searchSupplierArrivalLines, updateLine as updateSupplierArrivalLineApi, } from './supplier-arrival-line-api';
|
|
15
15
|
export * from './supplier-catalog-api';
|
|
16
|
-
export
|
|
16
|
+
export { fetchStockConfig as fetchStockConfigApi, fetchSupplychainConfig, } from './supplychain-config-api';
|
|
17
17
|
export * from './tracking-number-api';
|
|
18
18
|
export * from './unit-api';
|
package/lib/api/index.js
CHANGED
|
@@ -15,22 +15,22 @@
|
|
|
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 { addLineStockMove as addCustomerDeliveryLine,
|
|
19
|
-
export { searchCustomerDeliveryLines, updateLine as updateCustomerDeliveryLineApi, } from './customer-delivery-line-api';
|
|
20
|
-
export { fetchInternalMove as fetchInternalMoveApi,
|
|
21
|
-
export { searchInternalMoveLines, updateInternalMoveLine as updateInternalMoveLineApi, } from './internal-move-line-api';
|
|
18
|
+
export { addLineStockMove as addCustomerDeliveryLine, fetchCustomerDelivery as fetchCustomerDeliveryApi, realizeSockMove as realizeCustomerDeliveryApi, searchDeliveryFilter, } from './customer-delivery-api';
|
|
19
|
+
export { searchCustomerDeliveryLines, updateLine as updateCustomerDeliveryLineApi, fetchCustomerDeliveryLine as fetchCustomerDeliveryLineApi, } from './customer-delivery-line-api';
|
|
20
|
+
export { createInternalStockMove, fetchInternalMove as fetchInternalMoveApi, modifyInternalMoveNotes, realizeInternalMove as realizeInternalMoveApi, searchInternalMoveFilter, } from './internal-move-api';
|
|
21
|
+
export { fetchInternalMoveLine as fetchInternalMoveLineApi, searchInternalMoveLines, updateInternalMoveLine as updateInternalMoveLineApi, } from './internal-move-line-api';
|
|
22
22
|
export * from './inventory-api';
|
|
23
|
-
export
|
|
23
|
+
export { addTrackingNumber, createInventoryLine, fetchInventoryLine as fetchInventoryLineApi, searchInventoryLines, updateInventoryLineDetails, } from './inventory-line-api';
|
|
24
24
|
export * from './partner-api';
|
|
25
25
|
export * from './product-api';
|
|
26
|
-
export { fetchStockCorrection as fetchStockCorrectionApi,
|
|
26
|
+
export { createStockCorrection, fetchStockCorrection as fetchStockCorrectionApi, searchStockCorrection, updateStockCorrection, } from './stock-correction-api';
|
|
27
27
|
export * from './stock-correction-reason-api';
|
|
28
28
|
export * from './stock-location-api';
|
|
29
|
-
export
|
|
30
|
-
export {
|
|
31
|
-
export { searchSupplierArrivalLines, updateLine as updateSupplierArrivalLineApi, } from './supplier-arrival-line-api';
|
|
29
|
+
export { searchAvailableProducts as searchAvailableProductsApi, searchStockLocationLine, } from './stock-location-line-api';
|
|
30
|
+
export { addLineStockMove as addSupplierArrivalLine, fetchSupplierArrival as fetchSupplierArrivalApi, realizeSockMove as realizeSupplierArrivalApi, searchSupplierArrivalFilter, } from './supplier-arrival-api';
|
|
31
|
+
export { fetchSupplierArrivalLine as fetchSupplierArrivalLineApi, searchSupplierArrivalLines, updateLine as updateSupplierArrivalLineApi, } from './supplier-arrival-line-api';
|
|
32
32
|
export * from './supplier-catalog-api';
|
|
33
|
-
export
|
|
33
|
+
export { fetchStockConfig as fetchStockConfigApi, fetchSupplychainConfig, } from './supplychain-config-api';
|
|
34
34
|
export * from './tracking-number-api';
|
|
35
35
|
export * from './unit-api';
|
|
36
36
|
//# sourceMappingURL=index.js.map
|
package/lib/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,IAAI,uBAAuB,EAC3C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,IAAI,uBAAuB,EAC3C,qBAAqB,IAAI,wBAAwB,EACjD,eAAe,IAAI,0BAA0B,EAC7C,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,EAC3B,UAAU,IAAI,6BAA6B,EAC3C,yBAAyB,IAAI,4BAA4B,GAC1D,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,iBAAiB,IAAI,oBAAoB,EACzC,uBAAuB,EACvB,mBAAmB,IAAI,sBAAsB,EAC7C,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,IAAI,wBAAwB,EACjD,uBAAuB,EACvB,sBAAsB,IAAI,yBAAyB,GACpD,MAAM,0BAA0B,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,IAAI,qBAAqB,EAC3C,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,qBAAqB,EACrB,oBAAoB,IAAI,uBAAuB,EAC/C,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,uBAAuB,IAAI,0BAA0B,EACrD,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,IAAI,sBAAsB,EAC1C,oBAAoB,IAAI,uBAAuB,EAC/C,eAAe,IAAI,yBAAyB,EAC5C,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,wBAAwB,IAAI,2BAA2B,EACvD,0BAA0B,EAC1B,UAAU,IAAI,4BAA4B,GAC3C,MAAM,6BAA6B,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EACL,gBAAgB,IAAI,mBAAmB,EACvC,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC"}
|
|
@@ -27,7 +27,7 @@ const SmallPropertyCard = ({ style, title, value, unit = null, interactive = fal
|
|
|
27
27
|
};
|
|
28
28
|
return (<Card style={[styles.card, style]}>
|
|
29
29
|
<PopUpOneButton visible={popUp} data={unit == null ? `${value}` : `${value} ${unit}`} title={title} btnTitle={I18n.t('Auth_Close')} onPress={() => setPopUp(!popUp)}/>
|
|
30
|
-
<TouchableOpacity activeOpacity={0.9} onPress={handlePress} disabled={interactive}>
|
|
30
|
+
<TouchableOpacity activeOpacity={0.9} onPress={handlePress} disabled={!interactive}>
|
|
31
31
|
<View style={styles.container}>
|
|
32
32
|
<Text style={styles.title}>{title}</Text>
|
|
33
33
|
<Text style={styles.value}>{value}</Text>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmallPropertyCard.js","sourceRoot":"","sources":["../../../../src/components/organisms/SmallPropertyCard/SmallPropertyCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,EAAC,IAAI,EAAE,cAAc,EAAE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AAC,SAAS,CAAC,CAC5B;UAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,CACxC;UAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,CACxC;UAAA,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAClD;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,gBAAgB,CACpB;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,iBAAiB,EAAE,CAAC;QACpB,eAAe,EAAE,CAAC;QAClB,YAAY,EAAE,CAAC;QACf,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,IAAI;KACrB;IACD,SAAS,EAAE;QACT,UAAU,EAAE,QAAQ;KACrB;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE;KACb;IACD,KAAK,EAAE;QACL,UAAU,EAAE,MAAM;QAClB,QAAQ,EAAE,EAAE;KACb;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export default StockLocationSearchBar;
|
|
2
|
-
declare function StockLocationSearchBar({ style,
|
|
2
|
+
declare function StockLocationSearchBar({ style, placeholderKey, defaultValue, onChange, scanKey, showDetailsPopup, secondFilter, isFocus, isScrollViewContainer, showTitle, titleKey, defaultStockLocation, readOnly, }: {
|
|
3
3
|
style: any;
|
|
4
|
-
styleTxt: any;
|
|
5
4
|
placeholderKey?: string;
|
|
6
5
|
defaultValue?: any;
|
|
7
6
|
onChange?: () => void;
|
|
@@ -16,11 +16,9 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback, useEffect } from 'react';
|
|
19
|
-
import { Platform, StyleSheet, View } from 'react-native';
|
|
20
19
|
import { displayItemName, ScannerAutocompleteSearch, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
21
|
-
import { FormInput, Text } from '@axelor/aos-mobile-ui';
|
|
22
20
|
import { filterSecondStockLocations, searchStockLocations, } from '../../../features/stockLocationSlice';
|
|
23
|
-
const StockLocationSearchBar = ({ style,
|
|
21
|
+
const StockLocationSearchBar = ({ style, placeholderKey = 'Stock_StockLocation', defaultValue = null, onChange = () => { }, scanKey, showDetailsPopup = true, secondFilter = false, isFocus = false, isScrollViewContainer = false, showTitle = false, titleKey = 'Stock_StockLocation', defaultStockLocation = null, readOnly, }) => {
|
|
24
22
|
const I18n = useTranslator();
|
|
25
23
|
const dispatch = useDispatch();
|
|
26
24
|
const { loadingStockLocation: loading, moreLoadingStockLocation: moreLoading, isListEndStockLocation: isListEnd, stockLocationList, loadingStockLocationMultiFilter: loadingMultiFilter, moreLoadingStockLocationMultiFilter: moreLoadingMultiFilter, isListEndStockLocationMultiFilter: isListEndMultiFilter, stockLocationListMultiFilter, } = useSelector(state => state.stockLocation);
|
|
@@ -47,27 +45,9 @@ const StockLocationSearchBar = ({ style, styleTxt, placeholderKey = 'Stock_Stock
|
|
|
47
45
|
? fetchStockLocationsMultiFilterAPI(defaultArgs)
|
|
48
46
|
: fetchStockLocationsAPI(defaultArgs);
|
|
49
47
|
}, [fetchStockLocationsAPI, fetchStockLocationsMultiFilterAPI, secondFilter]);
|
|
50
|
-
|
|
51
|
-
return (<FormInput style={styles.readonlyCard} title={I18n.t(placeholderKey)} defaultValue={defaultValue ? displayItemName(defaultValue) : null} readOnly={true}/>);
|
|
52
|
-
}
|
|
53
|
-
return (<View style={[Platform.OS === 'ios' ? styles.container : null, style]}>
|
|
54
|
-
{showTitle && (<Text style={[styles.title, styleTxt]}>{I18n.t(titleKey)}</Text>)}
|
|
55
|
-
<ScannerAutocompleteSearch objectList={secondFilter ? stockLocationListMultiFilter : stockLocationList} value={defaultValue} onChangeValue={onChange} fetchData={secondFilter
|
|
48
|
+
return (<ScannerAutocompleteSearch title={showTitle && I18n.t(titleKey)} objectList={secondFilter ? stockLocationListMultiFilter : stockLocationList} value={defaultValue} readonly={readOnly} onChangeValue={onChange} fetchData={secondFilter
|
|
56
49
|
? fetchStockLocationsMultiFilterAPI
|
|
57
|
-
: fetchStockLocationsAPI} displayValue={displayItemName} scanKeySearch={scanKey} placeholder={I18n.t(placeholderKey)} showDetailsPopup={showDetailsPopup} loadingList={secondFilter ? loadingMultiFilter : loading} moreLoading={secondFilter ? moreLoadingMultiFilter : moreLoading} isListEnd={secondFilter ? isListEndMultiFilter : isListEnd} isFocus={isFocus} isScrollViewContainer={isScrollViewContainer}/>
|
|
58
|
-
</View>);
|
|
50
|
+
: fetchStockLocationsAPI} displayValue={displayItemName} scanKeySearch={scanKey} placeholder={I18n.t(placeholderKey)} showDetailsPopup={showDetailsPopup} loadingList={secondFilter ? loadingMultiFilter : loading} moreLoading={secondFilter ? moreLoadingMultiFilter : moreLoading} isListEnd={secondFilter ? isListEndMultiFilter : isListEnd} isFocus={isFocus} isScrollViewContainer={isScrollViewContainer} style={style}/>);
|
|
59
51
|
};
|
|
60
|
-
const styles = StyleSheet.create({
|
|
61
|
-
container: {
|
|
62
|
-
zIndex: 41,
|
|
63
|
-
},
|
|
64
|
-
title: {
|
|
65
|
-
marginHorizontal: 24,
|
|
66
|
-
},
|
|
67
|
-
readonlyCard: {
|
|
68
|
-
width: '90%',
|
|
69
|
-
marginLeft: 18,
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
52
|
export default StockLocationSearchBar;
|
|
73
53
|
//# sourceMappingURL=StockLocationSearchBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StockLocationSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/StockLocationSearchBar/StockLocationSearchBar.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"StockLocationSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/StockLocationSearchBar/StockLocationSearchBar.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACpD,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAE9C,MAAM,sBAAsB,GAAG,CAAC,EAC9B,KAAK,EACL,cAAc,GAAG,qBAAqB,EACtC,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,OAAO,EACP,gBAAgB,GAAG,IAAI,EACvB,YAAY,GAAG,KAAK,EACpB,OAAO,GAAG,KAAK,EACf,qBAAqB,GAAG,KAAK,EAC7B,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,qBAAqB,EAChC,oBAAoB,GAAG,IAAI,EAC3B,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EACJ,oBAAoB,EAAE,OAAO,EAC7B,wBAAwB,EAAE,WAAW,EACrC,sBAAsB,EAAE,SAAS,EACjC,iBAAiB,EACjB,+BAA+B,EAAE,kBAAkB,EACnD,mCAAm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YAAY,CAAC,CAAC,CAAC;IAE9E,OAAO,CACL,CAAC,yBAAyB,CACxB,KAAK,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CACrC,UAAU,CAAC,CACT,YAAY,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,iBAAiB,CAChE,CACD,KAAK,CAAC,CAAC,YAAY,CAAC,CACpB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,SAAS,CAAC,CACR,YAAY;YACV,CAAC,CAAC,iCAAiC;YACnC,CAAC,CAAC,sBAAsB,CAC3B,CACD,YAAY,CAAC,CAAC,eAAe,CAAC,CAC9B,aAAa,CAAC,CAAC,OAAO,CAAC,CACvB,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CACpC,gBAAgB,CAAC,CAAC,gBAAgB,CAAC,CACnC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,CAAC,CACzD,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,WAAW,CAAC,CACjE,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAC3D,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,qBAAqB,CAAC,CAAC,qBAAqB,CAAC,CAC7C,KAAK,CAAC,CAAC,KAAK,CAAC,EACb,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default TrackingNumberSearchBar;
|
|
2
|
-
declare function TrackingNumberSearchBar({ placeholderKey, defaultValue, onChange, scanKey, showDetailsPopup, navigate, oneFilter, isFocus, changeScreenAfter, product, style, }: {
|
|
2
|
+
declare function TrackingNumberSearchBar({ placeholderKey, defaultValue, onChange, scanKey, showDetailsPopup, navigate, oneFilter, isFocus, required, changeScreenAfter, product, style, }: {
|
|
3
3
|
placeholderKey?: string;
|
|
4
4
|
defaultValue: any;
|
|
5
5
|
onChange: any;
|
|
@@ -8,6 +8,7 @@ declare function TrackingNumberSearchBar({ placeholderKey, defaultValue, onChang
|
|
|
8
8
|
navigate?: boolean;
|
|
9
9
|
oneFilter?: boolean;
|
|
10
10
|
isFocus?: boolean;
|
|
11
|
+
required?: boolean;
|
|
11
12
|
changeScreenAfter?: boolean;
|
|
12
13
|
product: any;
|
|
13
14
|
style: any;
|
|
@@ -19,14 +19,14 @@ import React, { useCallback } from 'react';
|
|
|
19
19
|
import { ScannerAutocompleteSearch, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
20
20
|
import { filterTrackingNumber } from '../../../features/trackingNumberSlice';
|
|
21
21
|
import { displayItemTrackingNumber } from '../../../utils/displayers';
|
|
22
|
-
const TrackingNumberSearchBar = ({ placeholderKey = 'Stock_TrackingNumber', defaultValue, onChange, scanKey, showDetailsPopup = true, navigate = false, oneFilter = false, isFocus = false, changeScreenAfter = false, product, style, }) => {
|
|
22
|
+
const TrackingNumberSearchBar = ({ placeholderKey = 'Stock_TrackingNumber', defaultValue, onChange, scanKey, showDetailsPopup = true, navigate = false, oneFilter = false, isFocus = false, required = false, changeScreenAfter = false, product, style, }) => {
|
|
23
23
|
const I18n = useTranslator();
|
|
24
24
|
const dispatch = useDispatch();
|
|
25
25
|
const { trackingNumberList, loading, moreLoading, isListEnd } = useSelector(state => state.trackingNumber);
|
|
26
26
|
const fetchTrackingNumberAPI = useCallback(({ page = 0, searchValue }) => {
|
|
27
27
|
dispatch(filterTrackingNumber({ productId: product.id, page, searchValue }));
|
|
28
28
|
}, [dispatch, product]);
|
|
29
|
-
return (<ScannerAutocompleteSearch style={style} objectList={trackingNumberList} value={defaultValue} onChangeValue={onChange} fetchData={fetchTrackingNumberAPI} displayValue={displayItemTrackingNumber} scanKeySearch={scanKey} placeholder={I18n.t(placeholderKey)} showDetailsPopup={showDetailsPopup} loadingList={loading} moreLoading={moreLoading} isListEnd={isListEnd} navigate={navigate} oneFilter={oneFilter} isFocus={isFocus} changeScreenAfter={changeScreenAfter}/>);
|
|
29
|
+
return (<ScannerAutocompleteSearch style={style} objectList={trackingNumberList} value={defaultValue} onChangeValue={onChange} fetchData={fetchTrackingNumberAPI} displayValue={displayItemTrackingNumber} scanKeySearch={scanKey} placeholder={I18n.t(placeholderKey)} showDetailsPopup={showDetailsPopup} loadingList={loading} moreLoading={moreLoading} isListEnd={isListEnd} navigate={navigate} oneFilter={oneFilter} isFocus={isFocus} changeScreenAfter={changeScreenAfter} required={required}/>);
|
|
30
30
|
};
|
|
31
31
|
export default TrackingNumberSearchBar;
|
|
32
32
|
//# sourceMappingURL=TrackingNumberSearchBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrackingNumberSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/TrackingNumberSearchBar/TrackingNumberSearchBar.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,yBAAyB,EACzB,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,oBAAoB,EAAC,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAC,yBAAyB,EAAC,MAAM,2BAA2B,CAAC;AAEpE,MAAM,uBAAuB,GAAG,CAAC,EAC/B,cAAc,GAAG,sBAAsB,EACvC,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,gBAAgB,GAAG,IAAI,EACvB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,KAAK,EACf,iBAAiB,GAAG,KAAK,EACzB,OAAO,EACP,KAAK,GACN,EAAE,EAAE;I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AC/B,KAAK,CAAC,CAAC,YAAY,CAAC,CACpB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,SAAS,CAAC,CAAC,sBAAsB,CAAC,CAClC,YAAY,CAAC,CAAC,yBAAyB,CAAC,CACxC,aAAa,CAAC,CAAC,OAAO,CAAC,CACvB,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CACpC,gBAAgB,CAAC,CAAC,gBAAgB,CAAC,CACnC,WAAW,CAAC,CAAC,OAAO,CAAC,CACrB,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,QAAQ,CAAC,CAAC,QAAQ,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/lib/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export default InternalMoveLineButtons;
|
|
2
|
-
declare function InternalMoveLineButtons({
|
|
3
|
-
saveStatus: any;
|
|
2
|
+
declare function InternalMoveLineButtons({ internalMove, internalMoveLine, unit, movedQty, fromStockLocation, toStockLocation, visible, }: {
|
|
4
3
|
internalMove: any;
|
|
5
4
|
internalMoveLine: any;
|
|
6
5
|
unit: any;
|
package/lib/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.js
CHANGED
|
@@ -19,7 +19,7 @@ import React from 'react';
|
|
|
19
19
|
import { useDispatch, useNavigation, useTranslator, } from '@axelor/aos-mobile-core';
|
|
20
20
|
import { Button } from '@axelor/aos-mobile-ui';
|
|
21
21
|
import { updateInternalMoveLine } from '../../../../features/internalMoveLineSlice';
|
|
22
|
-
const InternalMoveLineButtons = ({
|
|
22
|
+
const InternalMoveLineButtons = ({ internalMove, internalMoveLine, unit, movedQty, fromStockLocation, toStockLocation, visible = true, }) => {
|
|
23
23
|
const I18n = useTranslator();
|
|
24
24
|
const dispatch = useDispatch();
|
|
25
25
|
const navigation = useNavigation();
|
|
@@ -36,7 +36,7 @@ const InternalMoveLineButtons = ({ saveStatus, internalMove, internalMoveLine, u
|
|
|
36
36
|
internalMoveId: internalMove.id,
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
|
-
if (!visible
|
|
39
|
+
if (!visible) {
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
42
|
return <Button title={I18n.t('Base_Save')} onPress={handleSave}/>;
|
package/lib/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalMoveLineButtons.js","sourceRoot":"","sources":["../../../../../src/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,aAAa,EACb,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAC,sBAAsB,EAAC,MAAM,4CAA4C,CAAC;AAElF,MAAM,uBAAuB,GAAG,CAAC,EAC/B,
|
|
1
|
+
{"version":3,"file":"InternalMoveLineButtons.js","sourceRoot":"","sources":["../../../../../src/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,aAAa,EACb,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAC,sBAAsB,EAAC,MAAM,4CAA4C,CAAC;AAElF,MAAM,uBAAuB,GAAG,CAAC,EAC/B,YAAY,EACZ,gBAAgB,EAChB,IAAI,EACJ,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,OAAO,GAAG,IAAI,GACf,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,QAAQ,CACN,sBAAsB,CAAC;YACrB,eAAe,EAAE,gBAAgB,CAAC,EAAE;YACpC,OAAO,EAAE,gBAAgB,CAAC,OAAO;YACjC,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,IAAI,CAAC,EAAE;YACf,mBAAmB,EACjB,iBAAiB,EAAE,EAAE,IAAI,YAAY,CAAC,iBAAiB,EAAE,EAAE;YAC7D,iBAAiB,EACf,eAAe,EAAE,EAAE,IAAI,YAAY,CAAC,eAAe,EAAE,EAAE;SAC1D,CAAC,CACH,CAAC;QAEF,UAAU,CAAC,QAAQ,CAAC,kCAAkC,EAAE;YACtD,cAAc,EAAE,YAAY,CAAC,EAAE;SAChC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,EAAG,CAAC;AACrE,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/lib/components/templates/internalMove/InternalMoveLineNotes/InternalMoveLineNotes.js
CHANGED
|
@@ -17,35 +17,15 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import { FormHtmlInput } from '@axelor/aos-mobile-ui';
|
|
20
|
-
import StockMove from '../../../../types/stock-move';
|
|
21
20
|
import { useTranslator } from '@axelor/aos-mobile-core';
|
|
22
|
-
import
|
|
21
|
+
import StockMove from '../../../../types/stock-move';
|
|
23
22
|
const InternalMoveLineNotes = ({ status = null, notes, setNotes = () => { }, setSaveStatus = () => { }, }) => {
|
|
24
23
|
const I18n = useTranslator();
|
|
25
24
|
const handleNotesChange = value => {
|
|
26
25
|
setNotes(value);
|
|
27
26
|
setSaveStatus(false);
|
|
28
27
|
};
|
|
29
|
-
|
|
30
|
-
return (<View style={styles.container}>
|
|
31
|
-
<FormHtmlInput title={I18n.t('Stock_NotesOnStockMove')} onChange={handleNotesChange} defaultValue={notes} style={styles.input}/>
|
|
32
|
-
</View>);
|
|
33
|
-
}
|
|
34
|
-
if (notes != null) {
|
|
35
|
-
return (<View style={styles.container}>
|
|
36
|
-
<FormHtmlInput title={I18n.t('Stock_NotesOnStockMove')} onChange={handleNotesChange} defaultValue={notes} readonly={true} style={styles.input}/>
|
|
37
|
-
</View>);
|
|
38
|
-
}
|
|
39
|
-
return null;
|
|
28
|
+
return (<FormHtmlInput title={I18n.t('Stock_NotesOnStockMove')} onChange={handleNotesChange} defaultValue={notes} readonly={status !== StockMove.status.Draft} hideIfNull={true}/>);
|
|
40
29
|
};
|
|
41
|
-
const styles = StyleSheet.create({
|
|
42
|
-
container: {
|
|
43
|
-
width: '90%',
|
|
44
|
-
alignSelf: 'center',
|
|
45
|
-
},
|
|
46
|
-
input: {
|
|
47
|
-
width: '100%',
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
30
|
export default InternalMoveLineNotes;
|
|
51
31
|
//# sourceMappingURL=InternalMoveLineNotes.js.map
|
package/lib/components/templates/internalMove/InternalMoveLineNotes/InternalMoveLineNotes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalMoveLineNotes.js","sourceRoot":"","sources":["../../../../../src/components/templates/internalMove/InternalMoveLineNotes/InternalMoveLineNotes.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"InternalMoveLineNotes.js","sourceRoot":"","sources":["../../../../../src/components/templates/internalMove/InternalMoveLineNotes/InternalMoveLineNotes.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,MAAM,qBAAqB,GAAG,CAAC,EAC7B,MAAM,GAAG,IAAI,EACb,KAAK,EACL,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,aAAa,GAAG,GAAG,EAAE,GAAE,CAAC,GACzB,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,MAAM,iBAAiB,GAAG,KAAK,CAAC,EAAE;QAChC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChB,aAAa,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,aAAa,CACZ,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CACxC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAC5B,YAAY,CAAC,CAAC,KAAK,CAAC,CACpB,QAAQ,CAAC,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAC5C,UAAU,CAAC,CAAC,IAAI,CAAC,EACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/lib/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default InternalMoveLinePicker;
|
|
2
|
-
declare function InternalMoveLinePicker({ unit, status, setUnit,
|
|
2
|
+
declare function InternalMoveLinePicker({ unit, status, setUnit, isScrollViewContainer, }: {
|
|
3
3
|
unit: any;
|
|
4
4
|
status: any;
|
|
5
5
|
setUnit: any;
|
|
6
|
-
|
|
6
|
+
isScrollViewContainer?: boolean;
|
|
7
7
|
}): JSX.Element;
|
package/lib/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.js
CHANGED
|
@@ -20,7 +20,7 @@ import { getFromList, Picker } from '@axelor/aos-mobile-ui';
|
|
|
20
20
|
import { useDispatch, useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
21
21
|
import StockMove from '../../../../types/stock-move';
|
|
22
22
|
import { fetchUnit } from '../../../../features/unitSlice';
|
|
23
|
-
const InternalMoveLinePicker = ({ unit, status, setUnit,
|
|
23
|
+
const InternalMoveLinePicker = ({ unit, status, setUnit, isScrollViewContainer = false, }) => {
|
|
24
24
|
const I18n = useTranslator();
|
|
25
25
|
const dispatch = useDispatch();
|
|
26
26
|
const { unitList } = useSelector(state => state.unit);
|
|
@@ -31,13 +31,12 @@ const InternalMoveLinePicker = ({ unit, status, setUnit, setSaveStatus = () => {
|
|
|
31
31
|
else {
|
|
32
32
|
setUnit(getFromList(unitList, 'id', unitId));
|
|
33
33
|
}
|
|
34
|
-
setSaveStatus(false);
|
|
35
34
|
};
|
|
36
35
|
useEffect(() => {
|
|
37
36
|
dispatch(fetchUnit());
|
|
38
37
|
}, [dispatch]);
|
|
39
|
-
return (<Picker title={I18n.t('Stock_Unit')} onValueChange={handleUnitChange} defaultValue={unit?.id} listItems={unitList} labelField="name" valueField="id"
|
|
40
|
-
status === StockMove.status.Canceled}
|
|
38
|
+
return (<Picker title={I18n.t('Stock_Unit')} onValueChange={handleUnitChange} defaultValue={unit?.id} listItems={unitList} labelField="name" valueField="id" readonly={status === StockMove.status.Realized ||
|
|
39
|
+
status === StockMove.status.Canceled} required={true} isScrollViewContainer={isScrollViewContainer}/>);
|
|
41
40
|
};
|
|
42
41
|
export default InternalMoveLinePicker;
|
|
43
42
|
//# sourceMappingURL=InternalMoveLinePicker.js.map
|
package/lib/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalMoveLinePicker.js","sourceRoot":"","sources":["../../../../../src/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACvC,OAAO,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAEzD,MAAM,sBAAsB,GAAG,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"InternalMoveLinePicker.js","sourceRoot":"","sources":["../../../../../src/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACvC,OAAO,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAEzD,MAAM,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-1,11 +1,10 @@
|
|
|
1
1
|
export default InternalMoveLineQuantityCard;
|
|
2
|
-
declare function InternalMoveLineQuantityCard({ status, movedQty, plannedQty, stockProduct, setMovedQty,
|
|
2
|
+
declare function InternalMoveLineQuantityCard({ status, movedQty, plannedQty, stockProduct, setMovedQty, originalStockLocation, trackingNumber, }: {
|
|
3
3
|
status: any;
|
|
4
4
|
movedQty: any;
|
|
5
5
|
plannedQty: any;
|
|
6
6
|
stockProduct: any;
|
|
7
7
|
setMovedQty: any;
|
|
8
|
-
setSaveStatus?: () => void;
|
|
9
8
|
originalStockLocation: any;
|
|
10
9
|
trackingNumber: any;
|
|
11
10
|
}): JSX.Element;
|
|
@@ -21,12 +21,11 @@ import { Text } from '@axelor/aos-mobile-ui';
|
|
|
21
21
|
import { useNavigation, useTranslator } from '@axelor/aos-mobile-core';
|
|
22
22
|
import { QuantityCard } from '../../../organisms';
|
|
23
23
|
import StockMove from '../../../../types/stock-move';
|
|
24
|
-
const InternalMoveLineQuantityCard = ({ status, movedQty, plannedQty, stockProduct, setMovedQty,
|
|
24
|
+
const InternalMoveLineQuantityCard = ({ status, movedQty, plannedQty, stockProduct, setMovedQty, originalStockLocation, trackingNumber, }) => {
|
|
25
25
|
const I18n = useTranslator();
|
|
26
26
|
const navigation = useNavigation();
|
|
27
27
|
const handleQtyChange = value => {
|
|
28
28
|
setMovedQty(value);
|
|
29
|
-
setSaveStatus(false);
|
|
30
29
|
};
|
|
31
30
|
const handleCreateCorrection = () => {
|
|
32
31
|
navigation.navigate('StockCorrectionCreationScreen', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalMoveLineQuantityCard.js","sourceRoot":"","sources":["../../../../../src/components/templates/internalMove/InternalMoveLineQuantityCard/InternalMoveLineQuantityCard.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,MAAM,4BAA4B,GAAG,CAAC,EACpC,MAAM,EACN,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"InternalMoveLineQuantityCard.js","sourceRoot":"","sources":["../../../../../src/components/templates/internalMove/InternalMoveLineQuantityCard/InternalMoveLineQuantityCard.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,MAAM,4BAA4B,GAAG,CAAC,EACpC,MAAM,EACN,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,cAAc,GACf,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,eAAe,GAAG,KAAK,CAAC,EAAE;QAC9B,WAAW,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAClC,UAAU,CAAC,QAAQ,CAAC,+BAA+B,EAAE;YACnD,aAAa,EAAE,qBAAqB;YACpC,OAAO,EAAE,YAAY;YACrB,cAAc,EAAE,cAAc;SAC/B,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,YAAY,CACX,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CACnC,YAAY,CAAC,CAAC,QAAQ,CAAC,CACvB,aAAa,CAAC,CAAC,eAAe,CAAC,CAC/B,QAAQ,CAAC,CACP,MAAM,KAAK,SAAS,CAAC,MAAM,CAAC,KAAK,IAAI,MAAM,KAAK,SAAS,CAAC,MAAM,CAAC,OAAO,CACzE,CACD,SAAS,CAAC,CACR,MAAM,KAAK,SAAS,CAAC,MAAM,CAAC,KAAK,IAAI,MAAM,KAAK,SAAS,CAAC,MAAM,CAAC,OAAO,CACzE,CACD,gBAAgB,CAAC,CAAC,sBAAsB,CAAC,CACzC,WAAW,CAAC,CAAC,IAAI,CAAC,CAClB;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACvB;QAAA,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,KAAK,UAAU,CAAC,UAAU,CAAC,CAAC,OAAO,CACjE,CAAC,CACF,IAAI,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,CAChC;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,YAAY,CAAC,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC;AAEH,eAAe,4BAA4B,CAAC"}
|
package/lib/components/templates/product/ProductTrackingNumberSelect/ProductTrackingNumberSelect.js
CHANGED
|
@@ -15,52 +15,28 @@
|
|
|
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, {
|
|
18
|
+
import React, { useState } from 'react';
|
|
19
19
|
import { StyleSheet, View } from 'react-native';
|
|
20
|
-
import { Button,
|
|
20
|
+
import { Button, WarningCard } from '@axelor/aos-mobile-ui';
|
|
21
21
|
import { useTranslator } from '@axelor/aos-mobile-core';
|
|
22
22
|
import { TrackingNumberSearchBar } from '../../../templates';
|
|
23
23
|
const ProductTrackingNumberSelect = ({ product, visible, trackingScanKey, onAddTrackingNumber, style, }) => {
|
|
24
24
|
const I18n = useTranslator();
|
|
25
|
-
const Colors = useThemeColor();
|
|
26
25
|
const [selectedTrackingNumber, setSelectedTrackingNumber] = useState(null);
|
|
27
|
-
const styles = useMemo(() => getStyles(Colors), [Colors]);
|
|
28
26
|
if (!visible) {
|
|
29
27
|
return null;
|
|
30
28
|
}
|
|
31
29
|
return (<View style={[styles.container, style]}>
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<Text>{I18n.t('Stock_NoTrackingNumberConfigured')}</Text>
|
|
36
|
-
</Card>
|
|
37
|
-
</View>
|
|
38
|
-
{selectedTrackingNumber && (<Button title={I18n.t('Base_Add')} onPress={() => onAddTrackingNumber(selectedTrackingNumber)}/>)}
|
|
30
|
+
<TrackingNumberSearchBar onChange={setSelectedTrackingNumber} isFocus={true} product={product} scanKeySearch={trackingScanKey} defaultValue={selectedTrackingNumber} required={true}/>
|
|
31
|
+
<WarningCard errorMessage={I18n.t('Stock_NoTrackingNumberConfigured')}/>
|
|
32
|
+
{selectedTrackingNumber != null && (<Button title={I18n.t('Base_Add')} onPress={() => onAddTrackingNumber(selectedTrackingNumber)} width="50%"/>)}
|
|
39
33
|
</View>);
|
|
40
34
|
};
|
|
41
|
-
const
|
|
35
|
+
const styles = StyleSheet.create({
|
|
42
36
|
container: {
|
|
43
37
|
justifyContent: 'center',
|
|
44
38
|
alignItems: 'center',
|
|
45
|
-
zIndex:
|
|
46
|
-
},
|
|
47
|
-
autoCompleteSearchContainer: {
|
|
48
|
-
marginVertical: 10,
|
|
49
|
-
justifyContent: 'center',
|
|
50
|
-
alignItems: 'center',
|
|
51
|
-
width: '100%',
|
|
52
|
-
zIndex: 44,
|
|
53
|
-
},
|
|
54
|
-
cardTrackingNumberInfo: {
|
|
55
|
-
backgroundColor: Colors.errorColor.background_light,
|
|
56
|
-
alignItems: 'center',
|
|
57
|
-
justifyContent: 'center',
|
|
58
|
-
paddingVertical: 5,
|
|
59
|
-
borderRadius: 5,
|
|
60
|
-
width: '85%',
|
|
61
|
-
},
|
|
62
|
-
autoSearchComplete: {
|
|
63
|
-
borderColor: Colors.errorColor.background,
|
|
39
|
+
zIndex: 40,
|
|
64
40
|
},
|
|
65
41
|
});
|
|
66
42
|
export default ProductTrackingNumberSelect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTrackingNumberSelect.js","sourceRoot":"","sources":["../../../../../src/components/templates/product/ProductTrackingNumberSelect/ProductTrackingNumberSelect.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,
|
|
1
|
+
{"version":3,"file":"ProductTrackingNumberSelect.js","sourceRoot":"","sources":["../../../../../src/components/templates/product/ProductTrackingNumberSelect/ProductTrackingNumberSelect.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAC,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAE3D,MAAM,2BAA2B,GAAG,CAAC,EACnC,OAAO,EACP,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,KAAK,GACN,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,MAAM,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3E,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACrC;MAAA,CAAC,uBAAuB,CACtB,QAAQ,CAAC,CAAC,yBAAyB,CAAC,CACpC,OAAO,CAAC,CAAC,IAAI,CAAC,CACd,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,aAAa,CAAC,CAAC,eAAe,CAAC,CAC/B,YAAY,CAAC,CAAC,sBAAsB,CAAC,CACrC,QAAQ,CAAC,CAAC,IAAI,CAAC,EAEjB;MAAA,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,EACtE;MAAA,CAAC,sBAAsB,IAAI,IAAI,IAAI,CACjC,CAAC,MAAM,CACL,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAC1B,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,CAAC,CAC3D,KAAK,CAAC,KAAK,EACX,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,EAAE;KACX;CACF,CAAC,CAAC;AAEH,eAAe,2BAA2B,CAAC"}
|
package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js
CHANGED
|
@@ -38,6 +38,9 @@ const StockCorrectionButtons = ({ saveStatus, reason, stockCorrection, realQty,
|
|
|
38
38
|
}, [dispatch, navigation, realQty, reason, saveStatus, stockCorrection]);
|
|
39
39
|
const handleSave = useCallback(() => handleAPI(StockCorrection.status.Draft), [handleAPI]);
|
|
40
40
|
const handleValidate = useCallback(() => handleAPI(StockCorrection.status.Validated), [handleAPI]);
|
|
41
|
+
if (reason?.id == null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
41
44
|
return (<>
|
|
42
45
|
{saveStatus ? null : (<Button title={I18n.t('Base_Save')} color={Colors.secondaryColor} onPress={handleSave}/>)}
|
|
43
46
|
{status === StockCorrection.status.Validated ||
|
|
@@ -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;AACzC,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,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,MAAM,sBAAsB,GAAG,CAAC,EAC9B,UAAU,EACV,MAAM,EACN,eAAe,EACf,OAAO,EACP,MAAM,GACP,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"StockCorrectionButtons.js","sourceRoot":"","sources":["../../../../../src/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,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MAAM,UAAU,GAAG,WAAW,CAC5B,GAAG,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,EAC7C,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAChC,GAAG,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC,SAAS,CAAC,EACjD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,IAAI,MAAM,EAAE,EAAE,IAAI,IAAI,EAAE;QACtB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,EACE;MAAA,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACnB,CAAC,MAAM,CACL,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAC3B,KAAK,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAC7B,OAAO,CAAC,CAAC,UAAU,CAAC,EACpB,CACH,CACD;MAAA,CAAC,MAAM,KAAK,eAAe,CAAC,MAAM,CAAC,SAAS;YAC5C,cAAc,EAAE,kCAAkC,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACpE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,EAAG,CACpE,CACH;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import React, { useEffect } from 'react';
|
|
19
|
+
import { StyleSheet } from 'react-native';
|
|
19
20
|
import { useTranslator, useSelector, useDispatch } from '@axelor/aos-mobile-core';
|
|
20
21
|
import { getFromList, Picker } from '@axelor/aos-mobile-ui';
|
|
21
22
|
import StockCorrection from '../../../../types/stock-corrrection';
|
|
22
23
|
import { fetchStockCorrectionReasons } from '../../../../features/stockCorrectionReasonSlice';
|
|
23
|
-
import { StyleSheet } from 'react-native';
|
|
24
24
|
const StockCorrectionReasonPicker = ({ status, reason, setSaveStatus = () => { }, setReason, }) => {
|
|
25
25
|
const I18n = useTranslator();
|
|
26
26
|
const dispatch = useDispatch();
|
|
@@ -37,7 +37,7 @@ const StockCorrectionReasonPicker = ({ status, reason, setSaveStatus = () => { }
|
|
|
37
37
|
}
|
|
38
38
|
setSaveStatus(false);
|
|
39
39
|
};
|
|
40
|
-
return (<Picker title={I18n.t('Stock_Reason')} onValueChange={handleReasonChange} defaultValue={reason?.id} listItems={stockCorrectionReasonList} labelField="name" valueField="id" required={true}
|
|
40
|
+
return (<Picker style={styles.picker} title={I18n.t('Stock_Reason')} onValueChange={handleReasonChange} defaultValue={reason?.id} listItems={stockCorrectionReasonList} labelField="name" valueField="id" required={true} readonly={status === StockCorrection.status.Validated} isScrollViewContainer={true}/>);
|
|
41
41
|
};
|
|
42
42
|
const styles = StyleSheet.create({
|
|
43
43
|
picker: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StockCorrectionReasonPicker.js","sourceRoot":"","sources":["../../../../../src/components/templates/stockCorrection/StockCorrectionReasonPicker/StockCorrectionReasonPicker.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACvC,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAC,2BAA2B,EAAC,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"StockCorrectionReasonPicker.js","sourceRoot":"","sources":["../../../../../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ACL,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CACrB,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAC9B,aAAa,CAAC,CAAC,kBAAkB,CAAC,CAClC,YAAY,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACzB,SAAS,CAAC,CAAC,yBAAyB,CAAC,CACrC,UAAU,CAAC,MAAM,CACjB,UAAU,CAAC,IAAI,CACf,QAAQ,CAAC,CAAC,IAAI,CAAC,CACf,QAAQ,CAAC,CAAC,MAAM,KAAK,eAAe,CAAC,MAAM,CAAC,SAAS,CAAC,CACtD,qBAAqB,CAAC,CAAC,IAAI,CAAC,EAC5B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC;AAEH,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export { fetchCustomerDeliveryLines, updateCustomerDeliveryLine, } from './customerDeliveryLineSlice';
|
|
2
|
-
export { addNewLine as addNewCustomerDeliveryLine, realizeCustomerDelivery, searchDeliveries,
|
|
3
|
-
export { fetchInternalMoveLines, updateInternalMoveLine, } from './internalMoveLineSlice';
|
|
4
|
-
export {
|
|
5
|
-
export { createNewInventoryLine, fetchInventoryLines, updateInventoryLine, } from './inventoryLineSlice';
|
|
6
|
-
export {
|
|
1
|
+
export { addTrackingNumber as addTrackingNumberToCustomerDeliveryLine, fetchCustomerDeliveryLine, fetchCustomerDeliveryLines, updateCustomerDeliveryLine, } from './customerDeliveryLineSlice';
|
|
2
|
+
export { addNewLine as addNewCustomerDeliveryLine, fetchCustomerDelivery, realizeCustomerDelivery, searchDeliveries, } from './customerDeliverySlice';
|
|
3
|
+
export { addTrackingNumber as addTrackingNumberToInternalMoveLine, fetchInternalMoveLine, fetchInternalMoveLines, updateInternalMoveLine, } from './internalMoveLineSlice';
|
|
4
|
+
export { createInternalMove, fetchInternalMove, realizeInternalMove, searchInternalMoves, } from './internalMoveSlice';
|
|
5
|
+
export { addTrackingNumber as addTrackingNumberToInventoryLine, createNewInventoryLine, fetchInventoryLine, fetchInventoryLines, updateInventoryLine, } from './inventoryLineSlice';
|
|
6
|
+
export { fetchInventoryById, modifyDescription, searchInventories, updateInventory, } from './inventorySlice';
|
|
7
7
|
export { filterClients, filterSuppliers } from './partnerSlice';
|
|
8
|
-
export { fetchProductDistribution, fetchProductIndicators,
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
8
|
+
export { fetchProductsAvailability, fetchProductDistribution, fetchProductIndicators, } from './productIndicatorsSlice';
|
|
9
|
+
export { fetchProductWithId, searchProducts, updateProductLocker, } from './productSlice';
|
|
10
|
+
export { searchProductTrackingNumber } from './productTrackingNumberSlice';
|
|
11
|
+
export { fetchProductsAttributes, fetchProductVariants, } from './productVariantSlice';
|
|
11
12
|
export { getRacks } from './racksListSlice';
|
|
12
|
-
export { fetchSupplychainConfigForStockApp } from './stockAppConfigSlice';
|
|
13
|
+
export { fetchStockConfig, fetchSupplychainConfigForStockApp, } from './stockAppConfigSlice';
|
|
13
14
|
export { fetchStockCorrectionReasons } from './stockCorrectionReasonSlice';
|
|
14
|
-
export {
|
|
15
|
-
export { fetchStockLocationLine } from './stockLocationLineSlice';
|
|
15
|
+
export { createCorrection, fetchStockCorrection, searchStockCorrections, updateCorrection, } from './stockCorrectionSlice';
|
|
16
|
+
export { fetchStockLocationLine, searchAvailableProducts, } from './stockLocationLineSlice';
|
|
16
17
|
export { searchStockLocations, filterSecondStockLocations, } from './stockLocationSlice';
|
|
17
|
-
export { fetchSupplierArrivalLines, updateSupplierArrivalLine, } from './supplierArrivalLineSlice';
|
|
18
|
-
export {
|
|
18
|
+
export { fetchSupplierArrivalLines, fetchSupplierArrivalLine, updateSupplierArrivalLine, } from './supplierArrivalLineSlice';
|
|
19
|
+
export { addNewLine as addNewSupplierArrivalLine, fetchSupplierArrival, realizeSupplierArrival, searchSupplierArrivals, } from './supplierArrivalSlice';
|
|
19
20
|
export { fetchProductForSupplier } from './supplierCatalogSlice';
|
|
20
|
-
export {
|
|
21
|
+
export { createTrackingNumberSeq, filterTrackingNumber, updateSupplierTrackingNumber, } from './trackingNumberSlice';
|
|
21
22
|
export { fetchUnit } from './unitSlice';
|