@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
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<h1 align="center">@axelor/aos-mobile-stock</h1>
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
<img src="https://i.imgur.com/KJAAFlT.png" width="30%"/>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
## Presentation
|
|
8
|
+
|
|
9
|
+
This package was developed for the [Axelor Open Mobile](https://github.com/axelor/axelor-mobile) application.
|
|
10
|
+
|
|
11
|
+
The purpose of this package is to link with the stock module of the [Axelor Open Suite (AOS)](https://github.com/axelor/axelor-open-suite) ERP. It provides a simplified version of a number of processes available on the webapp. This package is compatible with AOS from version 6.4.0.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Install the library :
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
yarn add @axelor/aos-mobile-stock
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Compatibility with React v18.2.x and React Native v0.68.x.
|
|
22
|
+
|
|
23
|
+
To add this package in your application, you need to add it the *modules* props of the component `Application` from @axelor/aos-mobile-core package.
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import React from 'react';
|
|
27
|
+
import {Application} from '@axelor/aos-mobile-core';
|
|
28
|
+
import {StockModule} from '@axelor/aos-mobile-stock';
|
|
29
|
+
|
|
30
|
+
const App = () => {
|
|
31
|
+
return (
|
|
32
|
+
<Application
|
|
33
|
+
modules={[StockModule]}
|
|
34
|
+
mainMenu="auth_menu_user"
|
|
35
|
+
/>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default App;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Developpment
|
|
43
|
+
|
|
44
|
+
This package is developed as part of the Axelor Open Mobile application. To contribute, please go to the [Github project](https://github.com/axelor/axelor-mobile) and follow the guidelines. You will also find an installation guide to help you configure your environment.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function searchDeliveryFilter({ searchValue, page }: {
|
|
2
|
+
searchValue?: any;
|
|
3
|
+
page?: number;
|
|
4
|
+
}): Promise<any>;
|
|
5
|
+
export function addLineStockMove({ stockMoveId, productId, unitId, trackingNumberId, expectedQty, realQty, }: {
|
|
6
|
+
stockMoveId: any;
|
|
7
|
+
productId: any;
|
|
8
|
+
unitId: any;
|
|
9
|
+
trackingNumberId: any;
|
|
10
|
+
expectedQty: any;
|
|
11
|
+
realQty: any;
|
|
12
|
+
}): Promise<any>;
|
|
13
|
+
export function realizeSockMove({ stockMoveId, version }: {
|
|
14
|
+
stockMoveId: any;
|
|
15
|
+
version: any;
|
|
16
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { axiosApiProvider } from '@axelor/aos-mobile-core';
|
|
19
|
+
import StockMove from '../types/stock-move';
|
|
20
|
+
const deliveryFields = [
|
|
21
|
+
'id',
|
|
22
|
+
'availableStatusSelect',
|
|
23
|
+
'filterOnAvailableProducts',
|
|
24
|
+
'name',
|
|
25
|
+
'stockMoveLineList',
|
|
26
|
+
'stockMoveSeq',
|
|
27
|
+
'fromStockLocation',
|
|
28
|
+
'toAddress',
|
|
29
|
+
'toAddressStr',
|
|
30
|
+
'company',
|
|
31
|
+
'originId',
|
|
32
|
+
'origin',
|
|
33
|
+
'createdOn',
|
|
34
|
+
'estimatedDate',
|
|
35
|
+
'realDate',
|
|
36
|
+
'partner',
|
|
37
|
+
'statusSelect',
|
|
38
|
+
'pickingOrderComments',
|
|
39
|
+
'deliveryCondition',
|
|
40
|
+
'isIspmRequired',
|
|
41
|
+
];
|
|
42
|
+
const sortByFields = [
|
|
43
|
+
'statusSelect',
|
|
44
|
+
'-realDate',
|
|
45
|
+
'estimatedDate',
|
|
46
|
+
'stockMoveSeq',
|
|
47
|
+
];
|
|
48
|
+
const createSearchCriteria = searchValue => {
|
|
49
|
+
const criteria = [];
|
|
50
|
+
criteria.push({
|
|
51
|
+
fieldName: 'isReversion',
|
|
52
|
+
operator: '=',
|
|
53
|
+
value: false,
|
|
54
|
+
}, {
|
|
55
|
+
fieldName: 'typeSelect',
|
|
56
|
+
operator: '=',
|
|
57
|
+
value: StockMove.type.outgoing,
|
|
58
|
+
}, {
|
|
59
|
+
operator: 'OR',
|
|
60
|
+
criteria: [
|
|
61
|
+
{
|
|
62
|
+
fieldName: 'statusSelect',
|
|
63
|
+
operator: '=',
|
|
64
|
+
value: StockMove.status.Planned,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
fieldName: 'statusSelect',
|
|
68
|
+
operator: '=',
|
|
69
|
+
value: StockMove.status.Realized,
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
});
|
|
73
|
+
if (searchValue) {
|
|
74
|
+
criteria.push({
|
|
75
|
+
fieldName: 'stockMoveSeq',
|
|
76
|
+
operator: 'like',
|
|
77
|
+
value: searchValue,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return criteria;
|
|
81
|
+
};
|
|
82
|
+
export async function searchDeliveryFilter({ searchValue = null, page = 0 }) {
|
|
83
|
+
return axiosApiProvider.post({
|
|
84
|
+
url: '/ws/rest/com.axelor.apps.stock.db.StockMove/search',
|
|
85
|
+
data: {
|
|
86
|
+
data: {
|
|
87
|
+
criteria: [
|
|
88
|
+
{
|
|
89
|
+
operator: 'and',
|
|
90
|
+
criteria: createSearchCriteria(searchValue),
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
fields: deliveryFields,
|
|
95
|
+
sortBy: sortByFields,
|
|
96
|
+
limit: 10,
|
|
97
|
+
offset: 10 * page,
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
export async function addLineStockMove({ stockMoveId, productId, unitId, trackingNumberId, expectedQty, realQty, }) {
|
|
102
|
+
return axiosApiProvider.post({
|
|
103
|
+
url: `/ws/aos/stock-move/add-line/${stockMoveId}`,
|
|
104
|
+
data: {
|
|
105
|
+
productId: productId,
|
|
106
|
+
unitId: unitId,
|
|
107
|
+
trackingNumberId: trackingNumberId,
|
|
108
|
+
expectedQty: expectedQty,
|
|
109
|
+
realQty: realQty,
|
|
110
|
+
conformity: StockMove.conformity.None,
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
export async function realizeSockMove({ stockMoveId, version }) {
|
|
115
|
+
return axiosApiProvider.put({
|
|
116
|
+
url: `/ws/aos/stock-move/realize/${stockMoveId}`,
|
|
117
|
+
data: {
|
|
118
|
+
version: version,
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=customer-delivery-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer-delivery-api.js","sourceRoot":"","sources":["../../src/api/customer-delivery-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,MAAM,cAAc,GAAG;IACrB,IAAI;IACJ,uBAAuB;IACvB,2BAA2B;IAC3B,MAAM;IACN,mBAAmB;IACnB,cAAc;IACd,mBAAmB;IACnB,WAAW;IACX,cAAc;IACd,SAAS;IACT,UAAU;IACV,QAAQ;IACR,WAAW;IACX,eAAe;IACf,UAAU;IACV,SAAS;IACT,cAAc;IACd,sBAAsB;IACtB,mBAAmB;IACnB,gBAAgB;CACjB,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,cAAc;IACd,WAAW;IACX,eAAe;IACf,cAAc;CACf,CAAC;AAEF,MAAM,oBAAoB,GAAG,WAAW,CAAC,EAAE;IACzC,MAAM,QAAQ,GAAG,EAAE,CAAC;IACpB,QAAQ,CAAC,IAAI,CACX;QACE,SAAS,EAAE,aAAa;QACxB,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE,KAAK;KACb,EACD;QACE,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ;KAC/B,EACD;QACE,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,cAAc;gBACzB,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO;aAChC;YACD;gBACE,SAAS,EAAE,cAAc;gBACzB,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,QAAQ;aACjC;SACF;KACF,CACF,CAAC;IAEF,IAAI,WAAW,EAAE;QACf,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,cAAc;YACzB,QAAQ,EAAE,MAAM;YAChB,KAAK,EAAE,WAAW;SACnB,CAAC,CAAC;KACJ;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EAAC,WAAW,GAAG,IAAI,EAAE,IAAI,GAAG,CAAC,EAAC;IACvE,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,oDAAoD;QACzD,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE,oBAAoB,CAAC,WAAW,CAAC;qBAC5C;iBACF;aACF;YACD,MAAM,EAAE,cAAc;YACtB,MAAM,EAAE,YAAY;YACpB,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE,GAAG,IAAI;SAClB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACrC,WAAW,EACX,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,WAAW,EACX,OAAO,GACR;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,+BAA+B,WAAW,EAAE;QACjD,IAAI,EAAE;YACJ,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,MAAM;YACd,gBAAgB,EAAE,gBAAgB;YAClC,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE,OAAO;YAChB,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,IAAI;SACtC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,EAAC,WAAW,EAAE,OAAO,EAAC;IAC1D,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,8BAA8B,WAAW,EAAE;QAChD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function searchCustomerDeliveryLines({ page, customerDeliveryId, }: {
|
|
2
|
+
page?: number;
|
|
3
|
+
customerDeliveryId: any;
|
|
4
|
+
}): Promise<any>;
|
|
5
|
+
export function updateLine({ stockMoveLineId, version, realQty }: {
|
|
6
|
+
stockMoveLineId: any;
|
|
7
|
+
version: any;
|
|
8
|
+
realQty: any;
|
|
9
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { axiosApiProvider } from '@axelor/aos-mobile-core';
|
|
19
|
+
const customerDeliveryLineFields = [
|
|
20
|
+
'id',
|
|
21
|
+
'product',
|
|
22
|
+
'availableStatusSelect',
|
|
23
|
+
'trackingNumber',
|
|
24
|
+
'unit',
|
|
25
|
+
'qty',
|
|
26
|
+
'realQty',
|
|
27
|
+
'locker',
|
|
28
|
+
'name',
|
|
29
|
+
'saleOrderLine.pickingOrderInfo',
|
|
30
|
+
];
|
|
31
|
+
export async function searchCustomerDeliveryLines({ page = 0, customerDeliveryId, }) {
|
|
32
|
+
return axiosApiProvider.post({
|
|
33
|
+
url: '/ws/rest/com.axelor.apps.stock.db.StockMoveLine/search',
|
|
34
|
+
data: {
|
|
35
|
+
data: {
|
|
36
|
+
criteria: [
|
|
37
|
+
{
|
|
38
|
+
operator: 'and',
|
|
39
|
+
criteria: [
|
|
40
|
+
{
|
|
41
|
+
fieldName: 'stockMove.id',
|
|
42
|
+
operator: '=',
|
|
43
|
+
value: customerDeliveryId,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
fields: customerDeliveryLineFields,
|
|
50
|
+
sortBy: ['id'],
|
|
51
|
+
limit: 10,
|
|
52
|
+
offset: 10 * page,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
export async function updateLine({ stockMoveLineId, version, realQty }) {
|
|
57
|
+
return axiosApiProvider.put({
|
|
58
|
+
url: `/ws/aos/stock-move-line/${stockMoveLineId}`,
|
|
59
|
+
data: {
|
|
60
|
+
version: version,
|
|
61
|
+
realQty: realQty,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=customer-delivery-line-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer-delivery-line-api.js","sourceRoot":"","sources":["../../src/api/customer-delivery-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,0BAA0B,GAAG;IACjC,IAAI;IACJ,SAAS;IACT,uBAAuB;IACvB,gBAAgB;IAChB,MAAM;IACN,KAAK;IACL,SAAS;IACT,QAAQ;IACR,MAAM;IACN,gCAAgC;CACjC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,EAChD,IAAI,GAAG,CAAC,EACR,kBAAkB,GACnB;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,wDAAwD;QAC7D,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE;4BACR;gCACE,SAAS,EAAE,cAAc;gCACzB,QAAQ,EAAE,GAAG;gCACb,KAAK,EAAE,kBAAkB;6BAC1B;yBACF;qBACF;iBACF;aACF;YACD,MAAM,EAAE,0BAA0B;YAClC,MAAM,EAAE,CAAC,IAAI,CAAC;YACd,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE,GAAG,IAAI;SAClB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAAC,eAAe,EAAE,OAAO,EAAE,OAAO,EAAC;IAClE,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,2BAA2B,eAAe,EAAE;QACjD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { addLineStockMove as addCustomerDeliveryLine, searchDeliveryFilter, realizeSockMove as realizeCustomerDeliveryApi, } from './customer-delivery-api';
|
|
2
|
+
export { searchCustomerDeliveryLines, updateLine as updateCustomerDeliveryLineApi, } from './customer-delivery-line-api';
|
|
3
|
+
export * from './internal-move-api';
|
|
4
|
+
export * from './internal-move-line-api';
|
|
5
|
+
export * from './inventory-api';
|
|
6
|
+
export * from './internal-move-line-api';
|
|
7
|
+
export * from './partner-api';
|
|
8
|
+
export * from './product-api';
|
|
9
|
+
export * from './stock-correction-api';
|
|
10
|
+
export * from './stock-correction-reason-api';
|
|
11
|
+
export * from './stock-location-api';
|
|
12
|
+
export * from './stock-location-line-api';
|
|
13
|
+
export { searchSupplierArrivalFilter, addLineStockMove as addSupplierArrivalLine, realizeSockMove as realizeSupplierArrivalApi, } from './supplier-arrival-api';
|
|
14
|
+
export { searchSupplierArrivalLines, updateLine as updateSupplierArrivalLineApi, } from './supplier-arrival-line-api';
|
|
15
|
+
export * from './supplier-catalog-api';
|
|
16
|
+
export * from './supplychain-config-api';
|
|
17
|
+
export * from './tracking-number-api';
|
|
18
|
+
export * from './unit-api';
|
package/lib/api/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
export { addLineStockMove as addCustomerDeliveryLine, searchDeliveryFilter, realizeSockMove as realizeCustomerDeliveryApi, } from './customer-delivery-api';
|
|
19
|
+
export { searchCustomerDeliveryLines, updateLine as updateCustomerDeliveryLineApi, } from './customer-delivery-line-api';
|
|
20
|
+
export * from './internal-move-api';
|
|
21
|
+
export * from './internal-move-line-api';
|
|
22
|
+
export * from './inventory-api';
|
|
23
|
+
export * from './internal-move-line-api';
|
|
24
|
+
export * from './partner-api';
|
|
25
|
+
export * from './product-api';
|
|
26
|
+
export * from './stock-correction-api';
|
|
27
|
+
export * from './stock-correction-reason-api';
|
|
28
|
+
export * from './stock-location-api';
|
|
29
|
+
export * from './stock-location-line-api';
|
|
30
|
+
export { searchSupplierArrivalFilter, addLineStockMove as addSupplierArrivalLine, realizeSockMove as realizeSupplierArrivalApi, } from './supplier-arrival-api';
|
|
31
|
+
export { searchSupplierArrivalLines, updateLine as updateSupplierArrivalLineApi, } from './supplier-arrival-line-api';
|
|
32
|
+
export * from './supplier-catalog-api';
|
|
33
|
+
export * from './supplychain-config-api';
|
|
34
|
+
export * from './tracking-number-api';
|
|
35
|
+
export * from './unit-api';
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,IAAI,uBAAuB,EAC3C,oBAAoB,EACpB,eAAe,IAAI,0BAA0B,GAC9C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,EAC3B,UAAU,IAAI,6BAA6B,GAC5C,MAAM,8BAA8B,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EACL,2BAA2B,EAC3B,gBAAgB,IAAI,sBAAsB,EAC1C,eAAe,IAAI,yBAAyB,GAC7C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAC1B,UAAU,IAAI,4BAA4B,GAC3C,MAAM,6BAA6B,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function searchInternalMoveFilter({ searchValue, page }: {
|
|
2
|
+
searchValue?: any;
|
|
3
|
+
page?: number;
|
|
4
|
+
}): Promise<any>;
|
|
5
|
+
export function createInternalStockMove({ productId, companyId, originStockLocationId, destStockLocationId, unitId, trackingNumberId, movedQty, }: {
|
|
6
|
+
productId: any;
|
|
7
|
+
companyId: any;
|
|
8
|
+
originStockLocationId: any;
|
|
9
|
+
destStockLocationId: any;
|
|
10
|
+
unitId: any;
|
|
11
|
+
trackingNumberId: any;
|
|
12
|
+
movedQty: any;
|
|
13
|
+
}): Promise<any>;
|
|
14
|
+
export function updateInternalStockMove({ internalMoveId, version, movedQty, unitId, status, }: {
|
|
15
|
+
internalMoveId: any;
|
|
16
|
+
version: any;
|
|
17
|
+
movedQty: any;
|
|
18
|
+
unitId: any;
|
|
19
|
+
status: any;
|
|
20
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { axiosApiProvider } from '@axelor/aos-mobile-core';
|
|
19
|
+
import StockLocation from '../types/stock-location';
|
|
20
|
+
import StockMove from '../types/stock-move';
|
|
21
|
+
const internalMoveFields = [
|
|
22
|
+
'name',
|
|
23
|
+
'stockMoveSeq',
|
|
24
|
+
'statusSelect',
|
|
25
|
+
'availableStatusSelect',
|
|
26
|
+
'fromStockLocation',
|
|
27
|
+
'toStockLocation',
|
|
28
|
+
'origin',
|
|
29
|
+
'createdOn',
|
|
30
|
+
'realDate',
|
|
31
|
+
'estimatedDate',
|
|
32
|
+
'stockMoveLineList',
|
|
33
|
+
'note',
|
|
34
|
+
'pickingOrderComments',
|
|
35
|
+
];
|
|
36
|
+
const sortByFields = [
|
|
37
|
+
'statusSelect',
|
|
38
|
+
'-realDate',
|
|
39
|
+
'estimatedDate',
|
|
40
|
+
'stockMoveSeq',
|
|
41
|
+
];
|
|
42
|
+
const createSearchCriteria = searchValue => {
|
|
43
|
+
const criteria = [];
|
|
44
|
+
criteria.push({
|
|
45
|
+
fieldName: 'fromStockLocation.typeSelect',
|
|
46
|
+
operator: '=',
|
|
47
|
+
value: StockLocation.type.internal,
|
|
48
|
+
});
|
|
49
|
+
criteria.push({
|
|
50
|
+
fieldName: 'toStockLocation.typeSelect',
|
|
51
|
+
operator: '=',
|
|
52
|
+
value: StockLocation.type.internal,
|
|
53
|
+
});
|
|
54
|
+
criteria.push({
|
|
55
|
+
fieldName: 'typeSelect',
|
|
56
|
+
operator: '=',
|
|
57
|
+
value: StockMove.type.internal,
|
|
58
|
+
});
|
|
59
|
+
if (searchValue != null) {
|
|
60
|
+
criteria.push({
|
|
61
|
+
fieldName: 'stockMoveSeq',
|
|
62
|
+
operator: 'like',
|
|
63
|
+
value: searchValue,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return criteria;
|
|
67
|
+
};
|
|
68
|
+
export async function searchInternalMoveFilter({ searchValue = null, page = 0 }) {
|
|
69
|
+
return axiosApiProvider.post({
|
|
70
|
+
url: '/ws/rest/com.axelor.apps.stock.db.StockMove/search',
|
|
71
|
+
data: {
|
|
72
|
+
data: {
|
|
73
|
+
criteria: [
|
|
74
|
+
{
|
|
75
|
+
operator: 'and',
|
|
76
|
+
criteria: createSearchCriteria(searchValue),
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
fields: internalMoveFields,
|
|
81
|
+
sortBy: sortByFields,
|
|
82
|
+
limit: 10,
|
|
83
|
+
offset: 10 * page,
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
export async function createInternalStockMove({ productId, companyId, originStockLocationId, destStockLocationId, unitId, trackingNumberId, movedQty, }) {
|
|
88
|
+
return axiosApiProvider.post({
|
|
89
|
+
url: 'ws/aos/stock-move/internal/',
|
|
90
|
+
data: {
|
|
91
|
+
productId: productId,
|
|
92
|
+
companyId: companyId,
|
|
93
|
+
originStockLocationId: originStockLocationId,
|
|
94
|
+
destStockLocationId: destStockLocationId,
|
|
95
|
+
unitId: unitId,
|
|
96
|
+
trackingNumberId: trackingNumberId,
|
|
97
|
+
movedQty: movedQty,
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
export async function updateInternalStockMove({ internalMoveId, version, movedQty, unitId, status, }) {
|
|
102
|
+
return axiosApiProvider.put({
|
|
103
|
+
url: `/ws/aos/stock-move/internal/${internalMoveId}`,
|
|
104
|
+
data: {
|
|
105
|
+
version: version,
|
|
106
|
+
movedQty: movedQty,
|
|
107
|
+
unitId: unitId,
|
|
108
|
+
status: status,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=internal-move-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-move-api.js","sourceRoot":"","sources":["../../src/api/internal-move-api.js"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { axiosApiProvider } from '@axelor/aos-mobile-core';
|
|
19
|
+
const internalMoveLineFields = [
|
|
20
|
+
'id',
|
|
21
|
+
'product',
|
|
22
|
+
'availableStatusSelect',
|
|
23
|
+
'trackingNumber',
|
|
24
|
+
'unit',
|
|
25
|
+
'qty',
|
|
26
|
+
'realQty',
|
|
27
|
+
];
|
|
28
|
+
export async function searchInternalMoveLines({ internalMoveId, page = 0 }) {
|
|
29
|
+
return axiosApiProvider.post({
|
|
30
|
+
url: '/ws/rest/com.axelor.apps.stock.db.StockMoveLine/search',
|
|
31
|
+
data: {
|
|
32
|
+
data: {
|
|
33
|
+
criteria: [
|
|
34
|
+
{
|
|
35
|
+
operator: 'and',
|
|
36
|
+
criteria: [
|
|
37
|
+
{
|
|
38
|
+
fieldName: 'stockMove.id',
|
|
39
|
+
operator: '=',
|
|
40
|
+
value: internalMoveId,
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
fields: internalMoveLineFields,
|
|
47
|
+
sortBy: ['id'],
|
|
48
|
+
limit: 10,
|
|
49
|
+
offset: 10 * page,
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=internal-move-line-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-move-line-api.js","sourceRoot":"","sources":["../../src/api/internal-move-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,sBAAsB,GAAG;IAC7B,IAAI;IACJ,SAAS;IACT,uBAAuB;IACvB,gBAAgB;IAChB,MAAM;IACN,KAAK;IACL,SAAS;CACV,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,EAAC,cAAc,EAAE,IAAI,GAAG,CAAC,EAAC;IACtE,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,wDAAwD;QAC7D,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE;4BACR;gCACE,SAAS,EAAE,cAAc;gCACzB,QAAQ,EAAE,GAAG;gCACb,KAAK,EAAE,cAAc;6BACtB;yBACF;qBACF;iBACF;aACF;YACD,MAAM,EAAE,sBAAsB;YAC9B,MAAM,EAAE,CAAC,IAAI,CAAC;YACd,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE,GAAG,IAAI;SAClB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function fetchInventory({ inventoryId }: {
|
|
2
|
+
inventoryId: any;
|
|
3
|
+
}): Promise<any>;
|
|
4
|
+
export function searchInventoryFilter({ searchValue, page }: {
|
|
5
|
+
searchValue: any;
|
|
6
|
+
page?: number;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
export function modifyDescriptionInventory({ inventoryId, description, version, }: {
|
|
9
|
+
inventoryId: any;
|
|
10
|
+
description: any;
|
|
11
|
+
version: any;
|
|
12
|
+
}): Promise<any>;
|
|
13
|
+
export function updateInventoryStatus({ inventoryId, version, status, userId, }: {
|
|
14
|
+
inventoryId: any;
|
|
15
|
+
version: any;
|
|
16
|
+
status: any;
|
|
17
|
+
userId?: any;
|
|
18
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,121 @@
|
|
|
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 { axiosApiProvider } from '@axelor/aos-mobile-core';
|
|
19
|
+
import Inventory from '../types/inventory';
|
|
20
|
+
const inventoryFields = [
|
|
21
|
+
'id',
|
|
22
|
+
'stockLocation',
|
|
23
|
+
'company',
|
|
24
|
+
'inventorySeq',
|
|
25
|
+
'inventoryTitle',
|
|
26
|
+
'createdOn',
|
|
27
|
+
'updatedOn',
|
|
28
|
+
'plannedStartDateT',
|
|
29
|
+
'plannedEndDateT',
|
|
30
|
+
'validatedOn',
|
|
31
|
+
'typeSelect',
|
|
32
|
+
'statusSelect',
|
|
33
|
+
'product',
|
|
34
|
+
'description',
|
|
35
|
+
'version',
|
|
36
|
+
'fromRack',
|
|
37
|
+
'toRack',
|
|
38
|
+
'productCategory',
|
|
39
|
+
'productFamily',
|
|
40
|
+
];
|
|
41
|
+
const sortByFields = [
|
|
42
|
+
'statusSelect',
|
|
43
|
+
'-validatedOn',
|
|
44
|
+
'plannedStartDateT',
|
|
45
|
+
'inventorySeq',
|
|
46
|
+
];
|
|
47
|
+
const createSearchCriteria = searchValue => {
|
|
48
|
+
const criteria = [];
|
|
49
|
+
criteria.push({
|
|
50
|
+
fieldName: 'statusSelect',
|
|
51
|
+
operator: '!=',
|
|
52
|
+
value: Inventory.status.Draft,
|
|
53
|
+
}, {
|
|
54
|
+
fieldName: 'statusSelect',
|
|
55
|
+
operator: '!=',
|
|
56
|
+
value: Inventory.status.Canceled,
|
|
57
|
+
});
|
|
58
|
+
if (searchValue != null) {
|
|
59
|
+
criteria.push({
|
|
60
|
+
fieldName: 'inventorySeq',
|
|
61
|
+
operator: 'like',
|
|
62
|
+
value: searchValue,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return criteria;
|
|
66
|
+
};
|
|
67
|
+
export async function fetchInventory({ inventoryId }) {
|
|
68
|
+
return axiosApiProvider.post({
|
|
69
|
+
url: `/ws/rest/com.axelor.apps.stock.db.Inventory/${inventoryId}/fetch`,
|
|
70
|
+
data: {
|
|
71
|
+
fields: inventoryFields,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
export async function searchInventoryFilter({ searchValue, page = 0 }) {
|
|
76
|
+
return axiosApiProvider.post({
|
|
77
|
+
url: '/ws/rest/com.axelor.apps.stock.db.Inventory/search',
|
|
78
|
+
data: {
|
|
79
|
+
data: {
|
|
80
|
+
criteria: [
|
|
81
|
+
{
|
|
82
|
+
operator: 'and',
|
|
83
|
+
criteria: createSearchCriteria(searchValue),
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
fields: inventoryFields,
|
|
88
|
+
sortBy: sortByFields,
|
|
89
|
+
limit: 10,
|
|
90
|
+
offset: 10 * page,
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
export async function modifyDescriptionInventory({ inventoryId, description, version, }) {
|
|
95
|
+
return axiosApiProvider.post({
|
|
96
|
+
url: `/ws/rest/com.axelor.apps.stock.db.Inventory/${inventoryId}`,
|
|
97
|
+
data: {
|
|
98
|
+
data: {
|
|
99
|
+
id: inventoryId,
|
|
100
|
+
description: description,
|
|
101
|
+
version: version,
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
export async function updateInventoryStatus({ inventoryId, version, status, userId = null, }) {
|
|
107
|
+
return axiosApiProvider.put({
|
|
108
|
+
url: `/ws/aos/inventory/update-status/${inventoryId}`,
|
|
109
|
+
data: userId != null
|
|
110
|
+
? {
|
|
111
|
+
version: version,
|
|
112
|
+
status: status,
|
|
113
|
+
userId: userId,
|
|
114
|
+
}
|
|
115
|
+
: {
|
|
116
|
+
version: version,
|
|
117
|
+
status: status,
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=inventory-api.js.map
|