@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 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-api.js","sourceRoot":"","sources":["../../src/api/inventory-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,MAAM,eAAe,GAAG;IACtB,IAAI;IACJ,eAAe;IACf,SAAS;IACT,cAAc;IACd,gBAAgB;IAChB,WAAW;IACX,WAAW;IACX,mBAAmB;IACnB,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,cAAc;IACd,SAAS;IACT,aAAa;IACb,SAAS;IACT,UAAU;IACV,QAAQ;IACR,iBAAiB;IACjB,eAAe;CAChB,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,cAAc;IACd,cAAc;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C;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,EAC/C,WAAW,EACX,WAAW,EACX,OAAO,GACR;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,+CAA+C,WAAW,EAAE;QACjE,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,EAAE,EAAE,WAAW;gBACf,WAAW,EAAE,WAAW;gBACxB,OAAO,EAAE,OAAO;aACjB;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,EAC1C,WAAW,EACX,OAAO,EACP,MAAM,EACN,MAAM,GAAG,IAAI,GACd;IACC,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,mCAAmC,WAAW,EAAE;QACrD,IAAI,EACF,MAAM,IAAI,IAAI;YACZ,CAAC,CAAC;gBACE,OAAO,EAAE,OAAO;gBAChB,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE,MAAM;aACf;YACH,CAAC,CAAC;gBACE,OAAO,EAAE,OAAO;gBAChB,MAAM,EAAE,MAAM;aACf;KACR,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function searchInventoryLines({ inventoryId, page }: {
|
|
2
|
+
inventoryId: any;
|
|
3
|
+
page?: number;
|
|
4
|
+
}): Promise<any>;
|
|
5
|
+
export function updateInventoryLineDetails({ inventoryLineId, version, realQty, description, }: {
|
|
6
|
+
inventoryLineId: any;
|
|
7
|
+
version: any;
|
|
8
|
+
realQty: any;
|
|
9
|
+
description?: any;
|
|
10
|
+
}): Promise<any>;
|
|
11
|
+
export function createInventoryLine({ inventoryId, inventoryVersion, productId, trackingNumberId, rack, realQty, }: {
|
|
12
|
+
inventoryId: any;
|
|
13
|
+
inventoryVersion: any;
|
|
14
|
+
productId: any;
|
|
15
|
+
trackingNumberId?: any;
|
|
16
|
+
rack?: any;
|
|
17
|
+
realQty: any;
|
|
18
|
+
}): Promise<any>;
|
|
@@ -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 { axiosApiProvider } from '@axelor/aos-mobile-core';
|
|
19
|
+
const inventoryLineFields = [
|
|
20
|
+
'id',
|
|
21
|
+
'product',
|
|
22
|
+
'currentQty',
|
|
23
|
+
'realQty',
|
|
24
|
+
'unit',
|
|
25
|
+
'rack',
|
|
26
|
+
'trackingNumber',
|
|
27
|
+
'description',
|
|
28
|
+
];
|
|
29
|
+
export async function searchInventoryLines({ inventoryId, page = 0 }) {
|
|
30
|
+
return axiosApiProvider.post({
|
|
31
|
+
url: '/ws/rest/com.axelor.apps.stock.db.InventoryLine/search',
|
|
32
|
+
data: {
|
|
33
|
+
data: {
|
|
34
|
+
criteria: [
|
|
35
|
+
{
|
|
36
|
+
operator: 'and',
|
|
37
|
+
criteria: [
|
|
38
|
+
{
|
|
39
|
+
fieldName: 'inventory.id',
|
|
40
|
+
operator: '=',
|
|
41
|
+
value: inventoryId,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
fields: inventoryLineFields,
|
|
48
|
+
limit: 10,
|
|
49
|
+
offset: 10 * page,
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
export async function updateInventoryLineDetails({ inventoryLineId, version, realQty, description = null, }) {
|
|
54
|
+
return axiosApiProvider.put({
|
|
55
|
+
url: `/ws/aos/inventory-line/${inventoryLineId}`,
|
|
56
|
+
data: {
|
|
57
|
+
version: version,
|
|
58
|
+
realQty: realQty,
|
|
59
|
+
description: description,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export async function createInventoryLine({ inventoryId, inventoryVersion, productId, trackingNumberId = null, rack = null, realQty, }) {
|
|
64
|
+
return axiosApiProvider.post({
|
|
65
|
+
url: '/ws/aos/inventory-line/',
|
|
66
|
+
data: {
|
|
67
|
+
inventoryId: inventoryId,
|
|
68
|
+
inventoryVersion: inventoryVersion,
|
|
69
|
+
productId: productId,
|
|
70
|
+
trackingNumberId: trackingNumberId,
|
|
71
|
+
rack: rack,
|
|
72
|
+
realQty: realQty,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=inventory-line-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-line-api.js","sourceRoot":"","sources":["../../src/api/inventory-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,mBAAmB,GAAG;IAC1B,IAAI;IACJ,SAAS;IACT,YAAY;IACZ,SAAS;IACT,MAAM;IACN,MAAM;IACN,gBAAgB;IAChB,aAAa;CACd,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EAAC,WAAW,EAAE,IAAI,GAAG,CAAC,EAAC;IAChE,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,WAAW;6BACnB;yBACF;qBACF;iBACF;aACF;YACD,MAAM,EAAE,mBAAmB;YAC3B,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE,GAAG,IAAI;SAClB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,EAC/C,eAAe,EACf,OAAO,EACP,OAAO,EACP,WAAW,GAAG,IAAI,GACnB;IACC,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,0BAA0B,eAAe,EAAE;QAChD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;YAChB,WAAW,EAAE,WAAW;SACzB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,EACxC,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,gBAAgB,GAAG,IAAI,EACvB,IAAI,GAAG,IAAI,EACX,OAAO,GACR;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,yBAAyB;QAC9B,IAAI,EAAE;YACJ,WAAW,EAAE,WAAW;YACxB,gBAAgB,EAAE,gBAAgB;YAClC,SAAS,EAAE,SAAS;YACpB,gBAAgB,EAAE,gBAAgB;YAClC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
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 partnerFields = [
|
|
20
|
+
'id',
|
|
21
|
+
'partnerSeq',
|
|
22
|
+
'fullName',
|
|
23
|
+
'name',
|
|
24
|
+
'firstName',
|
|
25
|
+
'simpleFullName',
|
|
26
|
+
];
|
|
27
|
+
export async function searchSuppliersFilter({ searchValue, page = 0 }) {
|
|
28
|
+
return axiosApiProvider.post({
|
|
29
|
+
url: '/ws/rest/com.axelor.apps.base.db.Partner/search',
|
|
30
|
+
data: {
|
|
31
|
+
data: {
|
|
32
|
+
criteria: [
|
|
33
|
+
{
|
|
34
|
+
operator: 'and',
|
|
35
|
+
criteria: [
|
|
36
|
+
{
|
|
37
|
+
fieldName: 'isContact',
|
|
38
|
+
operator: '=',
|
|
39
|
+
value: false,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
fieldName: 'isSupplier',
|
|
43
|
+
operator: '=',
|
|
44
|
+
value: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
operator: 'or',
|
|
48
|
+
criteria: [
|
|
49
|
+
{
|
|
50
|
+
fieldName: 'fullName',
|
|
51
|
+
operator: 'like',
|
|
52
|
+
value: searchValue,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
fieldName: 'partnerSeq',
|
|
56
|
+
operator: 'like',
|
|
57
|
+
value: searchValue,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
fieldName: 'name',
|
|
61
|
+
operator: 'like',
|
|
62
|
+
value: searchValue,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
fieldName: 'firstName',
|
|
66
|
+
operator: 'like',
|
|
67
|
+
value: searchValue,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
fieldName: 'simpleFullName',
|
|
71
|
+
operator: 'like',
|
|
72
|
+
value: searchValue,
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
fields: partnerFields,
|
|
81
|
+
limit: 10,
|
|
82
|
+
offset: 10 * page,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
export async function searchClientsFilter({ searchValue, page = 0 }) {
|
|
87
|
+
return axiosApiProvider.post({
|
|
88
|
+
url: '/ws/rest/com.axelor.apps.base.db.Partner/search',
|
|
89
|
+
data: {
|
|
90
|
+
data: {
|
|
91
|
+
criteria: [
|
|
92
|
+
{
|
|
93
|
+
operator: 'and',
|
|
94
|
+
criteria: [
|
|
95
|
+
{
|
|
96
|
+
fieldName: 'isContact',
|
|
97
|
+
operator: '=',
|
|
98
|
+
value: false,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
operator: 'or',
|
|
102
|
+
criteria: [
|
|
103
|
+
{
|
|
104
|
+
fieldName: 'isCustomer',
|
|
105
|
+
operator: '=',
|
|
106
|
+
value: true,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
fieldName: 'isProspect',
|
|
110
|
+
operator: '=',
|
|
111
|
+
value: true,
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
operator: 'or',
|
|
117
|
+
criteria: [
|
|
118
|
+
{
|
|
119
|
+
fieldName: 'fullName',
|
|
120
|
+
operator: 'like',
|
|
121
|
+
value: searchValue,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
fieldName: 'partnerSeq',
|
|
125
|
+
operator: 'like',
|
|
126
|
+
value: searchValue,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
fieldName: 'name',
|
|
130
|
+
operator: 'like',
|
|
131
|
+
value: searchValue,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
fieldName: 'firstName',
|
|
135
|
+
operator: 'like',
|
|
136
|
+
value: searchValue,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
fieldName: 'simpleFullName',
|
|
140
|
+
operator: 'like',
|
|
141
|
+
value: searchValue,
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
fields: partnerFields,
|
|
150
|
+
limit: 10,
|
|
151
|
+
offset: 10 * page,
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=partner-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partner-api.js","sourceRoot":"","sources":["../../src/api/partner-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,aAAa,GAAG;IACpB,IAAI;IACJ,YAAY;IACZ,UAAU;IACV,MAAM;IACN,WAAW;IACX,gBAAgB;CACjB,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,EAAC,WAAW,EAAE,IAAI,GAAG,CAAC,EAAC;IACjE,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,iDAAiD;QACtD,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE;4BACR;gCACE,SAAS,EAAE,WAAW;gCACt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AAE,GAAG;wCACb,KAAK,EAAE,IAAI;qCACZ;oCACD;wCACE,SAAS,EAAE,YAAY;wCACvB,QAAQ,EAAE,GAAG;wCACb,KAAK,EAAE,IAAI;qCACZ;iCACF;6BACF;4BACD;gCACE,QAAQ,EAAE,IAAI;gCACd,QAAQ,EAAE;oCACR;wCACE,SAAS,EAAE,UAAU;wCACrB,QAAQ,EAAE,MAAM;wCAChB,KAAK,EAAE,WAAW;qCACnB;oCACD;wCACE,SAAS,EAAE,YAAY;wCACvB,QAAQ,EAAE,MAAM;wCAChB,KAAK,EAAE,WAAW;qCACnB;oCACD;wCACE,SAAS,EAAE,MAAM;wCACjB,QAAQ,EAAE,MAAM;wCAChB,KAAK,EAAE,WAAW;qCACnB;oCACD;wCACE,SAAS,EAAE,WAAW;wCACtB,QAAQ,EAAE,MAAM;wCAChB,KAAK,EAAE,WAAW;qCACnB;oCACD;wCACE,SAAS,EAAE,gBAAgB;wCAC3B,QAAQ,EAAE,MAAM;wCAChB,KAAK,EAAE,WAAW;qCACnB;iCACF;6BACF;yBACF;qBACF;iBACF;aACF;YACD,MAAM,EAAE,aAAa;YACrB,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE,GAAG,IAAI;SAClB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function searchProductsFilter({ searchValue, page }: {
|
|
2
|
+
searchValue: any;
|
|
3
|
+
page?: number;
|
|
4
|
+
}): Promise<any>;
|
|
5
|
+
export function searchProductWithId(productId: any): Promise<any>;
|
|
6
|
+
export function searchProductBySerialNumber(serialNumber: any): Promise<any>;
|
|
7
|
+
export function updateLocker({ productId, stockLocationId, newLocker, version, }: {
|
|
8
|
+
productId: any;
|
|
9
|
+
stockLocationId: any;
|
|
10
|
+
newLocker: any;
|
|
11
|
+
version: any;
|
|
12
|
+
}): Promise<any>;
|
|
13
|
+
export function fetchVariants({ productVariantParentId, page }: {
|
|
14
|
+
productVariantParentId: any;
|
|
15
|
+
page?: number;
|
|
16
|
+
}): Promise<any>;
|
|
17
|
+
export function getProductStockIndicators({ productId, companyId, stockLocationId, version, }: {
|
|
18
|
+
productId: any;
|
|
19
|
+
companyId: any;
|
|
20
|
+
stockLocationId: any;
|
|
21
|
+
version: any;
|
|
22
|
+
}): Promise<any>;
|
|
23
|
+
export function fetchVariantAttributes({ productVariantId, version }: {
|
|
24
|
+
productVariantId: any;
|
|
25
|
+
version: any;
|
|
26
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,189 @@
|
|
|
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, getApiResponseData, getFirstData, } from '@axelor/aos-mobile-core';
|
|
19
|
+
const productFields = [
|
|
20
|
+
'name',
|
|
21
|
+
'code',
|
|
22
|
+
'fullName',
|
|
23
|
+
'picture',
|
|
24
|
+
'trackingNumberConfiguration',
|
|
25
|
+
'unit',
|
|
26
|
+
'salesUnit',
|
|
27
|
+
'purchasesUnit',
|
|
28
|
+
'length',
|
|
29
|
+
'height',
|
|
30
|
+
'width',
|
|
31
|
+
'lengthUnit',
|
|
32
|
+
'description',
|
|
33
|
+
'netMass',
|
|
34
|
+
'grossMass',
|
|
35
|
+
'massUnit',
|
|
36
|
+
'productCategory',
|
|
37
|
+
'procurementMethodSelect',
|
|
38
|
+
'isUnrenewed',
|
|
39
|
+
'isPrototype',
|
|
40
|
+
'picture',
|
|
41
|
+
'serialNumber',
|
|
42
|
+
'trackingNumberConfiguration',
|
|
43
|
+
'parentProduct',
|
|
44
|
+
'productVariant',
|
|
45
|
+
];
|
|
46
|
+
const sortByFields = ['name'];
|
|
47
|
+
const createProductCriteria = searchValue => {
|
|
48
|
+
let criterias = [];
|
|
49
|
+
criterias.push({
|
|
50
|
+
fieldName: 'isModel',
|
|
51
|
+
operator: '=',
|
|
52
|
+
value: false,
|
|
53
|
+
}, {
|
|
54
|
+
fieldName: 'productTypeSelect',
|
|
55
|
+
operator: '=',
|
|
56
|
+
value: 'storable',
|
|
57
|
+
}, {
|
|
58
|
+
fieldName: 'stockManaged',
|
|
59
|
+
operator: '=',
|
|
60
|
+
value: true,
|
|
61
|
+
}, {
|
|
62
|
+
fieldName: 'dtype',
|
|
63
|
+
operator: '=',
|
|
64
|
+
value: 'Product',
|
|
65
|
+
});
|
|
66
|
+
if (searchValue != null) {
|
|
67
|
+
criterias.push({
|
|
68
|
+
operator: 'or',
|
|
69
|
+
criteria: [
|
|
70
|
+
{
|
|
71
|
+
fieldName: 'name',
|
|
72
|
+
operator: 'like',
|
|
73
|
+
value: searchValue,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
fieldName: 'code',
|
|
77
|
+
operator: 'like',
|
|
78
|
+
value: searchValue,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
fieldName: 'serialNumber',
|
|
82
|
+
operator: 'like',
|
|
83
|
+
value: searchValue,
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return criterias;
|
|
89
|
+
};
|
|
90
|
+
export async function searchProductsFilter({ searchValue, page = 0 }) {
|
|
91
|
+
return axiosApiProvider.post({
|
|
92
|
+
url: '/ws/rest/com.axelor.apps.base.db.Product/search',
|
|
93
|
+
data: {
|
|
94
|
+
data: {
|
|
95
|
+
criteria: [
|
|
96
|
+
{
|
|
97
|
+
operator: 'and',
|
|
98
|
+
criteria: createProductCriteria(searchValue),
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
fields: productFields,
|
|
103
|
+
sortBy: sortByFields,
|
|
104
|
+
limit: 10,
|
|
105
|
+
offset: 10 * page,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
export async function searchProductWithId(productId) {
|
|
110
|
+
return axiosApiProvider.post({
|
|
111
|
+
url: `/ws/rest/com.axelor.apps.base.db.Product/${productId}/fetch`,
|
|
112
|
+
data: {
|
|
113
|
+
fields: productFields,
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
export function searchProductBySerialNumber(serialNumber) {
|
|
118
|
+
return axiosApiProvider
|
|
119
|
+
.post({
|
|
120
|
+
url: '/ws/rest/com.axelor.apps.base.db.Product/search',
|
|
121
|
+
data: {
|
|
122
|
+
data: {
|
|
123
|
+
criteria: [
|
|
124
|
+
{
|
|
125
|
+
fieldName: 'serialNumber',
|
|
126
|
+
operator: '=',
|
|
127
|
+
value: serialNumber,
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
fields: productFields,
|
|
132
|
+
limit: 1,
|
|
133
|
+
offset: 0,
|
|
134
|
+
},
|
|
135
|
+
})
|
|
136
|
+
.then(getApiResponseData)
|
|
137
|
+
.then(getFirstData);
|
|
138
|
+
}
|
|
139
|
+
export async function updateLocker({ productId, stockLocationId, newLocker, version, }) {
|
|
140
|
+
return axiosApiProvider.put({
|
|
141
|
+
url: `/ws/aos/stock-product/modify-locker/${productId}`,
|
|
142
|
+
data: {
|
|
143
|
+
stockLocationId: stockLocationId,
|
|
144
|
+
newLocker: newLocker,
|
|
145
|
+
version: version,
|
|
146
|
+
},
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
export async function fetchVariants({ productVariantParentId, page = 0 }) {
|
|
150
|
+
return axiosApiProvider.post({
|
|
151
|
+
url: '/ws/rest/com.axelor.apps.base.db.Product/search',
|
|
152
|
+
data: {
|
|
153
|
+
data: {
|
|
154
|
+
criteria: [
|
|
155
|
+
{
|
|
156
|
+
operator: 'and',
|
|
157
|
+
criteria: [
|
|
158
|
+
{
|
|
159
|
+
fieldName: 'parentProduct.id',
|
|
160
|
+
operator: '=',
|
|
161
|
+
value: productVariantParentId,
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
fields: productFields,
|
|
168
|
+
limit: 10,
|
|
169
|
+
offset: 10 * page,
|
|
170
|
+
},
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
export async function getProductStockIndicators({ productId, companyId, stockLocationId, version, }) {
|
|
174
|
+
return axiosApiProvider.post({
|
|
175
|
+
url: `/ws/aos/stock-product/fetch-product-with-stock/${productId}`,
|
|
176
|
+
data: {
|
|
177
|
+
companyId: companyId,
|
|
178
|
+
stockLocationId: stockLocationId,
|
|
179
|
+
version: version,
|
|
180
|
+
},
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
export async function fetchVariantAttributes({ productVariantId, version }) {
|
|
184
|
+
return axiosApiProvider.post({
|
|
185
|
+
url: `/ws/aos/stock-product/get-variant-attributes/${productVariantId}`,
|
|
186
|
+
data: { version: version },
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
//# sourceMappingURL=product-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-api.js","sourceRoot":"","sources":["../../src/api/product-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,GACb,MAAM,yBAAyB,CAAC;AAEjC,MAAM,aAAa,GAAG;IACpB,MAAM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: number;
|
|
3
|
+
}): Promise<any>;
|
|
4
|
+
export function createStockCorrection({ productId, stockLocationId, reasonId, trackingNumberId, status, realQty, }: {
|
|
5
|
+
productId: any;
|
|
6
|
+
stockLocationId: any;
|
|
7
|
+
reasonId: any;
|
|
8
|
+
trackingNumberId: any;
|
|
9
|
+
status: any;
|
|
10
|
+
realQty: any;
|
|
11
|
+
}): Promise<any>;
|
|
12
|
+
export function updateStockCorrection({ stockCorrectionId, version, realQty, status, }: {
|
|
13
|
+
stockCorrectionId: any;
|
|
14
|
+
version: any;
|
|
15
|
+
realQty: any;
|
|
16
|
+
status: any;
|
|
17
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,73 @@
|
|
|
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 stockCorrectionFields = [
|
|
20
|
+
'statusSelect',
|
|
21
|
+
'product',
|
|
22
|
+
'stockLocation',
|
|
23
|
+
'createdOn',
|
|
24
|
+
'validationDateT',
|
|
25
|
+
'trackingNumber',
|
|
26
|
+
'realQty',
|
|
27
|
+
'baseQty',
|
|
28
|
+
'stockCorrectionReason',
|
|
29
|
+
];
|
|
30
|
+
const sortByFields = ['statusSelect', '-validationDateT', 'createdOn'];
|
|
31
|
+
export async function searchStockCorrection({ page = 0 }) {
|
|
32
|
+
return axiosApiProvider.post({
|
|
33
|
+
url: '/ws/rest/com.axelor.apps.stock.db.StockCorrection/search',
|
|
34
|
+
data: {
|
|
35
|
+
data: {
|
|
36
|
+
criteria: [
|
|
37
|
+
{
|
|
38
|
+
operator: 'and',
|
|
39
|
+
criteria: [],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
fields: stockCorrectionFields,
|
|
44
|
+
sortBy: sortByFields,
|
|
45
|
+
limit: 10,
|
|
46
|
+
offset: 10 * page,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
export async function createStockCorrection({ productId, stockLocationId, reasonId, trackingNumberId, status, realQty, }) {
|
|
51
|
+
return axiosApiProvider.post({
|
|
52
|
+
url: 'ws/aos/stock-correction/',
|
|
53
|
+
data: {
|
|
54
|
+
productId: productId,
|
|
55
|
+
stockLocationId: stockLocationId,
|
|
56
|
+
reasonId: reasonId,
|
|
57
|
+
trackingNumberId: trackingNumberId,
|
|
58
|
+
status: status,
|
|
59
|
+
realQty: realQty,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export async function updateStockCorrection({ stockCorrectionId, version, realQty, status, }) {
|
|
64
|
+
return axiosApiProvider.put({
|
|
65
|
+
url: `/ws/aos/stock-correction/${stockCorrectionId}`,
|
|
66
|
+
data: {
|
|
67
|
+
version: version,
|
|
68
|
+
realQty: realQty,
|
|
69
|
+
status: status,
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=stock-correction-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stock-correction-api.js","sourceRoot":"","sources":["../../src/api/stock-correction-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AA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,4BAA4B,iBAAiB,EAAE;QACpD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;YAChB,MAAM,EAAE,MAAM;SACf;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function searchStockCorrectionReason(): Promise<any>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export async function searchStockCorrectionReason() {
|
|
20
|
+
return axiosApiProvider.get({
|
|
21
|
+
url: '/ws/rest/com.axelor.apps.stock.db.StockCorrectionReason',
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=stock-correction-reason-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stock-correction-reason-api.js","sourceRoot":"","sources":["../../src/api/stock-correction-reason-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,CAAC,KAAK,UAAU,2BAA2B;IAC/C,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,yDAAyD;KAC/D,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function searchStockLocationsFilter({ searchValue, companyId, defaultStockLocation, page, }: {
|
|
2
|
+
searchValue?: any;
|
|
3
|
+
companyId?: any;
|
|
4
|
+
defaultStockLocation?: any;
|
|
5
|
+
page?: number;
|
|
6
|
+
}): Promise<any>;
|
|
7
|
+
export function searchStockLocationBySerialNumber(serialNumber: any): Promise<any>;
|