@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,23 @@
|
|
|
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 { default as Inventory } from './inventory';
|
|
19
|
+
export { default as Product } from './product';
|
|
20
|
+
export { default as StockCorrection } from './stock-corrrection';
|
|
21
|
+
export { default as StockLocation } from './stock-location';
|
|
22
|
+
export { default as StockMove } from './stock-move';
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Color, ThemeColors } from '@axelor/aos-mobile-ui';
|
|
2
|
+
import { TranslatorProps } from '@axelor/aos-mobile-core';
|
|
3
|
+
declare class Inventory {
|
|
4
|
+
static status: {
|
|
5
|
+
Draft: number;
|
|
6
|
+
Planned: number;
|
|
7
|
+
InProgress: number;
|
|
8
|
+
Completed: number;
|
|
9
|
+
Validated: number;
|
|
10
|
+
Canceled: number;
|
|
11
|
+
};
|
|
12
|
+
static getStatus: (select: number, I18n: TranslatorProps) => string;
|
|
13
|
+
static getStatusColor: (status: number, Colors: ThemeColors) => Color;
|
|
14
|
+
static getDate: (item: any) => string;
|
|
15
|
+
}
|
|
16
|
+
export default Inventory;
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
class Inventory {
|
|
19
|
+
static status = {
|
|
20
|
+
Draft: 1,
|
|
21
|
+
Planned: 2,
|
|
22
|
+
InProgress: 3,
|
|
23
|
+
Completed: 4,
|
|
24
|
+
Validated: 5,
|
|
25
|
+
Canceled: 6,
|
|
26
|
+
};
|
|
27
|
+
static getStatus = (select, I18n) => {
|
|
28
|
+
if (I18n) {
|
|
29
|
+
switch (select) {
|
|
30
|
+
case this.status.Draft:
|
|
31
|
+
return I18n.t('Stock_Status_Draft');
|
|
32
|
+
case this.status.Planned:
|
|
33
|
+
return I18n.t('Stock_Status_Planned');
|
|
34
|
+
case this.status.InProgress:
|
|
35
|
+
return I18n.t('Stock_Status_InProgress');
|
|
36
|
+
case this.status.Completed:
|
|
37
|
+
return I18n.t('Stock_Status_Completed');
|
|
38
|
+
case this.status.Validated:
|
|
39
|
+
return I18n.t('Stock_Status_Validated');
|
|
40
|
+
case this.status.Canceled:
|
|
41
|
+
return I18n.t('Stock_Status_Canceled');
|
|
42
|
+
default:
|
|
43
|
+
console.warn(`Status provided with value ${select} is not supported by inventory`);
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
static getStatusColor = (status, Colors) => {
|
|
49
|
+
switch (status) {
|
|
50
|
+
case this.status.Draft:
|
|
51
|
+
return Colors.secondaryColor;
|
|
52
|
+
case this.status.Planned:
|
|
53
|
+
return Colors.plannedColor;
|
|
54
|
+
case this.status.InProgress:
|
|
55
|
+
return Colors.progressColor;
|
|
56
|
+
case this.status.Completed:
|
|
57
|
+
return Colors.priorityColor;
|
|
58
|
+
case this.status.Validated:
|
|
59
|
+
return Colors.primaryColor;
|
|
60
|
+
case this.status.Canceled:
|
|
61
|
+
return Colors.errorColor;
|
|
62
|
+
default:
|
|
63
|
+
console.warn(`Status provided with value ${status} is not supported by inventory`);
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
static getDate = (item) => {
|
|
68
|
+
switch (item.statusSelect) {
|
|
69
|
+
case this.status.Draft:
|
|
70
|
+
return item.createdOn;
|
|
71
|
+
case this.status.Planned:
|
|
72
|
+
return item.plannedStartDateT;
|
|
73
|
+
case this.status.InProgress:
|
|
74
|
+
return item.plannedStartDateT;
|
|
75
|
+
case this.status.Completed:
|
|
76
|
+
return item.updatedOn;
|
|
77
|
+
case this.status.Validated:
|
|
78
|
+
return item.validatedOn;
|
|
79
|
+
case this.status.Canceled:
|
|
80
|
+
return item.updatedOn;
|
|
81
|
+
default:
|
|
82
|
+
console.warn(`Status provided with value ${item.statusSelect} is not supported by inventory`);
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export default Inventory;
|
|
88
|
+
//# sourceMappingURL=inventory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory.js","sourceRoot":"","sources":["../../src/types/inventory.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,MAAM,SAAS;IACb,MAAM,CAAC,MAAM,GAAG;QACd,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;QACV,UAAU,EAAE,CAAC;QACb,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;QACZ,QAAQ,EA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CAAC,SAAS;gBACxB,OAAO,MAAM,CAAC,aAAa,CAAC;YAC9B,KAAK,IAAI,CAAC,MAAM,CAAC,SAAS;gBACxB,OAAO,MAAM,CAAC,YAAY,CAAC;YAC7B,KAAK,IAAI,CAAC,MAAM,CAAC,QAAQ;gBACvB,OAAO,MAAM,CAAC,UAAU,CAAC;YAC3B;gBACE,OAAO,CAAC,IAAI,CACV,8BAA8B,MAAM,gCAAgC,CACrE,CAAC;gBACF,OAAO,IAAI,CAAC;SACf;IACH,CAAC,CAAC;IAEF,MAAM,CAAC,OAAO,GAAG,CAAC,IAAS,EAAU,EAAE;QACrC,QAAQ,IAAI,CAAC,YAAY,EAAE;YACzB,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK;gBACpB,OAAO,IAAI,CAAC,SAAS,CAAC;YACxB,KAAK,IAAI,CAAC,MAAM,CAAC,OAAO;gBACtB,OAAO,IAAI,CAAC,iBAAiB,CAAC;YAChC,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU;gBACzB,OAAO,IAAI,CAAC,iBAAiB,CAAC;YAChC,KAAK,IAAI,CAAC,MAAM,CAAC,SAAS;gBACxB,OAAO,IAAI,CAAC,SAAS,CAAC;YACxB,KAAK,IAAI,CAAC,MAAM,CAAC,SAAS;gBACxB,OAAO,IAAI,CAAC,WAAW,CAAC;YAC1B,KAAK,IAAI,CAAC,MAAM,CAAC,QAAQ;gBACvB,OAAO,IAAI,CAAC,SAAS,CAAC;YACxB;gBACE,OAAO,CAAC,IAAI,CACV,8BAA8B,IAAI,CAAC,YAAY,gCAAgC,CAChF,CAAC;gBACF,OAAO,IAAI,CAAC;SACf;IACH,CAAC,CAAC;;AAEJ,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TranslatorProps } from '@axelor/aos-mobile-core';
|
|
2
|
+
declare class Product {
|
|
3
|
+
static procurementMethod: {
|
|
4
|
+
Buy: string;
|
|
5
|
+
Produce: string;
|
|
6
|
+
BuyAndProduce: string;
|
|
7
|
+
};
|
|
8
|
+
static applicationPriceSelect: {
|
|
9
|
+
SalePrice: number;
|
|
10
|
+
CostPrice: number;
|
|
11
|
+
PurchasePrice: number;
|
|
12
|
+
};
|
|
13
|
+
static getProcurementMethod: (option: string, I18n: TranslatorProps) => string;
|
|
14
|
+
static getApplicationPriceSelect: (option: number, I18n: TranslatorProps) => string;
|
|
15
|
+
}
|
|
16
|
+
export default Product;
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
class Product {
|
|
19
|
+
static procurementMethod = {
|
|
20
|
+
Buy: 'buy',
|
|
21
|
+
Produce: 'produce',
|
|
22
|
+
BuyAndProduce: 'buyAndProduce',
|
|
23
|
+
};
|
|
24
|
+
static applicationPriceSelect = {
|
|
25
|
+
SalePrice: 0,
|
|
26
|
+
CostPrice: 1,
|
|
27
|
+
PurchasePrice: 2,
|
|
28
|
+
};
|
|
29
|
+
static getProcurementMethod = (option, I18n) => {
|
|
30
|
+
if (I18n) {
|
|
31
|
+
switch (option) {
|
|
32
|
+
case this.procurementMethod.Buy:
|
|
33
|
+
return I18n.t('Stock_Procurement_Buy');
|
|
34
|
+
case this.procurementMethod.Produce:
|
|
35
|
+
return I18n.t('Stock_Procurement_Produce');
|
|
36
|
+
case this.procurementMethod.BuyAndProduce:
|
|
37
|
+
return I18n.t('Stock_Procurement_BuyProduce');
|
|
38
|
+
default:
|
|
39
|
+
console.warn(`Procurement method provided with value ${option} is not supported by product.`);
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
};
|
|
45
|
+
static getApplicationPriceSelect = (option, I18n) => {
|
|
46
|
+
if (I18n) {
|
|
47
|
+
switch (option) {
|
|
48
|
+
case this.applicationPriceSelect.SalePrice:
|
|
49
|
+
return I18n.t('Stock_Application_SalePrice');
|
|
50
|
+
case this.applicationPriceSelect.CostPrice:
|
|
51
|
+
return I18n.t('Stock_Application_CostPrice');
|
|
52
|
+
case this.applicationPriceSelect.PurchasePrice:
|
|
53
|
+
return I18n.t('Stock_Application_PurchasePrice');
|
|
54
|
+
default:
|
|
55
|
+
console.warn(`Application price provided with value ${option} is not supported by product.`);
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export default Product;
|
|
62
|
+
//# sourceMappingURL=product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../src/types/product.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,OAAO;IACX,MAAM,CAAC,iBAAiB,GAAG;QACzB,GAAG,EAAE,KAAK;QACV,OAAO,EAAE,SAAS;QAClB,aAAa,EAAE,eAAe;KAC/B,CAAC;IAEF,MAAM,CAAC,sBAAsB,GAAG;QAC9B,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;QACZ,aAAa,EAAE,CAAC;KACjB,CAAC;IAEF,MAAM,CAAC,oBAAoB,GAAG,CAC5B,MAAc,EACd,IAAqB,EACb,EAAE;QACV,IAAI,IAAI,EAAE;YACR,QAAQ,MAAM,EAAE;gBACd,KAAK,IAAI,CAAC,iBAAiB,CAAC,GAAG;oBAC7B,OAAO,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC;gBACzC,KAAK,IAAI,CAAC,iBAAiB,CAAC,OAAO;oBACjC,OAAO,IAAI,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC;gBAC7C,KAAK,IAAI,CAAC,iBAAiB,CAAC,aAAa;oBACvC,OAAO,IAAI,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC;gBAChD;oBACE,OAAO,CAAC,IAAI,CACV,0CAA0C,MAAM,+BAA+B,CAChF,CAAC;oBACF,OAAO,IAAI,CAAC;aACf;SACF;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,MAAM,CAAC,yBAAyB,GAAG,CACjC,MAAc,EACd,IAAqB,EACb,EAAE;QACV,IAAI,IAAI,EAAE;YACR,QAAQ,MAAM,EAAE;gBACd,KAAK,IAAI,CAAC,sBAAsB,CAAC,SAAS;oBACxC,OAAO,IAAI,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC;gBAC/C,KAAK,IAAI,CAAC,sBAAsB,CAAC,SAAS;oBACxC,OAAO,IAAI,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC;gBAC/C,KAAK,IAAI,CAAC,sBAAsB,CAAC,aAAa;oBAC5C,OAAO,IAAI,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC;gBACnD;oBACE,OAAO,CAAC,IAAI,CACV,yCAAyC,MAAM,+BAA+B,CAC/E,CAAC;oBACF,OAAO,IAAI,CAAC;aACf;SACF;IACH,CAAC,CAAC;;AAGJ,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Color, ThemeColors } from '@axelor/aos-mobile-ui';
|
|
2
|
+
import { TranslatorProps } from '@axelor/aos-mobile-core';
|
|
3
|
+
declare class StockCorrection {
|
|
4
|
+
static status: {
|
|
5
|
+
Draft: number;
|
|
6
|
+
Validated: number;
|
|
7
|
+
};
|
|
8
|
+
static getStatus: (select: number, I18n: TranslatorProps) => string;
|
|
9
|
+
static getStatusColor: (status: number, Colors: ThemeColors) => Color;
|
|
10
|
+
}
|
|
11
|
+
export default StockCorrection;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
class StockCorrection {
|
|
19
|
+
static status = {
|
|
20
|
+
Draft: 1,
|
|
21
|
+
Validated: 2,
|
|
22
|
+
};
|
|
23
|
+
static getStatus = (select, I18n) => {
|
|
24
|
+
switch (select) {
|
|
25
|
+
case this.status.Draft:
|
|
26
|
+
return I18n.t('Stock_Status_Draft');
|
|
27
|
+
case this.status.Validated:
|
|
28
|
+
return I18n.t('Stock_Status_Validated');
|
|
29
|
+
default:
|
|
30
|
+
console.warn(`Status provided with value ${select} is not supported by stock correction`);
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
static getStatusColor = (status, Colors) => {
|
|
35
|
+
switch (status) {
|
|
36
|
+
case this.status.Draft:
|
|
37
|
+
return Colors.secondaryColor;
|
|
38
|
+
case this.status.Validated:
|
|
39
|
+
return Colors.primaryColor;
|
|
40
|
+
default:
|
|
41
|
+
console.warn(`Status provided with value ${status} is not supported by stock correction`);
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export default StockCorrection;
|
|
47
|
+
//# sourceMappingURL=stock-corrrection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stock-corrrection.js","sourceRoot":"","sources":["../../src/types/stock-corrrection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,MAAM,eAAe;IACnB,MAAM,CAAC,MAAM,GAAG;QACd,KAAK,EAAE,CAAC;QACR,SAAS,EAAE,CAAC;KACb,CAAC;IAEF,MAAM,CAAC,SAAS,GAAG,CAAC,MAAc,EAAE,IAAqB,EAAU,EAAE;QACnE,QAAQ,MAAM,EAAE;YACd,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK;gBACpB,OAAO,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;YACtC,KAAK,IAAI,CAAC,MAAM,CAAC,SAAS;gBACxB,OAAO,IAAI,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC;YAC1C;gBACE,OAAO,CAAC,IAAI,CACV,8BAA8B,MAAM,uCAAuC,CAC5E,CAAC;gBACF,OAAO,IAAI,CAAC;SACf;IACH,CAAC,CAAC;IAEF,MAAM,CAAC,cAAc,GAAG,CAAC,MAAc,EAAE,MAAmB,EAAS,EAAE;QACrE,QAAQ,MAAM,EAAE;YACd,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK;gBACpB,OAAO,MAAM,CAAC,cAAc,CAAC;YAC/B,KAAK,IAAI,CAAC,MAAM,CAAC,SAAS;gBACxB,OAAO,MAAM,CAAC,YAAY,CAAC;YAC7B;gBACE,OAAO,CAAC,IAAI,CACV,8BAA8B,MAAM,uCAAuC,CAC5E,CAAC;gBACF,OAAO,IAAI,CAAC;SACf;IACH,CAAC,CAAC;;AAGJ,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
class StockLocation {
|
|
19
|
+
static type = {
|
|
20
|
+
internal: 1,
|
|
21
|
+
external: 2,
|
|
22
|
+
virtual: 3,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export default StockLocation;
|
|
26
|
+
//# sourceMappingURL=stock-location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stock-location.js","sourceRoot":"","sources":["../../src/types/stock-location.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,aAAa;IACjB,MAAM,CAAC,IAAI,GAAG;QACZ,QAAQ,EAAE,CAAC;QACX,QAAQ,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;KACX,CAAC;;AAGJ,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Color, ThemeColors } from '@axelor/aos-mobile-ui';
|
|
2
|
+
import { TranslatorProps } from '@axelor/aos-mobile-core';
|
|
3
|
+
declare class StockMove {
|
|
4
|
+
static type: {
|
|
5
|
+
internal: number;
|
|
6
|
+
outgoing: number;
|
|
7
|
+
incoming: number;
|
|
8
|
+
};
|
|
9
|
+
static status: {
|
|
10
|
+
Draft: number;
|
|
11
|
+
Planned: number;
|
|
12
|
+
Realized: number;
|
|
13
|
+
Canceled: number;
|
|
14
|
+
};
|
|
15
|
+
static getStatus: (select: number, I18n: TranslatorProps) => string;
|
|
16
|
+
static getStatusColor: (status: number, Colors: ThemeColors) => Color;
|
|
17
|
+
static availability: {
|
|
18
|
+
Available: number;
|
|
19
|
+
Partially_available: number;
|
|
20
|
+
Unavailable: number;
|
|
21
|
+
};
|
|
22
|
+
static getAvailability: (select: number, I18n: TranslatorProps) => string;
|
|
23
|
+
static getAvailabilityColor: (availability: number, Colors: ThemeColors) => Color;
|
|
24
|
+
static conformity: {
|
|
25
|
+
Unknown: number;
|
|
26
|
+
None: number;
|
|
27
|
+
Compliant: number;
|
|
28
|
+
Non_Compliant: number;
|
|
29
|
+
};
|
|
30
|
+
static getConformitySelection: (I18n: TranslatorProps) => {
|
|
31
|
+
name: string;
|
|
32
|
+
id: number;
|
|
33
|
+
}[];
|
|
34
|
+
static getConformity: (select: number, I18n: TranslatorProps) => string;
|
|
35
|
+
}
|
|
36
|
+
export default StockMove;
|
|
@@ -0,0 +1,124 @@
|
|
|
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
|
+
class StockMove {
|
|
19
|
+
static type = {
|
|
20
|
+
internal: 1,
|
|
21
|
+
outgoing: 2,
|
|
22
|
+
incoming: 3,
|
|
23
|
+
};
|
|
24
|
+
static status = {
|
|
25
|
+
Draft: 1,
|
|
26
|
+
Planned: 2,
|
|
27
|
+
Realized: 3,
|
|
28
|
+
Canceled: 4,
|
|
29
|
+
};
|
|
30
|
+
static getStatus = (select, I18n) => {
|
|
31
|
+
if (I18n) {
|
|
32
|
+
switch (select) {
|
|
33
|
+
case this.status.Draft:
|
|
34
|
+
return I18n.t('Stock_Status_Draft');
|
|
35
|
+
case this.status.Planned:
|
|
36
|
+
return I18n.t('Stock_Status_Planned');
|
|
37
|
+
case this.status.Realized:
|
|
38
|
+
return I18n.t('Stock_Status_Realized');
|
|
39
|
+
case this.status.Canceled:
|
|
40
|
+
return I18n.t('Stock_Status_Canceled');
|
|
41
|
+
default:
|
|
42
|
+
console.warn(`Status provided with value ${select} is not supported by stock move`);
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
static getStatusColor = (status, Colors) => {
|
|
48
|
+
switch (status) {
|
|
49
|
+
case this.status.Draft:
|
|
50
|
+
return Colors.secondaryColor;
|
|
51
|
+
case this.status.Planned:
|
|
52
|
+
return Colors.plannedColor;
|
|
53
|
+
case this.status.Realized:
|
|
54
|
+
return Colors.primaryColor;
|
|
55
|
+
case this.status.Canceled:
|
|
56
|
+
return Colors.errorColor;
|
|
57
|
+
default:
|
|
58
|
+
console.warn(`Status provided with value ${status} is not supported by stock move`);
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
static availability = {
|
|
63
|
+
Available: 1,
|
|
64
|
+
Partially_available: 2,
|
|
65
|
+
Unavailable: 3,
|
|
66
|
+
};
|
|
67
|
+
static getAvailability = (select, I18n) => {
|
|
68
|
+
if (I18n) {
|
|
69
|
+
switch (select) {
|
|
70
|
+
case this.availability.Available:
|
|
71
|
+
return I18n.t('Stock_Available');
|
|
72
|
+
case this.availability.Partially_available:
|
|
73
|
+
return I18n.t('Stock_Partially');
|
|
74
|
+
case this.availability.Unavailable:
|
|
75
|
+
return I18n.t('Stock_Unavailable');
|
|
76
|
+
default:
|
|
77
|
+
console.warn(`Availability provided with value ${select} is not supported by stock move`);
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
static getAvailabilityColor = (availability, Colors) => {
|
|
83
|
+
switch (availability) {
|
|
84
|
+
case this.availability.Available:
|
|
85
|
+
return Colors.primaryColor;
|
|
86
|
+
case this.availability.Partially_available:
|
|
87
|
+
return Colors.cautionColor;
|
|
88
|
+
case this.availability.Unavailable:
|
|
89
|
+
return Colors.errorColor;
|
|
90
|
+
default:
|
|
91
|
+
console.warn(`Availability provided with value ${availability} is not supported by stock move`);
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
static conformity = {
|
|
96
|
+
Unknown: 0,
|
|
97
|
+
None: 1,
|
|
98
|
+
Compliant: 2,
|
|
99
|
+
Non_Compliant: 3,
|
|
100
|
+
};
|
|
101
|
+
static getConformitySelection = (I18n) => {
|
|
102
|
+
return [
|
|
103
|
+
{ name: I18n.t('Stock_Compliant'), id: this.conformity.Compliant },
|
|
104
|
+
{ name: I18n.t('Stock_NonCompliant'), id: this.conformity.Non_Compliant },
|
|
105
|
+
];
|
|
106
|
+
};
|
|
107
|
+
static getConformity = (select, I18n) => {
|
|
108
|
+
switch (select) {
|
|
109
|
+
case this.conformity.Unknown:
|
|
110
|
+
return '';
|
|
111
|
+
case this.conformity.None:
|
|
112
|
+
return ' ';
|
|
113
|
+
case this.conformity.Compliant:
|
|
114
|
+
return I18n.t('Stock_Compliant');
|
|
115
|
+
case this.conformity.Non_Compliant:
|
|
116
|
+
return I18n.t('Stock_NonCompliant');
|
|
117
|
+
default:
|
|
118
|
+
console.warn(`Conformity provided with value ${select} is not supported by stock move`);
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
export default StockMove;
|
|
124
|
+
//# sourceMappingURL=stock-move.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stock-move.js","sourceRoot":"","sources":["../../src/types/stock-move.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,MAAM,SAAS;IACb,MAAM,CAAC,IAAI,GAAG;QACZ,QAAQ,EAAE,CAAC;QACX,QAAQ,EAAE,CAAC;QACX,QAAQ,EAAE,CAAC;KACZ,CAAC;IAEF,MAAM,CAAC,MAAM,GAAG;QACd,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,CAAC;QACX,QAAQ,EAAE,CAAC;KACZ,CAAC;IAEF,MAAM,CAAC,SAAS,GAAG,CAAC,MAAc,EAAE,IAAqB,EAAU,EAAE;QACnE,IAAI,IAAI,EAAE;YACR,QAAQ,MAAM,EAAE;gBACd,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK;oBACpB,OAAO,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;gBACtC,KAAK,IAAI,CAAC,MAAM,CAAC,OAAO;oBACtB,OAAO,IAAI,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC;gBACxC,KAAK,IAAI,CAAC,MAAM,CAAC,QAAQ;oBACvB,OAAO,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC;gBACzC,KAAK,IAAI,CAAC,MAAM,CAAC,QAAQ;oBACvB,OAAO,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC;gBACzC;oBACE,OAAO,CAAC,IAAI,CACV,8BAA8B,MAAM,iCAAiC,CACtE,CAAC;oBACF,OAAO,IA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iB,CAAC,CAAC;YACnC,KAAK,IAAI,CAAC,UAAU,CAAC,aAAa;gBAChC,OAAO,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;YACtC;gBACE,OAAO,CAAC,IAAI,CACV,kCAAkC,MAAM,iCAAiC,CAC1E,CAAC;gBACF,OAAO,IAAI,CAAC;SACf;IACH,CAAC,CAAC;;AAGJ,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 const displayStockMoveSeq = (item) => item.stockMoveSeq;
|
|
19
|
+
export const displayItemTrackingNumber = (item) => item.trackingNumberSeq;
|
|
20
|
+
export const displayInventorySeq = (item) => item.inventorySeq;
|
|
21
|
+
export const displayPartner = (item) => item.fullName;
|
|
22
|
+
//# sourceMappingURL=displayers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"displayers.js","sourceRoot":"","sources":["../../src/utils/displayers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAS,EAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;AAC5E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAS,EAAU,EAAE,CAC7D,IAAI,CAAC,iBAAiB,CAAC;AACzB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAS,EAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;AAC5E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAS,EAAU,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const filterItemByStockMoveSeq: (item: any, name: any) => any;
|
|
2
|
+
export declare const filterInventoryByRef: (item: any, name: any) => any;
|
|
3
|
+
export declare const filterPartner: (item: any, searchValue: any) => any;
|
|
4
|
+
export declare const filterProduct: (item: any, searchValue: any) => any;
|
|
5
|
+
export declare const filterStockLocation: (item: any, searchValue: any) => any;
|
|
6
|
+
export declare const filterTrackingNumber: (item: any, searchValue: any) => any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { stringNoAccent } from '@axelor/aos-mobile-core';
|
|
19
|
+
export const filterItemByStockMoveSeq = (item, name) => {
|
|
20
|
+
return item.stockMoveSeq.toLowerCase().includes(name.toLowerCase());
|
|
21
|
+
};
|
|
22
|
+
export const filterInventoryByRef = (item, name) => {
|
|
23
|
+
return item.inventorySeq.toLowerCase().includes(name.toLowerCase());
|
|
24
|
+
};
|
|
25
|
+
export const filterPartner = (item, searchValue) => {
|
|
26
|
+
return ((item.fullName != null &&
|
|
27
|
+
stringNoAccent(item?.fullName)
|
|
28
|
+
.toLowerCase()
|
|
29
|
+
.includes(stringNoAccent(searchValue).toLowerCase())) ||
|
|
30
|
+
(item?.partnerSeq != null &&
|
|
31
|
+
stringNoAccent(item?.partnerSeq)
|
|
32
|
+
.toLowerCase()
|
|
33
|
+
.includes(stringNoAccent(searchValue).toLowerCase())) ||
|
|
34
|
+
(item?.name != null &&
|
|
35
|
+
stringNoAccent(item?.name)
|
|
36
|
+
.toLowerCase()
|
|
37
|
+
.includes(stringNoAccent(searchValue).toLowerCase())) ||
|
|
38
|
+
(item?.firstName != null &&
|
|
39
|
+
stringNoAccent(item?.firstName)
|
|
40
|
+
.toLowerCase()
|
|
41
|
+
.includes(stringNoAccent(searchValue).toLowerCase())) ||
|
|
42
|
+
(item?.simpleFullName != null &&
|
|
43
|
+
stringNoAccent(item?.simpleFullName)
|
|
44
|
+
.toLowerCase()
|
|
45
|
+
.includes(stringNoAccent(searchValue).toLowerCase())));
|
|
46
|
+
};
|
|
47
|
+
export const filterProduct = (item, searchValue) => {
|
|
48
|
+
return (stringNoAccent(item?.name)
|
|
49
|
+
.toLowerCase()
|
|
50
|
+
.includes(stringNoAccent(searchValue).toLowerCase()) ||
|
|
51
|
+
stringNoAccent(item?.code)
|
|
52
|
+
.toLowerCase()
|
|
53
|
+
.includes(stringNoAccent(searchValue).toLowerCase()) ||
|
|
54
|
+
(item?.serialNumber != null &&
|
|
55
|
+
stringNoAccent(item?.serialNumber)
|
|
56
|
+
.toLowerCase()
|
|
57
|
+
.includes(stringNoAccent(searchValue).toLowerCase())));
|
|
58
|
+
};
|
|
59
|
+
export const filterStockLocation = (item, searchValue) => {
|
|
60
|
+
return (stringNoAccent(item?.name)
|
|
61
|
+
.toLowerCase()
|
|
62
|
+
.includes(stringNoAccent(searchValue).toLowerCase()) ||
|
|
63
|
+
(item?.serialNumber != null &&
|
|
64
|
+
stringNoAccent(item?.serialNumber)
|
|
65
|
+
.toLowerCase()
|
|
66
|
+
.includes(stringNoAccent(searchValue).toLowerCase())));
|
|
67
|
+
};
|
|
68
|
+
export const filterTrackingNumber = (item, searchValue) => {
|
|
69
|
+
return (stringNoAccent(item?.trackingNumberSeq)
|
|
70
|
+
.toLowerCase()
|
|
71
|
+
.includes(stringNoAccent(searchValue).toLowerCase()) ||
|
|
72
|
+
(item?.serialNumber != null &&
|
|
73
|
+
stringNoAccent(item?.serialNumber)
|
|
74
|
+
.toLowerCase()
|
|
75
|
+
.includes(stringNoAccent(searchValue).toLowerCase())));
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/utils/filters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAEvD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;IACrD,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AACtE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;IACjD,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AACtE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,WA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