@axelor/aos-mobile-stock 0.0.1
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/README.md +44 -0
- package/lib/api/customer-delivery-api.d.ts +16 -0
- package/lib/api/customer-delivery-api.js +122 -0
- package/lib/api/customer-delivery-api.js.map +1 -0
- package/lib/api/customer-delivery-line-api.d.ts +9 -0
- package/lib/api/customer-delivery-line-api.js +65 -0
- package/lib/api/customer-delivery-line-api.js.map +1 -0
- package/lib/api/index.d.ts +18 -0
- package/lib/api/index.js +36 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/internal-move-api.d.ts +20 -0
- package/lib/api/internal-move-api.js +112 -0
- package/lib/api/internal-move-api.js.map +1 -0
- package/lib/api/internal-move-line-api.d.ts +4 -0
- package/lib/api/internal-move-line-api.js +53 -0
- package/lib/api/internal-move-line-api.js.map +1 -0
- package/lib/api/inventory-api.d.ts +18 -0
- package/lib/api/inventory-api.js +121 -0
- package/lib/api/inventory-api.js.map +1 -0
- package/lib/api/inventory-line-api.d.ts +18 -0
- package/lib/api/inventory-line-api.js +76 -0
- package/lib/api/inventory-line-api.js.map +1 -0
- package/lib/api/partner-api.d.ts +8 -0
- package/lib/api/partner-api.js +155 -0
- package/lib/api/partner-api.js.map +1 -0
- package/lib/api/product-api.d.ts +26 -0
- package/lib/api/product-api.js +189 -0
- package/lib/api/product-api.js.map +1 -0
- package/lib/api/stock-correction-api.d.ts +17 -0
- package/lib/api/stock-correction-api.js +73 -0
- package/lib/api/stock-correction-api.js.map +1 -0
- package/lib/api/stock-correction-reason-api.d.ts +1 -0
- package/lib/api/stock-correction-reason-api.js +24 -0
- package/lib/api/stock-correction-reason-api.js.map +1 -0
- package/lib/api/stock-location-api.d.ts +7 -0
- package/lib/api/stock-location-api.js +121 -0
- package/lib/api/stock-location-api.js.map +1 -0
- package/lib/api/stock-location-line-api.d.ts +6 -0
- package/lib/api/stock-location-line-api.js +114 -0
- package/lib/api/stock-location-line-api.js.map +1 -0
- package/lib/api/supplier-arrival-api.d.ts +17 -0
- package/lib/api/supplier-arrival-api.js +121 -0
- package/lib/api/supplier-arrival-api.js.map +1 -0
- package/lib/api/supplier-arrival-line-api.d.ts +10 -0
- package/lib/api/supplier-arrival-line-api.js +67 -0
- package/lib/api/supplier-arrival-line-api.js.map +1 -0
- package/lib/api/supplier-catalog-api.d.ts +4 -0
- package/lib/api/supplier-catalog-api.js +49 -0
- package/lib/api/supplier-catalog-api.js.map +1 -0
- package/lib/api/supplychain-config-api.d.ts +1 -0
- package/lib/api/supplychain-config-api.js +24 -0
- package/lib/api/supplychain-config-api.js.map +1 -0
- package/lib/api/tracking-number-api.d.ts +16 -0
- package/lib/api/tracking-number-api.js +107 -0
- package/lib/api/tracking-number-api.js.map +1 -0
- package/lib/api/unit-api.d.ts +1 -0
- package/lib/api/unit-api.js +22 -0
- package/lib/api/unit-api.js.map +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +20 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/CarrierCard/CarrierCard.d.ts +6 -0
- package/lib/components/molecules/CarrierCard/CarrierCard.js +46 -0
- package/lib/components/molecules/CarrierCard/CarrierCard.js.map +1 -0
- package/lib/components/molecules/LocationsMoveCard/LocationsMoveCard.d.ts +14 -0
- package/lib/components/molecules/LocationsMoveCard/LocationsMoveCard.js +82 -0
- package/lib/components/molecules/LocationsMoveCard/LocationsMoveCard.js.map +1 -0
- package/lib/components/molecules/ProductCardDetails/ProductCardDetails.d.ts +7 -0
- package/lib/components/molecules/ProductCardDetails/ProductCardDetails.js +42 -0
- package/lib/components/molecules/ProductCardDetails/ProductCardDetails.js.map +1 -0
- package/lib/components/molecules/StockCorrectionCard/StockCorrectionCard.d.ts +10 -0
- package/lib/components/molecules/StockCorrectionCard/StockCorrectionCard.js +75 -0
- package/lib/components/molecules/StockCorrectionCard/StockCorrectionCard.js.map +1 -0
- package/lib/components/molecules/index.d.ts +4 -0
- package/lib/components/molecules/index.js +22 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/organisms/CardStockIndicator/CardStockIndicator.d.ts +6 -0
- package/lib/components/organisms/CardStockIndicator/CardStockIndicator.js +72 -0
- package/lib/components/organisms/CardStockIndicator/CardStockIndicator.js.map +1 -0
- package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.d.ts +12 -0
- package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.js +94 -0
- package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.js.map +1 -0
- package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.d.ts +14 -0
- package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.js +81 -0
- package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.js.map +1 -0
- package/lib/components/organisms/DescriptionCard/DescriptionCard.d.ts +7 -0
- package/lib/components/organisms/DescriptionCard/DescriptionCard.js +42 -0
- package/lib/components/organisms/DescriptionCard/DescriptionCard.js.map +1 -0
- package/lib/components/organisms/InternalMoveCard/InternalMoveCard.d.ts +13 -0
- package/lib/components/organisms/InternalMoveCard/InternalMoveCard.js +94 -0
- package/lib/components/organisms/InternalMoveCard/InternalMoveCard.js.map +1 -0
- package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.d.ts +13 -0
- package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.js +101 -0
- package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.js.map +1 -0
- package/lib/components/organisms/InventoryCard/InventoryCard.d.ts +10 -0
- package/lib/components/organisms/InventoryCard/InventoryCard.js +88 -0
- package/lib/components/organisms/InventoryCard/InventoryCard.js.map +1 -0
- package/lib/components/organisms/InventoryHeader/InventoryHeader.d.ts +8 -0
- package/lib/components/organisms/InventoryHeader/InventoryHeader.js +77 -0
- package/lib/components/organisms/InventoryHeader/InventoryHeader.js.map +1 -0
- package/lib/components/organisms/InventoryLineCard/InventoryLineCard.d.ts +14 -0
- package/lib/components/organisms/InventoryLineCard/InventoryLineCard.js +72 -0
- package/lib/components/organisms/InventoryLineCard/InventoryLineCard.js.map +1 -0
- package/lib/components/organisms/ProductCard/ProductCard.d.ts +10 -0
- package/lib/components/organisms/ProductCard/ProductCard.js +77 -0
- package/lib/components/organisms/ProductCard/ProductCard.js.map +1 -0
- package/lib/components/organisms/ProductCardInfo/ProductCardInfo.d.ts +10 -0
- package/lib/components/organisms/ProductCardInfo/ProductCardInfo.js +74 -0
- package/lib/components/organisms/ProductCardInfo/ProductCardInfo.js.map +1 -0
- package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.d.ts +13 -0
- package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.js +79 -0
- package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.js.map +1 -0
- package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.d.ts +10 -0
- package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.js +89 -0
- package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.js.map +1 -0
- package/lib/components/organisms/ProductVariantCard/ProductVariantCard.d.ts +19 -0
- package/lib/components/organisms/ProductVariantCard/ProductVariantCard.js +128 -0
- package/lib/components/organisms/ProductVariantCard/ProductVariantCard.js.map +1 -0
- package/lib/components/organisms/QuantityCard/QuantityCard.d.ts +12 -0
- package/lib/components/organisms/QuantityCard/QuantityCard.js +98 -0
- package/lib/components/organisms/QuantityCard/QuantityCard.js.map +1 -0
- package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.d.ts +9 -0
- package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.js +63 -0
- package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.js.map +1 -0
- package/lib/components/organisms/StockMoveHeader/StockMoveHeader.d.ts +9 -0
- package/lib/components/organisms/StockMoveHeader/StockMoveHeader.js +71 -0
- package/lib/components/organisms/StockMoveHeader/StockMoveHeader.js.map +1 -0
- package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.d.ts +11 -0
- package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.js +93 -0
- package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.js.map +1 -0
- package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.d.ts +13 -0
- package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.js +78 -0
- package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.js.map +1 -0
- package/lib/components/organisms/index.d.ts +19 -0
- package/lib/components/organisms/index.js +37 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +21 -0
- package/lib/features/asyncFunctions-index.js +39 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/customerDeliveryLineSlice.d.ts +27 -0
- package/lib/features/customerDeliveryLineSlice.js +88 -0
- package/lib/features/customerDeliveryLineSlice.js.map +1 -0
- package/lib/features/customerDeliverySlice.d.ts +38 -0
- package/lib/features/customerDeliverySlice.js +102 -0
- package/lib/features/customerDeliverySlice.js.map +1 -0
- package/lib/features/index.d.ts +21 -0
- package/lib/features/index.js +39 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/internalMoveLineSlice.d.ts +16 -0
- package/lib/features/internalMoveLineSlice.js +71 -0
- package/lib/features/internalMoveLineSlice.js.map +1 -0
- package/lib/features/internalMoveSlice.d.ts +38 -0
- package/lib/features/internalMoveSlice.js +105 -0
- package/lib/features/internalMoveSlice.js.map +1 -0
- package/lib/features/inventoryLineSlice.d.ts +38 -0
- package/lib/features/inventoryLineSlice.js +105 -0
- package/lib/features/inventoryLineSlice.js.map +1 -0
- package/lib/features/inventorySlice.d.ts +47 -0
- package/lib/features/inventorySlice.js +129 -0
- package/lib/features/inventorySlice.js.map +1 -0
- package/lib/features/partnerSlice.d.ts +25 -0
- package/lib/features/partnerSlice.js +65 -0
- package/lib/features/partnerSlice.js.map +1 -0
- package/lib/features/productIndicatorsSlice.d.ts +37 -0
- package/lib/features/productIndicatorsSlice.js +101 -0
- package/lib/features/productIndicatorsSlice.js.map +1 -0
- package/lib/features/productSlice.d.ts +39 -0
- package/lib/features/productSlice.js +105 -0
- package/lib/features/productSlice.js.map +1 -0
- package/lib/features/productVariantSlice.d.ts +27 -0
- package/lib/features/productVariantSlice.js +98 -0
- package/lib/features/productVariantSlice.js.map +1 -0
- package/lib/features/racksListSlice.d.ts +14 -0
- package/lib/features/racksListSlice.js +63 -0
- package/lib/features/racksListSlice.js.map +1 -0
- package/lib/features/stockAppConfigSlice.d.ts +14 -0
- package/lib/features/stockAppConfigSlice.js +49 -0
- package/lib/features/stockAppConfigSlice.js.map +1 -0
- package/lib/features/stockCorrectionReasonSlice.d.ts +14 -0
- package/lib/features/stockCorrectionReasonSlice.js +48 -0
- package/lib/features/stockCorrectionReasonSlice.js.map +1 -0
- package/lib/features/stockCorrectionSlice.d.ts +38 -0
- package/lib/features/stockCorrectionSlice.js +105 -0
- package/lib/features/stockCorrectionSlice.js.map +1 -0
- package/lib/features/stockLocationLineSlice.d.ts +16 -0
- package/lib/features/stockLocationLineSlice.js +71 -0
- package/lib/features/stockLocationLineSlice.js.map +1 -0
- package/lib/features/stockLocationSlice.d.ts +25 -0
- package/lib/features/stockLocationSlice.js +65 -0
- package/lib/features/stockLocationSlice.js.map +1 -0
- package/lib/features/supplierArrivalLineSlice.d.ts +27 -0
- package/lib/features/supplierArrivalLineSlice.js +88 -0
- package/lib/features/supplierArrivalLineSlice.js.map +1 -0
- package/lib/features/supplierArrivalSlice.d.ts +38 -0
- package/lib/features/supplierArrivalSlice.js +105 -0
- package/lib/features/supplierArrivalSlice.js.map +1 -0
- package/lib/features/supplierCatalogSlice.d.ts +14 -0
- package/lib/features/supplierCatalogSlice.js +48 -0
- package/lib/features/supplierCatalogSlice.js.map +1 -0
- package/lib/features/trackingNumberSlice.d.ts +35 -0
- package/lib/features/trackingNumberSlice.js +96 -0
- package/lib/features/trackingNumberSlice.js.map +1 -0
- package/lib/features/unitSlice.d.ts +14 -0
- package/lib/features/unitSlice.js +48 -0
- package/lib/features/unitSlice.js.map +1 -0
- package/lib/i18n/en.json +103 -0
- package/lib/i18n/fr.json +103 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.js +97 -0
- package/lib/index.js.map +1 -0
- package/lib/screens/auth/UserScreen.d.ts +4 -0
- package/lib/screens/auth/UserScreen.js +54 -0
- package/lib/screens/auth/UserScreen.js.map +1 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.d.ts +5 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.js +149 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.js.map +1 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.d.ts +5 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.js +140 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.js.map +1 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.d.ts +5 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.js +116 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.js.map +1 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.d.ts +4 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.js +130 -0
- package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.js.map +1 -0
- package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.d.ts +5 -0
- package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.js +76 -0
- package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.js.map +1 -0
- package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.d.ts +5 -0
- package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.js +79 -0
- package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.js.map +1 -0
- package/lib/screens/customerDeliveries/index.d.ts +66 -0
- package/lib/screens/customerDeliveries/index.js +68 -0
- package/lib/screens/customerDeliveries/index.js.map +1 -0
- package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.d.ts +5 -0
- package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.js +102 -0
- package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.js.map +1 -0
- package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.d.ts +5 -0
- package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js +296 -0
- package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js.map +1 -0
- package/lib/screens/internalMoves/InternalMoveLineListScreen.d.ts +5 -0
- package/lib/screens/internalMoves/InternalMoveLineListScreen.js +107 -0
- package/lib/screens/internalMoves/InternalMoveLineListScreen.js.map +1 -0
- package/lib/screens/internalMoves/InternalMoveListScreen.d.ts +4 -0
- package/lib/screens/internalMoves/InternalMoveListScreen.js +162 -0
- package/lib/screens/internalMoves/InternalMoveListScreen.js.map +1 -0
- package/lib/screens/internalMoves/InternalMoveSelectFromLocationScreen.d.ts +5 -0
- package/lib/screens/internalMoves/InternalMoveSelectFromLocationScreen.js +48 -0
- package/lib/screens/internalMoves/InternalMoveSelectFromLocationScreen.js.map +1 -0
- package/lib/screens/internalMoves/InternalMoveSelectProductScreen.d.ts +5 -0
- package/lib/screens/internalMoves/InternalMoveSelectProductScreen.js +98 -0
- package/lib/screens/internalMoves/InternalMoveSelectProductScreen.js.map +1 -0
- package/lib/screens/internalMoves/InternalMoveSelectToLocationScreen.d.ts +5 -0
- package/lib/screens/internalMoves/InternalMoveSelectToLocationScreen.js +53 -0
- package/lib/screens/internalMoves/InternalMoveSelectToLocationScreen.js.map +1 -0
- package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.d.ts +5 -0
- package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.js +101 -0
- package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.js.map +1 -0
- package/lib/screens/internalMoves/index.d.ts +78 -0
- package/lib/screens/internalMoves/index.js +78 -0
- package/lib/screens/internalMoves/index.js.map +1 -0
- package/lib/screens/inventories/InventoryLineDetailsScreen.d.ts +5 -0
- package/lib/screens/inventories/InventoryLineDetailsScreen.js +98 -0
- package/lib/screens/inventories/InventoryLineDetailsScreen.js.map +1 -0
- package/lib/screens/inventories/InventoryLineListScreen.d.ts +5 -0
- package/lib/screens/inventories/InventoryLineListScreen.js +122 -0
- package/lib/screens/inventories/InventoryLineListScreen.js.map +1 -0
- package/lib/screens/inventories/InventoryListScreen.d.ts +4 -0
- package/lib/screens/inventories/InventoryListScreen.js +148 -0
- package/lib/screens/inventories/InventoryListScreen.js.map +1 -0
- package/lib/screens/inventories/InventoryPlannedDetailsScreen.d.ts +5 -0
- package/lib/screens/inventories/InventoryPlannedDetailsScreen.js +81 -0
- package/lib/screens/inventories/InventoryPlannedDetailsScreen.js.map +1 -0
- package/lib/screens/inventories/InventorySelectProductScreen.d.ts +5 -0
- package/lib/screens/inventories/InventorySelectProductScreen.js +83 -0
- package/lib/screens/inventories/InventorySelectProductScreen.js.map +1 -0
- package/lib/screens/inventories/InventorySelectTrackingScreen.d.ts +5 -0
- package/lib/screens/inventories/InventorySelectTrackingScreen.js +81 -0
- package/lib/screens/inventories/InventorySelectTrackingScreen.js.map +1 -0
- package/lib/screens/inventories/InventoryStartedDetailsScreen.d.ts +5 -0
- package/lib/screens/inventories/InventoryStartedDetailsScreen.js +110 -0
- package/lib/screens/inventories/InventoryStartedDetailsScreen.js.map +1 -0
- package/lib/screens/inventories/index.d.ts +77 -0
- package/lib/screens/inventories/index.js +76 -0
- package/lib/screens/inventories/index.js.map +1 -0
- package/lib/screens/products/ProductDetailsScreen.d.ts +5 -0
- package/lib/screens/products/ProductDetailsScreen.js +135 -0
- package/lib/screens/products/ProductDetailsScreen.js.map +1 -0
- package/lib/screens/products/ProductImageScreen.d.ts +4 -0
- package/lib/screens/products/ProductImageScreen.js +62 -0
- package/lib/screens/products/ProductImageScreen.js.map +1 -0
- package/lib/screens/products/ProductListScreen.d.ts +4 -0
- package/lib/screens/products/ProductListScreen.js +72 -0
- package/lib/screens/products/ProductListScreen.js.map +1 -0
- package/lib/screens/products/ProductListVariantScreen.d.ts +5 -0
- package/lib/screens/products/ProductListVariantScreen.js +66 -0
- package/lib/screens/products/ProductListVariantScreen.js.map +1 -0
- package/lib/screens/products/ProductStockDetailsScreen.d.ts +5 -0
- package/lib/screens/products/ProductStockDetailsScreen.js +201 -0
- package/lib/screens/products/ProductStockDetailsScreen.js.map +1 -0
- package/lib/screens/products/ProductStockLocationDetailsScreen.d.ts +4 -0
- package/lib/screens/products/ProductStockLocationDetailsScreen.js +110 -0
- package/lib/screens/products/ProductStockLocationDetailsScreen.js.map +1 -0
- package/lib/screens/products/index.d.ts +46 -0
- package/lib/screens/products/index.js +56 -0
- package/lib/screens/products/index.js.map +1 -0
- package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.d.ts +5 -0
- package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.js +271 -0
- package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.js.map +1 -0
- package/lib/screens/stockCorrections/StockCorrectionListScreen.d.ts +4 -0
- package/lib/screens/stockCorrections/StockCorrectionListScreen.js +140 -0
- package/lib/screens/stockCorrections/StockCorrectionListScreen.js.map +1 -0
- package/lib/screens/stockCorrections/StockCorrectionNewLocationScreen.d.ts +5 -0
- package/lib/screens/stockCorrections/StockCorrectionNewLocationScreen.js +48 -0
- package/lib/screens/stockCorrections/StockCorrectionNewLocationScreen.js.map +1 -0
- package/lib/screens/stockCorrections/StockCorrectionNewProductScreen.d.ts +5 -0
- package/lib/screens/stockCorrections/StockCorrectionNewProductScreen.js +55 -0
- package/lib/screens/stockCorrections/StockCorrectionNewProductScreen.js.map +1 -0
- package/lib/screens/stockCorrections/StockCorrectionNewTrackingScreen.d.ts +5 -0
- package/lib/screens/stockCorrections/StockCorrectionNewTrackingScreen.js +54 -0
- package/lib/screens/stockCorrections/StockCorrectionNewTrackingScreen.js.map +1 -0
- package/lib/screens/stockCorrections/index.d.ts +40 -0
- package/lib/screens/stockCorrections/index.js +51 -0
- package/lib/screens/stockCorrections/index.js.map +1 -0
- package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.d.ts +5 -0
- package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.js +87 -0
- package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.js.map +1 -0
- package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.d.ts +5 -0
- package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.js +120 -0
- package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.js.map +1 -0
- package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.d.ts +5 -0
- package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js +167 -0
- package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js.map +1 -0
- package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.d.ts +5 -0
- package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.js +107 -0
- package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.js.map +1 -0
- package/lib/screens/supplierArrivals/SupplierArrivalListScreen.d.ts +4 -0
- package/lib/screens/supplierArrivals/SupplierArrivalListScreen.js +126 -0
- package/lib/screens/supplierArrivals/SupplierArrivalListScreen.js.map +1 -0
- package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.d.ts +5 -0
- package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.js +79 -0
- package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.js.map +1 -0
- package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.d.ts +5 -0
- package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.js +106 -0
- package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.js.map +1 -0
- package/lib/screens/supplierArrivals/index.d.ts +77 -0
- package/lib/screens/supplierArrivals/index.js +76 -0
- package/lib/screens/supplierArrivals/index.js.map +1 -0
- package/lib/types/index.d.ts +5 -0
- package/lib/types/index.js +23 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/inventory.d.ts +16 -0
- package/lib/types/inventory.js +88 -0
- package/lib/types/inventory.js.map +1 -0
- package/lib/types/product.d.ts +16 -0
- package/lib/types/product.js +62 -0
- package/lib/types/product.js.map +1 -0
- package/lib/types/stock-corrrection.d.ts +11 -0
- package/lib/types/stock-corrrection.js +47 -0
- package/lib/types/stock-corrrection.js.map +1 -0
- package/lib/types/stock-location.d.ts +8 -0
- package/lib/types/stock-location.js +26 -0
- package/lib/types/stock-location.js.map +1 -0
- package/lib/types/stock-move.d.ts +36 -0
- package/lib/types/stock-move.js +124 -0
- package/lib/types/stock-move.js.map +1 -0
- package/lib/utils/displayers.d.ts +4 -0
- package/lib/utils/displayers.js +22 -0
- package/lib/utils/displayers.js.map +1 -0
- package/lib/utils/filters.d.ts +6 -0
- package/lib/utils/filters.js +77 -0
- package/lib/utils/filters.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,107 @@
|
|
|
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, useState, useEffect } from 'react';
|
|
19
|
+
import { StyleSheet } from 'react-native';
|
|
20
|
+
import { Chip, ChipSelect, HeaderContainer, Screen, ScrollList, useThemeColor, } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useDispatch, useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { SupplierArrivalLineCard, StockMoveHeader } from '../../components';
|
|
23
|
+
import { fetchSupplierArrivalLines } from '../../features/supplierArrivalLineSlice';
|
|
24
|
+
import StockMove from '../../types/stock-move';
|
|
25
|
+
const SupplierArrivalLineListScreen = ({ route, navigation }) => {
|
|
26
|
+
const Colors = useThemeColor();
|
|
27
|
+
const I18n = useTranslator();
|
|
28
|
+
const supplierArrival = route.params.supplierArrival;
|
|
29
|
+
const { loadingSALines, moreLoading, isListEnd, supplierArrivalLineList } = useSelector(state => state.supplierArrivalLine);
|
|
30
|
+
const [filteredList, setFilteredList] = useState(supplierArrivalLineList);
|
|
31
|
+
const [doneStatus, setDoneStatus] = useState(false);
|
|
32
|
+
const [undoneStatus, setUndoneStatus] = useState(false);
|
|
33
|
+
const dispatch = useDispatch();
|
|
34
|
+
const handleShowLine = item => {
|
|
35
|
+
if (supplierArrival.statusSelect === StockMove.status.Realized) {
|
|
36
|
+
navigation.navigate('SupplierArrivalLineDetailScreen', {
|
|
37
|
+
supplierArrivalLine: item,
|
|
38
|
+
supplierArrival: supplierArrival,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
navigation.navigate('SupplierArrivalSelectProductScreen', {
|
|
43
|
+
supplierArrivalLine: item,
|
|
44
|
+
supplierArrival: supplierArrival,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const fetchSupplierLinesAPI = useCallback(page => {
|
|
49
|
+
dispatch(fetchSupplierArrivalLines({
|
|
50
|
+
supplierArrivalId: supplierArrival.id,
|
|
51
|
+
page: page,
|
|
52
|
+
}));
|
|
53
|
+
}, [supplierArrival.id, dispatch]);
|
|
54
|
+
const handleDoneStatus = () => {
|
|
55
|
+
if (!doneStatus && undoneStatus) {
|
|
56
|
+
setUndoneStatus(!undoneStatus);
|
|
57
|
+
}
|
|
58
|
+
setDoneStatus(!doneStatus);
|
|
59
|
+
};
|
|
60
|
+
const handleUndoneStatus = () => {
|
|
61
|
+
if (!undoneStatus && doneStatus) {
|
|
62
|
+
setDoneStatus(!doneStatus);
|
|
63
|
+
}
|
|
64
|
+
setUndoneStatus(!undoneStatus);
|
|
65
|
+
};
|
|
66
|
+
const filterOnStatus = useCallback(list => {
|
|
67
|
+
if (list == null || list === []) {
|
|
68
|
+
return list;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
if (doneStatus) {
|
|
72
|
+
return list.filter(item => parseFloat(item.realQty) >= parseFloat(item.qty));
|
|
73
|
+
}
|
|
74
|
+
else if (undoneStatus) {
|
|
75
|
+
return list.filter(item => parseFloat(item.realQty) == null ||
|
|
76
|
+
parseFloat(item.realQty) < parseFloat(item.qty));
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return list;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}, [doneStatus, undoneStatus]);
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
setFilteredList(filterOnStatus(supplierArrivalLineList));
|
|
85
|
+
}, [supplierArrivalLineList, filterOnStatus]);
|
|
86
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
87
|
+
<HeaderContainer expandableFilter={false} fixedItems={<StockMoveHeader reference={supplierArrival.stockMoveSeq} status={supplierArrival.statusSelect} date={supplierArrival.statusSelect === StockMove.status.Draft
|
|
88
|
+
? supplierArrival.createdOn
|
|
89
|
+
: supplierArrival.statusSelect === StockMove.status.Planned
|
|
90
|
+
? supplierArrival.estimatedDate
|
|
91
|
+
: supplierArrival.realDate}/>} chipComponent={<ChipSelect>
|
|
92
|
+
<Chip selected={doneStatus} title={I18n.t('Stock_Done')} onPress={handleDoneStatus} selectedColor={Colors.primaryColor}/>
|
|
93
|
+
<Chip selected={undoneStatus} title={I18n.t('Stock_NotDone')} onPress={handleUndoneStatus} selectedColor={Colors.cautionColor}/>
|
|
94
|
+
</ChipSelect>}/>
|
|
95
|
+
<ScrollList loadingList={loadingSALines} data={filteredList} renderItem={({ item }) => (<SupplierArrivalLineCard style={styles.item} productName={item.product?.fullName} deliveredQty={item?.realQty} askedQty={item?.qty} trackingNumber={item?.trackingNumber} onPress={() => {
|
|
96
|
+
handleShowLine(item);
|
|
97
|
+
}}/>)} fetchData={fetchSupplierLinesAPI} moreLoading={moreLoading} isListEnd={isListEnd}/>
|
|
98
|
+
</Screen>);
|
|
99
|
+
};
|
|
100
|
+
const styles = StyleSheet.create({
|
|
101
|
+
item: {
|
|
102
|
+
marginHorizontal: 16,
|
|
103
|
+
marginVertical: 4,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
export default SupplierArrivalLineListScreen;
|
|
107
|
+
//# sourceMappingURL=SupplierArrivalLineListScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupplierArrivalLineListScreen.js","sourceRoot":"","sources":["../../../src/screens/supplierArrivals/SupplierArrivalLineListScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EACL,IAAI,EACJ,UAAU,EACV,eAAe,EACf,MAAM,EACN,UAAU,EACV,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,uBAAuB,EAAE,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAC,yBAAyB,E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CAAC,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,CACtB,CAAC,uBAAuB,CACtB,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnB,WAAW,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CACpC,YAAY,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAC5B,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CACpB,cAAc,CAAC,CAAC,IAAI,EAAE,cAAc,CAAC,CACrC,OAAO,CAAC,CAAC,GAAG,EAAE;gBACZ,cAAc,CAAC,IAAI,CAAC,CAAC;YACvB,CAAC,CAAC,EACF,CACH,CAAC,CACF,SAAS,CAAC,CAAC,qBAAqB,CAAC,CACjC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,SAAS,CAAC,CAAC,SAAS,CAAC,EAEzB;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,gBAAgB,EAAE,EAAE;QACpB,cAAc,EAAE,CAAC;KAClB;CACF,CAAC,CAAC;AAEH,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
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, useEffect, useState } from 'react';
|
|
19
|
+
import { StyleSheet } from 'react-native';
|
|
20
|
+
import { AutoCompleteSearch, Chip, ChipSelect, HeaderContainer, Screen, ScrollList, useThemeColor, } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { displayItemName, filterList, ScannerAutocompleteSearch, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { SupplierArrivalCard } from '../../components';
|
|
23
|
+
import { searchStockLocations } from '../../features/stockLocationSlice';
|
|
24
|
+
import { filterSuppliers } from '../../features/partnerSlice';
|
|
25
|
+
import { searchSupplierArrivals } from '../../features/supplierArrivalSlice';
|
|
26
|
+
import { displayPartner, displayStockMoveSeq } from '../../utils/displayers';
|
|
27
|
+
import StockMove from '../../types/stock-move';
|
|
28
|
+
const stockLocationScanKey = 'stock-location_supplier-arrival-list';
|
|
29
|
+
const SupplierArrivalListScreen = ({ navigation }) => {
|
|
30
|
+
const Colors = useThemeColor();
|
|
31
|
+
const I18n = useTranslator();
|
|
32
|
+
const { stockLocationList } = useSelector(state => state.stockLocation);
|
|
33
|
+
const [stockLocation, setStockLocation] = useState(null);
|
|
34
|
+
const { supplierList } = useSelector(state => state.partner);
|
|
35
|
+
const { user } = useSelector(state => state.user);
|
|
36
|
+
const [partner, setPartner] = useState(null);
|
|
37
|
+
const { loading, moreLoading, isListEnd, supplierArrivalsList } = useSelector(state => state.supplierArrival);
|
|
38
|
+
const [filteredList, setFilteredList] = useState(supplierArrivalsList);
|
|
39
|
+
const [planifiedStatus, setplanifiedStatus] = useState(false);
|
|
40
|
+
const [validatedStatus, setValidatedStatus] = useState(false);
|
|
41
|
+
const [filter, setFilter] = useState(null);
|
|
42
|
+
const [navigate, setNavigate] = useState(false);
|
|
43
|
+
const dispatch = useDispatch();
|
|
44
|
+
const handlePlanifiedFilter = () => {
|
|
45
|
+
if (!planifiedStatus && validatedStatus) {
|
|
46
|
+
setValidatedStatus(!validatedStatus);
|
|
47
|
+
}
|
|
48
|
+
setplanifiedStatus(!planifiedStatus);
|
|
49
|
+
};
|
|
50
|
+
const handleValidatedFilter = () => {
|
|
51
|
+
if (!validatedStatus && planifiedStatus) {
|
|
52
|
+
setplanifiedStatus(!planifiedStatus);
|
|
53
|
+
}
|
|
54
|
+
setValidatedStatus(!validatedStatus);
|
|
55
|
+
};
|
|
56
|
+
const filterOnStatus = useCallback(list => {
|
|
57
|
+
if (list == null || list === []) {
|
|
58
|
+
return list;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
if (planifiedStatus) {
|
|
62
|
+
return list.filter(item => item.statusSelect === StockMove.status.Planned);
|
|
63
|
+
}
|
|
64
|
+
else if (validatedStatus) {
|
|
65
|
+
return list.filter(item => item.statusSelect === StockMove.status.Realized);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return list;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, [planifiedStatus, validatedStatus]);
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
setFilteredList(filterOnStatus(filterList(filterList(supplierArrivalsList, 'toStockLocation', 'id', stockLocation?.id ?? ''), 'partner', 'id', partner?.id ?? '')));
|
|
74
|
+
}, [filterOnStatus, partner, stockLocation, supplierArrivalsList]);
|
|
75
|
+
const navigateToSupplierDetail = item => {
|
|
76
|
+
if (item != null) {
|
|
77
|
+
setNavigate(true);
|
|
78
|
+
navigation.navigate('SupplierArrivalDetailsScreen', {
|
|
79
|
+
supplierArrival: item,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const fetchStockLocationsAPI = useCallback(filterValue => {
|
|
84
|
+
dispatch(searchStockLocations({
|
|
85
|
+
searchValue: filterValue,
|
|
86
|
+
companyId: user.activeCompany?.id,
|
|
87
|
+
defaultStockLocation: user.workshopStockLocation,
|
|
88
|
+
}));
|
|
89
|
+
}, [dispatch, user]);
|
|
90
|
+
const fetchPartnerAPI = useCallback(filterValue => {
|
|
91
|
+
dispatch(filterSuppliers({ searchValue: filterValue }));
|
|
92
|
+
}, [dispatch]);
|
|
93
|
+
const fetchSupplierArrivalsAPI = useCallback(page => {
|
|
94
|
+
dispatch(searchSupplierArrivals({
|
|
95
|
+
searchValue: filter,
|
|
96
|
+
page: page,
|
|
97
|
+
}));
|
|
98
|
+
}, [dispatch, filter]);
|
|
99
|
+
const handleRefChange = useCallback(searchValue => {
|
|
100
|
+
setFilter(searchValue);
|
|
101
|
+
dispatch(searchSupplierArrivals({
|
|
102
|
+
searchValue: searchValue,
|
|
103
|
+
page: 0,
|
|
104
|
+
}));
|
|
105
|
+
}, [dispatch]);
|
|
106
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
107
|
+
<HeaderContainer fixedItems={<AutoCompleteSearch placeholder={I18n.t('Stock_Ref')} objectList={supplierArrivalsList} displayValue={displayStockMoveSeq} onChangeValue={item => navigateToSupplierDetail(item)} oneFilter={true} fetchData={handleRefChange} navigate={navigate}/>} chipComponent={<ChipSelect>
|
|
108
|
+
<Chip selected={planifiedStatus} title={I18n.t('Stock_Status_Planned')} onPress={handlePlanifiedFilter} selectedColor={StockMove.getStatusColor(StockMove.status.Planned, Colors)}/>
|
|
109
|
+
<Chip selected={validatedStatus} title={I18n.t('Stock_Status_Realized')} onPress={handleValidatedFilter} selectedColor={StockMove.getStatusColor(StockMove.status.Realized, Colors)}/>
|
|
110
|
+
</ChipSelect>}>
|
|
111
|
+
<ScannerAutocompleteSearch objectList={stockLocationList} value={stockLocation} onChangeValue={item => setStockLocation(item)} fetchData={fetchStockLocationsAPI} displayValue={displayItemName} scanKeySearch={stockLocationScanKey} placeholder={I18n.t('Stock_StockLocation')}/>
|
|
112
|
+
<AutoCompleteSearch objectList={supplierList} value={partner} onChangeValue={item => setPartner(item)} fetchData={fetchPartnerAPI} displayValue={displayPartner} placeholder={I18n.t('Stock_Supplier')}/>
|
|
113
|
+
</HeaderContainer>
|
|
114
|
+
<ScrollList loadingList={loading} data={filteredList} renderItem={({ item }) => (<SupplierArrivalCard reference={item.stockMoveSeq} client={item.partner?.fullName} status={item.statusSelect} date={item.statusSelect === StockMove.status.Planned
|
|
115
|
+
? item.estimatedDate
|
|
116
|
+
: item.realDate} onPress={() => navigateToSupplierDetail(item)} origin={item.origin} style={styles.cardDelivery}/>)} fetchData={fetchSupplierArrivalsAPI} moreLoading={moreLoading} isListEnd={isListEnd}/>
|
|
117
|
+
</Screen>);
|
|
118
|
+
};
|
|
119
|
+
const styles = StyleSheet.create({
|
|
120
|
+
cardDelivery: {
|
|
121
|
+
marginHorizontal: 12,
|
|
122
|
+
marginVertical: 4,
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
export default SupplierArrivalListScreen;
|
|
126
|
+
//# sourceMappingURL=SupplierArrivalListScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupplierArrivalListScreen.js","sourceRoot":"","sources":["../../../src/screens/supplierArrivals/SupplierArrivalListScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,IAAI,EACJ,UAAU,EACV,eAAe,EACf,MAAM,EACN,UAAU,EACV,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,UAAU,EACV,yBAAyB,EACzB,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAC,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAC,eAA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,QAAQ,CAClB,CACD,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAC9C,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CACpB,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAC3B,CACH,CAAC,CACF,SAAS,CAAC,CAAC,wBAAwB,CAAC,CACpC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,SAAS,CAAC,CAAC,SAAS,CAAC,EAEzB;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,YAAY,EAAE;QACZ,gBAAgB,EAAE,EAAE;QACpB,cAAc,EAAE,CAAC;KAClB;CACF,CAAC,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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, useState } from 'react';
|
|
19
|
+
import { View, StyleSheet } from 'react-native';
|
|
20
|
+
import { HeaderContainer, PopUpOneButton, Screen } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { displayItemName, ScannerAutocompleteSearch, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { StockMoveHeader } from '../../components';
|
|
23
|
+
import { searchProducts } from '../../features/productSlice';
|
|
24
|
+
import StockMove from '../../types/stock-move';
|
|
25
|
+
const productScanKey = 'product_supplier-arrival-select';
|
|
26
|
+
const SupplierArrivalSelectProductScreen = ({ route, navigation }) => {
|
|
27
|
+
const I18n = useTranslator();
|
|
28
|
+
const supplierArrival = route.params.supplierArrival;
|
|
29
|
+
const supplierArrivalLine = route.params.supplierArrivalLine;
|
|
30
|
+
const { productList } = useSelector(state => state.product);
|
|
31
|
+
const [isVisible, setVisible] = useState(false);
|
|
32
|
+
const dispatch = useDispatch();
|
|
33
|
+
const fetchProductsAPI = useCallback(filter => {
|
|
34
|
+
dispatch(searchProducts({ searchValue: filter }));
|
|
35
|
+
}, [dispatch]);
|
|
36
|
+
const handleProductSelection = item => {
|
|
37
|
+
if (item !== null) {
|
|
38
|
+
if (supplierArrivalLine != null &&
|
|
39
|
+
item.id !== supplierArrivalLine?.product.id) {
|
|
40
|
+
setVisible(true);
|
|
41
|
+
}
|
|
42
|
+
else if (item.trackingNumberConfiguration != null) {
|
|
43
|
+
navigation.navigate('SupplierArrivalSelectTrackingScreen', {
|
|
44
|
+
supplierArrivalLine: supplierArrivalLine,
|
|
45
|
+
supplierArrival: supplierArrival,
|
|
46
|
+
product: item,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
navigation.navigate('SupplierArrivalLineDetailScreen', {
|
|
51
|
+
supplierArrivalLine: supplierArrivalLine,
|
|
52
|
+
supplierArrival: supplierArrival,
|
|
53
|
+
product: item,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
59
|
+
<HeaderContainer expandableFilter={false} fixedItems={<StockMoveHeader reference={supplierArrival.stockMoveSeq} lineRef={supplierArrivalLine?.name} status={supplierArrival.statusSelect} date={supplierArrival.statusSelect === StockMove.status.Draft
|
|
60
|
+
? supplierArrival.createdOn
|
|
61
|
+
: supplierArrival.statusSelect === StockMove.status.Planned
|
|
62
|
+
? supplierArrival.estimatedDate
|
|
63
|
+
: supplierArrival.realDate}/>}/>
|
|
64
|
+
<View style={styles.stockView}>
|
|
65
|
+
<ScannerAutocompleteSearch objectList={productList} onChangeValue={item => handleProductSelection(item)} fetchData={fetchProductsAPI} displayValue={displayItemName} scanKeySearch={productScanKey} placeholder={I18n.t('Stock_Product')} isFocus={true} changeScreenAfter={true}/>
|
|
66
|
+
</View>
|
|
67
|
+
<PopUpOneButton visible={isVisible} title={I18n.t('Auth_Warning')} data={I18n.t('Stock_ErrorProduct')} btnTitle={I18n.t('Auth_Close')} onPress={() => setVisible(false)}/>
|
|
68
|
+
</Screen>);
|
|
69
|
+
};
|
|
70
|
+
const styles = StyleSheet.create({
|
|
71
|
+
stockView: {
|
|
72
|
+
marginTop: '2%',
|
|
73
|
+
},
|
|
74
|
+
text_secondary: {
|
|
75
|
+
fontSize: 14,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
export default SupplierArrivalSelectProductScreen;
|
|
79
|
+
//# sourceMappingURL=SupplierArrivalSelectProductScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupplierArrivalSelectProductScreen.js","sourceRoot":"","sources":["../../../src/screens/supplierArrivals/SupplierArrivalSelectProductScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACnD,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAE,cAAc,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EACL,eAAe,EACf,yBAAyB,EAC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AC,CAAC,eAAe,CAAC,CAAC,CACrC,OAAO,CAAC,CAAC,IAAI,CAAC,CACd,iBAAiB,CAAC,CAAC,IAAI,CAAC,EAE5B;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,cAAc,CACb,OAAO,CAAC,CAAC,SAAS,CAAC,CACnB,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAC9B,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CACnC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAC/B,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAErC;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,SAAS,EAAE,IAAI;KAChB;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC;AAEH,eAAe,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
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, useState } from 'react';
|
|
19
|
+
import { View, StyleSheet } from 'react-native';
|
|
20
|
+
import { Card, HeaderContainer, Icon, PopUpOneButton, Screen, Text, useThemeColor, } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { ScannerAutocompleteSearch, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { StockMoveHeader } from '../../components';
|
|
23
|
+
import { filterTrackingNumber } from '../../features/trackingNumberSlice';
|
|
24
|
+
import { displayItemTrackingNumber } from '../../utils/displayers';
|
|
25
|
+
import StockMove from '../../types/stock-move';
|
|
26
|
+
const trackingScanKey = 'tracking_supplier-arrival-select';
|
|
27
|
+
const SupplierArrivalSelectTrackingScreen = ({ route, navigation }) => {
|
|
28
|
+
const Colors = useThemeColor();
|
|
29
|
+
const I18n = useTranslator();
|
|
30
|
+
const supplierArrival = route.params.supplierArrival;
|
|
31
|
+
const supplierArrivalLine = route.params.supplierArrivalLine;
|
|
32
|
+
const product = route.params.product;
|
|
33
|
+
const { trackingNumberList } = useSelector(state => state.trackingNumber);
|
|
34
|
+
const [isVisible, setVisible] = useState(false);
|
|
35
|
+
const dispatch = useDispatch();
|
|
36
|
+
const fetchTrackingAPI = useCallback(filter => {
|
|
37
|
+
dispatch(filterTrackingNumber({ productId: product.id, searchValue: filter }));
|
|
38
|
+
}, [dispatch, product.id]);
|
|
39
|
+
const handleTrackingNumberSelection = item => {
|
|
40
|
+
if (item !== null) {
|
|
41
|
+
if (supplierArrivalLine != null &&
|
|
42
|
+
item.id !== supplierArrivalLine.trackingNumber?.id) {
|
|
43
|
+
setVisible(true);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
navigation.navigate('SupplierArrivalLineDetailScreen', {
|
|
47
|
+
supplierArrivalLine: supplierArrivalLine,
|
|
48
|
+
supplierArrival: supplierArrival,
|
|
49
|
+
product: product,
|
|
50
|
+
trackingNumber: item,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const handleAddTrackingNumber = () => {
|
|
56
|
+
navigation.navigate('SupplierArrivalAddTrackingScreen', {
|
|
57
|
+
supplierArrivalLine: supplierArrivalLine,
|
|
58
|
+
supplierArrival: supplierArrival,
|
|
59
|
+
product: product,
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
63
|
+
<HeaderContainer expandableFilter={false} fixedItems={<StockMoveHeader reference={supplierArrival.stockMoveSeq} lineRef={supplierArrivalLine?.name} status={supplierArrival.statusSelect} date={supplierArrival.statusSelect === StockMove.status.Draft
|
|
64
|
+
? supplierArrival.createdOn
|
|
65
|
+
: supplierArrival.statusSelect === StockMove.status.Planned
|
|
66
|
+
? supplierArrival.estimatedDate
|
|
67
|
+
: supplierArrival.realDate}/>}/>
|
|
68
|
+
<View style={styles.stockView}>
|
|
69
|
+
<Card style={styles.cardProductInfo}>
|
|
70
|
+
<Text>{product?.name}</Text>
|
|
71
|
+
</Card>
|
|
72
|
+
<View style={styles.trackingNumber}>
|
|
73
|
+
<Text style={styles.text_secondary}>
|
|
74
|
+
{I18n.t('Stock_AddTrackingNumber')}
|
|
75
|
+
</Text>
|
|
76
|
+
<Icon name="plus" color={Colors.primaryColor.background} size={24} style={styles.action} touchable={true} onPress={handleAddTrackingNumber}/>
|
|
77
|
+
</View>
|
|
78
|
+
<ScannerAutocompleteSearch objectList={trackingNumberList} onChangeValue={item => handleTrackingNumberSelection(item)} fetchData={fetchTrackingAPI} displayValue={displayItemTrackingNumber} scanKeySearch={trackingScanKey} placeholder={I18n.t('Stock_TrackingNumber')} isFocus={true} changeScreenAfter={true}/>
|
|
79
|
+
</View>
|
|
80
|
+
<PopUpOneButton visible={isVisible} title={I18n.t('Auth_Warning')} data={I18n.t('Stock_ErrorTrackingNumber')} btnTitle={I18n.t('Auth_Close')} onPress={() => setVisible(false)}/>
|
|
81
|
+
</Screen>);
|
|
82
|
+
};
|
|
83
|
+
const styles = StyleSheet.create({
|
|
84
|
+
cardProductInfo: {
|
|
85
|
+
marginVertical: '2%',
|
|
86
|
+
marginHorizontal: 16,
|
|
87
|
+
},
|
|
88
|
+
trackingNumber: {
|
|
89
|
+
flexDirection: 'row',
|
|
90
|
+
justifyContent: 'flex-end',
|
|
91
|
+
alignItems: 'center',
|
|
92
|
+
marginRight: 16,
|
|
93
|
+
marginBottom: 5,
|
|
94
|
+
},
|
|
95
|
+
stockView: {
|
|
96
|
+
marginTop: '2%',
|
|
97
|
+
},
|
|
98
|
+
text_secondary: {
|
|
99
|
+
fontSize: 14,
|
|
100
|
+
},
|
|
101
|
+
action: {
|
|
102
|
+
marginLeft: 10,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
export default SupplierArrivalSelectTrackingScreen;
|
|
106
|
+
//# sourceMappingURL=SupplierArrivalSelectTrackingScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupplierArrivalSelectTrackingScreen.js","sourceRoot":"","sources":["../../../src/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACnD,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,cAAc,EACd,MAAM,EACN,IAAI,EACJ,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,yBAAyB,EACzB,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,yBAAyB,EAAC,M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CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,eAAe,EAAE;QACf,cAAc,EAAE,IAAI;QACpB,gBAAgB,EAAE,EAAE;KACrB;IACD,cAAc,EAAE;QACd,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,UAAU;QAC1B,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,CAAC;KAChB;IACD,SAAS,EAAE;QACT,SAAS,EAAE,IAAI;KAChB;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;KACb;IACD,MAAM,EAAE;QACN,UAAU,EAAE,EAAE;KACf;CACF,CAAC,CAAC;AAEH,eAAe,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace SupplierArrivalListScreen {
|
|
3
|
+
export const title: string;
|
|
4
|
+
export { SupplierArrivalListScreen as component };
|
|
5
|
+
export namespace options {
|
|
6
|
+
const shadedHeader: boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
namespace SupplierArrivalDetailsScreen {
|
|
10
|
+
const title_1: string;
|
|
11
|
+
export { title_1 as title };
|
|
12
|
+
export { SupplierArrivalDetailsScreen as component };
|
|
13
|
+
export namespace options_1 {
|
|
14
|
+
const shadedHeader_1: boolean;
|
|
15
|
+
export { shadedHeader_1 as shadedHeader };
|
|
16
|
+
}
|
|
17
|
+
export { options_1 as options };
|
|
18
|
+
}
|
|
19
|
+
namespace SupplierArrivalLineDetailScreen {
|
|
20
|
+
const title_2: string;
|
|
21
|
+
export { title_2 as title };
|
|
22
|
+
export { SupplierArrivalLineDetailScreen as component };
|
|
23
|
+
export namespace options_2 {
|
|
24
|
+
const shadedHeader_2: boolean;
|
|
25
|
+
export { shadedHeader_2 as shadedHeader };
|
|
26
|
+
}
|
|
27
|
+
export { options_2 as options };
|
|
28
|
+
}
|
|
29
|
+
namespace SupplierArrivalLineListScreen {
|
|
30
|
+
const title_3: string;
|
|
31
|
+
export { title_3 as title };
|
|
32
|
+
export { SupplierArrivalLineListScreen as component };
|
|
33
|
+
export namespace options_3 {
|
|
34
|
+
const shadedHeader_3: boolean;
|
|
35
|
+
export { shadedHeader_3 as shadedHeader };
|
|
36
|
+
}
|
|
37
|
+
export { options_3 as options };
|
|
38
|
+
}
|
|
39
|
+
namespace SupplierArrivalSelectProductScreen {
|
|
40
|
+
const title_4: string;
|
|
41
|
+
export { title_4 as title };
|
|
42
|
+
export { SupplierArrivalSelectProductScreen as component };
|
|
43
|
+
export namespace options_4 {
|
|
44
|
+
const shadedHeader_4: boolean;
|
|
45
|
+
export { shadedHeader_4 as shadedHeader };
|
|
46
|
+
}
|
|
47
|
+
export { options_4 as options };
|
|
48
|
+
}
|
|
49
|
+
namespace SupplierArrivalSelectTrackingScreen {
|
|
50
|
+
const title_5: string;
|
|
51
|
+
export { title_5 as title };
|
|
52
|
+
export { SupplierArrivalSelectTrackingScreen as component };
|
|
53
|
+
export namespace options_5 {
|
|
54
|
+
const shadedHeader_5: boolean;
|
|
55
|
+
export { shadedHeader_5 as shadedHeader };
|
|
56
|
+
}
|
|
57
|
+
export { options_5 as options };
|
|
58
|
+
}
|
|
59
|
+
namespace SupplierArrivalAddTrackingScreen {
|
|
60
|
+
const title_6: string;
|
|
61
|
+
export { title_6 as title };
|
|
62
|
+
export { SupplierArrivalAddTrackingScreen as component };
|
|
63
|
+
export namespace options_6 {
|
|
64
|
+
const shadedHeader_6: boolean;
|
|
65
|
+
export { shadedHeader_6 as shadedHeader };
|
|
66
|
+
}
|
|
67
|
+
export { options_6 as options };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export default _default;
|
|
71
|
+
import SupplierArrivalListScreen_1 from "./SupplierArrivalListScreen";
|
|
72
|
+
import SupplierArrivalDetailsScreen_1 from "./SupplierArrivalDetailsScreen";
|
|
73
|
+
import SupplierArrivalLineDetailScreen_1 from "./SupplierArrivalLineDetailScreen";
|
|
74
|
+
import SupplierArrivalLineListScreen_1 from "./SupplierArrivalLineListScreen";
|
|
75
|
+
import SupplierArrivalSelectProductScreen_1 from "./SupplierArrivalSelectProductScreen";
|
|
76
|
+
import SupplierArrivalSelectTrackingScreen_1 from "./SupplierArrivalSelectTrackingScreen";
|
|
77
|
+
import SupplierArrivalAddTrackingScreen_1 from "./SupplierArrivalAddTrackingScreen";
|
|
@@ -0,0 +1,76 @@
|
|
|
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 SupplierArrivalAddTrackingScreen from './SupplierArrivalAddTrackingScreen';
|
|
19
|
+
import SupplierArrivalDetailsScreen from './SupplierArrivalDetailsScreen';
|
|
20
|
+
import SupplierArrivalLineDetailScreen from './SupplierArrivalLineDetailScreen';
|
|
21
|
+
import SupplierArrivalLineListScreen from './SupplierArrivalLineListScreen';
|
|
22
|
+
import SupplierArrivalListScreen from './SupplierArrivalListScreen';
|
|
23
|
+
import SupplierArrivalSelectProductScreen from './SupplierArrivalSelectProductScreen';
|
|
24
|
+
import SupplierArrivalSelectTrackingScreen from './SupplierArrivalSelectTrackingScreen';
|
|
25
|
+
export default {
|
|
26
|
+
SupplierArrivalListScreen: {
|
|
27
|
+
title: 'Stock_SupplierArrival',
|
|
28
|
+
component: SupplierArrivalListScreen,
|
|
29
|
+
options: {
|
|
30
|
+
shadedHeader: false,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
SupplierArrivalDetailsScreen: {
|
|
34
|
+
title: 'Stock_SupplierArrival',
|
|
35
|
+
component: SupplierArrivalDetailsScreen,
|
|
36
|
+
options: {
|
|
37
|
+
shadedHeader: false,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
SupplierArrivalLineDetailScreen: {
|
|
41
|
+
title: 'Stock_SupplierArrival',
|
|
42
|
+
component: SupplierArrivalLineDetailScreen,
|
|
43
|
+
options: {
|
|
44
|
+
shadedHeader: false,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
SupplierArrivalLineListScreen: {
|
|
48
|
+
title: 'Stock_SupplierArrival',
|
|
49
|
+
component: SupplierArrivalLineListScreen,
|
|
50
|
+
options: {
|
|
51
|
+
shadedHeader: false,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
SupplierArrivalSelectProductScreen: {
|
|
55
|
+
title: 'Stock_SupplierArrival',
|
|
56
|
+
component: SupplierArrivalSelectProductScreen,
|
|
57
|
+
options: {
|
|
58
|
+
shadedHeader: false,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
SupplierArrivalSelectTrackingScreen: {
|
|
62
|
+
title: 'Stock_SupplierArrival',
|
|
63
|
+
component: SupplierArrivalSelectTrackingScreen,
|
|
64
|
+
options: {
|
|
65
|
+
shadedHeader: false,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
SupplierArrivalAddTrackingScreen: {
|
|
69
|
+
title: 'Stock_SupplierArrival',
|
|
70
|
+
component: SupplierArrivalAddTrackingScreen,
|
|
71
|
+
options: {
|
|
72
|
+
shadedHeader: false,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/screens/supplierArrivals/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,gCAAgC,MAAM,oCAAoC,CAAC;AAClF,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,+BAA+B,MAAM,mCAAmC,CAAC;AAChF,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAC5E,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,kCAAkC,MAAM,sCAAsC,CAAC;AACtF,OAAO,mCAAmC,MAAM,uCAAuC,CAAC;AAExF,eAAe;IACb,yBAAyB,EAAE;QACzB,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,yBAAyB;QACpC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,4BAA4B,EAAE;QAC5B,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,4BAA4B;QACvC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,+BAA+B,EAAE;QAC/B,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,+BAA+B;QAC1C,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,6BAA6B,EAAE;QAC7B,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,6BAA6B;QACxC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,kCAAkC,EAAE;QAClC,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,kCAAkC;QAC7C,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,mCAAmC,EAAE;QACnC,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,mCAAmC;QAC9C,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,gCAAgC,EAAE;QAChC,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,gCAAgC;QAC3C,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Inventory } from './inventory';
|
|
2
|
+
export { default as Product } from './product';
|
|
3
|
+
export { default as StockCorrection } from './stock-corrrection';
|
|
4
|
+
export { default as StockLocation } from './stock-location';
|
|
5
|
+
export { default as StockMove } from './stock-move';
|