@axelor/aos-mobile-stock 6.5.0 → 6.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/customer-delivery-api.d.ts +5 -1
- package/lib/api/customer-delivery-api.js +10 -2
- package/lib/api/customer-delivery-api.js.map +1 -1
- package/lib/api/customer-delivery-line-api.d.ts +3 -0
- package/lib/api/customer-delivery-line-api.js +8 -1
- package/lib/api/customer-delivery-line-api.js.map +1 -1
- package/lib/api/index.d.ts +4 -4
- package/lib/api/index.js +4 -4
- package/lib/api/index.js.map +1 -1
- package/lib/api/internal-move-api.d.ts +5 -5
- package/lib/api/internal-move-api.js +10 -6
- package/lib/api/internal-move-api.js.map +1 -1
- package/lib/api/internal-move-line-api.d.ts +9 -0
- package/lib/api/internal-move-line-api.js +18 -1
- package/lib/api/internal-move-line-api.js.map +1 -1
- package/lib/api/inventory-line-api.d.ts +8 -0
- package/lib/api/inventory-line-api.js +20 -1
- package/lib/api/inventory-line-api.js.map +1 -1
- package/lib/api/stock-correction-api.d.ts +5 -1
- package/lib/api/stock-correction-api.js +10 -2
- package/lib/api/stock-correction-api.js.map +1 -1
- package/lib/api/supplier-arrival-api.d.ts +5 -1
- package/lib/api/supplier-arrival-api.js +10 -2
- package/lib/api/supplier-arrival-api.js.map +1 -1
- package/lib/api/supplier-arrival-line-api.d.ts +3 -0
- package/lib/api/supplier-arrival-line-api.js +18 -6
- package/lib/api/supplier-arrival-line-api.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/organisms/QuantityCard/QuantityCard.d.ts +2 -2
- package/lib/components/organisms/QuantityCard/QuantityCard.js +4 -3
- package/lib/components/organisms/QuantityCard/QuantityCard.js.map +1 -1
- package/lib/components/organisms/index.d.ts +0 -14
- package/lib/components/organisms/index.js +0 -14
- package/lib/components/organisms/index.js.map +1 -1
- package/lib/components/{organisms → templates/customerDelivery}/CustomerDeliveryCard/CustomerDeliveryCard.js +1 -1
- package/lib/components/templates/customerDelivery/CustomerDeliveryCard/CustomerDeliveryCard.js.map +1 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryHeader/CustomerDeliveryHeader.d.ts +4 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryHeader/CustomerDeliveryHeader.js +60 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryHeader/CustomerDeliveryHeader.js.map +1 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineButtons/CustomerDeliveryLineButtons.d.ts +8 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineButtons/CustomerDeliveryLineButtons.js +73 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineButtons/CustomerDeliveryLineButtons.js.map +1 -0
- package/lib/components/{organisms → templates/customerDelivery}/CustomerDeliveryLineCard/CustomerDeliveryLineCard.js +1 -7
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineCard/CustomerDeliveryLineCard.js.map +1 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineQuantityCard/CustomerDeliveryLineQuantityCard.d.ts +7 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineQuantityCard/CustomerDeliveryLineQuantityCard.js +53 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineQuantityCard/CustomerDeliveryLineQuantityCard.js.map +1 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineTrackingNumberSelect/CustomerDeliveryLineTrackingNumberSelect.d.ts +6 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineTrackingNumberSelect/CustomerDeliveryLineTrackingNumberSelect.js +35 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryLineTrackingNumberSelect/CustomerDeliveryLineTrackingNumberSelect.js.map +1 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryMovementIndicationCard/CustomerDeliveryMovementIndicationCard.d.ts +5 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryMovementIndicationCard/CustomerDeliveryMovementIndicationCard.js +33 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryMovementIndicationCard/CustomerDeliveryMovementIndicationCard.js.map +1 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryRealizeButton/CustomerDeliveryRealizeButton.d.ts +4 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryRealizeButton/CustomerDeliveryRealizeButton.js +40 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryRealizeButton/CustomerDeliveryRealizeButton.js.map +1 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryViewAllContainer/CustomerDeliveryViewAllContainer.d.ts +2 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryViewAllContainer/CustomerDeliveryViewAllContainer.js +90 -0
- package/lib/components/templates/customerDelivery/CustomerDeliveryViewAllContainer/CustomerDeliveryViewAllContainer.js.map +1 -0
- package/lib/components/templates/customerDelivery/index.d.ts +9 -0
- package/lib/components/templates/customerDelivery/index.js +27 -0
- package/lib/components/templates/customerDelivery/index.js.map +1 -0
- package/lib/components/templates/index.d.ts +6 -0
- package/lib/components/templates/index.js +24 -0
- package/lib/components/templates/index.js.map +1 -0
- package/lib/components/{organisms → templates/internalMove}/InternalMoveCard/InternalMoveCard.js +1 -1
- package/lib/components/templates/internalMove/InternalMoveCard/InternalMoveCard.js.map +1 -0
- package/lib/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.d.ts +13 -0
- package/lib/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.js +96 -0
- package/lib/components/templates/internalMove/InternalMoveLineButtons/InternalMoveLineButtons.js.map +1 -0
- package/lib/components/{organisms → templates/internalMove}/InternalMoveLineCard/InternalMoveLineCard.js +1 -1
- package/lib/components/templates/internalMove/InternalMoveLineCard/InternalMoveLineCard.js.map +1 -0
- package/lib/components/templates/internalMove/InternalMoveLineNotes/InternalMoveLineNotes.d.ts +7 -0
- package/lib/components/templates/internalMove/InternalMoveLineNotes/InternalMoveLineNotes.js +63 -0
- package/lib/components/templates/internalMove/InternalMoveLineNotes/InternalMoveLineNotes.js.map +1 -0
- package/lib/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.d.ts +7 -0
- package/lib/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.js +44 -0
- package/lib/components/templates/internalMove/InternalMoveLinePicker/InternalMoveLinePicker.js.map +1 -0
- package/lib/components/templates/internalMove/InternalMoveLineQuantityCard/InternalMoveLineQuantityCard.d.ts +11 -0
- package/lib/components/templates/internalMove/InternalMoveLineQuantityCard/InternalMoveLineQuantityCard.js +51 -0
- package/lib/components/templates/internalMove/InternalMoveLineQuantityCard/InternalMoveLineQuantityCard.js.map +1 -0
- package/lib/components/templates/internalMove/InternalMoveLineTrackingNumberSelect/InternalMoveLineTrackingNumberSelect.d.ts +6 -0
- package/lib/components/templates/internalMove/InternalMoveLineTrackingNumberSelect/InternalMoveLineTrackingNumberSelect.js +35 -0
- package/lib/components/templates/internalMove/InternalMoveLineTrackingNumberSelect/InternalMoveLineTrackingNumberSelect.js.map +1 -0
- package/lib/components/templates/internalMove/InternalMoveMovementIndicationCard/InternalMoveMovementIndicationCard.d.ts +4 -0
- package/lib/components/templates/internalMove/InternalMoveMovementIndicationCard/InternalMoveMovementIndicationCard.js +25 -0
- package/lib/components/templates/internalMove/InternalMoveMovementIndicationCard/InternalMoveMovementIndicationCard.js.map +1 -0
- package/lib/components/templates/internalMove/InternalMoveRealizeButton/InternalMoveRealizeButton.d.ts +4 -0
- package/lib/components/templates/internalMove/InternalMoveRealizeButton/InternalMoveRealizeButton.js +40 -0
- package/lib/components/templates/internalMove/InternalMoveRealizeButton/InternalMoveRealizeButton.js.map +1 -0
- package/lib/components/templates/internalMove/InternalMoveViewAllContainer/InternalMoveViewAllContainer.d.ts +2 -0
- package/lib/components/templates/internalMove/InternalMoveViewAllContainer/InternalMoveViewAllContainer.js +73 -0
- package/lib/components/templates/internalMove/InternalMoveViewAllContainer/InternalMoveViewAllContainer.js.map +1 -0
- package/lib/components/templates/internalMove/index.d.ts +10 -0
- package/lib/components/templates/internalMove/index.js +28 -0
- package/lib/components/templates/internalMove/index.js.map +1 -0
- package/lib/components/templates/inventory/InventoryButtons/InventoryButtons.d.ts +2 -0
- package/lib/components/templates/inventory/InventoryButtons/InventoryButtons.js +69 -0
- package/lib/components/templates/inventory/InventoryButtons/InventoryButtons.js.map +1 -0
- package/lib/components/{organisms → templates/inventory}/InventoryCard/InventoryCard.js +3 -3
- package/lib/components/templates/inventory/InventoryCard/InventoryCard.js.map +1 -0
- package/lib/components/templates/inventory/InventoryDescription/InventoryDescription.d.ts +2 -0
- package/lib/components/templates/inventory/InventoryDescription/InventoryDescription.js +46 -0
- package/lib/components/templates/inventory/InventoryDescription/InventoryDescription.js.map +1 -0
- package/lib/components/templates/inventory/InventoryDetailsHeader/InventoryDetailsHeader.d.ts +2 -0
- package/lib/components/templates/inventory/InventoryDetailsHeader/InventoryDetailsHeader.js +43 -0
- package/lib/components/templates/inventory/InventoryDetailsHeader/InventoryDetailsHeader.js.map +1 -0
- package/lib/components/{organisms → templates/inventory}/InventoryHeader/InventoryHeader.js +1 -1
- package/lib/components/templates/inventory/InventoryHeader/InventoryHeader.js.map +1 -0
- package/lib/components/templates/inventory/InventoryLineButtons/InventoryLineButtons.d.ts +10 -0
- package/lib/components/templates/inventory/InventoryLineButtons/InventoryLineButtons.js +75 -0
- package/lib/components/templates/inventory/InventoryLineButtons/InventoryLineButtons.js.map +1 -0
- package/lib/components/templates/inventory/InventoryLineCard/InventoryLineCard.js.map +1 -0
- package/lib/components/templates/inventory/InventoryLineQuantityCard/InventoryLineQuantityCard.d.ts +6 -0
- package/lib/components/templates/inventory/InventoryLineQuantityCard/InventoryLineQuantityCard.js +35 -0
- package/lib/components/templates/inventory/InventoryLineQuantityCard/InventoryLineQuantityCard.js.map +1 -0
- package/lib/components/templates/inventory/InventoryLineTrackingNumberSelect/InventoryLineTrackingNumberSelect.d.ts +6 -0
- package/lib/components/templates/inventory/InventoryLineTrackingNumberSelect/InventoryLineTrackingNumberSelect.js +35 -0
- package/lib/components/templates/inventory/InventoryLineTrackingNumberSelect/InventoryLineTrackingNumberSelect.js.map +1 -0
- package/lib/components/templates/inventory/InventoryLocationsMoveCard/InventoryLocationsMoveCard.d.ts +2 -0
- package/lib/components/templates/inventory/InventoryLocationsMoveCard/InventoryLocationsMoveCard.js +35 -0
- package/lib/components/templates/inventory/InventoryLocationsMoveCard/InventoryLocationsMoveCard.js.map +1 -0
- package/lib/components/templates/inventory/InventoryViewAllContainer/InventoryViewAllContainer.d.ts +2 -0
- package/lib/components/templates/inventory/InventoryViewAllContainer/InventoryViewAllContainer.js +68 -0
- package/lib/components/templates/inventory/InventoryViewAllContainer/InventoryViewAllContainer.js.map +1 -0
- package/lib/components/templates/inventory/index.d.ts +11 -0
- package/lib/components/templates/inventory/index.js +29 -0
- package/lib/components/templates/inventory/index.js.map +1 -0
- package/lib/components/templates/product/ProductCard/ProductCard.js.map +1 -0
- package/lib/components/{organisms → templates/product}/ProductCardInfo/ProductCardInfo.js +4 -4
- package/lib/components/templates/product/ProductCardInfo/ProductCardInfo.js.map +1 -0
- package/lib/components/templates/product/ProductCardStockIndicatorList/ProductCardStockIndicatorList.d.ts +2 -0
- package/lib/components/templates/product/ProductCardStockIndicatorList/ProductCardStockIndicatorList.js +60 -0
- package/lib/components/templates/product/ProductCardStockIndicatorList/ProductCardStockIndicatorList.js.map +1 -0
- package/lib/components/{organisms → templates/product}/ProductCharacteristics/ProductCharacteristics.js +1 -1
- package/lib/components/templates/product/ProductCharacteristics/ProductCharacteristics.js.map +1 -0
- package/lib/components/templates/product/ProductPackingInformations/ProductPackingInformations.d.ts +4 -0
- package/lib/components/templates/product/ProductPackingInformations/ProductPackingInformations.js +67 -0
- package/lib/components/templates/product/ProductPackingInformations/ProductPackingInformations.js.map +1 -0
- package/lib/components/templates/product/ProductSeeStockLocationDistribution/ProductSeeStockLocationDistribution.d.ts +5 -0
- package/lib/components/templates/product/ProductSeeStockLocationDistribution/ProductSeeStockLocationDistribution.js +59 -0
- package/lib/components/templates/product/ProductSeeStockLocationDistribution/ProductSeeStockLocationDistribution.js.map +1 -0
- package/lib/components/templates/product/ProductStockHeader/ProductStockHeader.d.ts +6 -0
- package/lib/components/templates/product/ProductStockHeader/ProductStockHeader.js +77 -0
- package/lib/components/templates/product/ProductStockHeader/ProductStockHeader.js.map +1 -0
- package/lib/components/templates/product/ProductStockLocationCard/ProductStockLocationCard.js.map +1 -0
- package/lib/components/templates/product/ProductTrackingNumberSelect/ProductTrackingNumberSelect.d.ts +8 -0
- package/lib/components/templates/product/ProductTrackingNumberSelect/ProductTrackingNumberSelect.js +71 -0
- package/lib/components/templates/product/ProductTrackingNumberSelect/ProductTrackingNumberSelect.js.map +1 -0
- package/lib/components/templates/product/ProductUnitInformations/ProductUnitInformations.d.ts +4 -0
- package/lib/components/templates/product/ProductUnitInformations/ProductUnitInformations.js +48 -0
- package/lib/components/templates/product/ProductUnitInformations/ProductUnitInformations.js.map +1 -0
- package/lib/components/templates/product/ProductVariantButton/ProductVariantButton.d.ts +4 -0
- package/lib/components/templates/product/ProductVariantButton/ProductVariantButton.js +33 -0
- package/lib/components/templates/product/ProductVariantButton/ProductVariantButton.js.map +1 -0
- package/lib/components/{organisms → templates/product}/ProductVariantCard/ProductVariantCard.js +1 -1
- package/lib/components/templates/product/ProductVariantCard/ProductVariantCard.js.map +1 -0
- package/lib/components/templates/product/index.d.ts +12 -0
- package/lib/components/templates/product/index.js +30 -0
- package/lib/components/templates/product/index.js.map +1 -0
- package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.d.ts +12 -0
- package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js +109 -0
- package/lib/components/templates/stockCorrection/StockCorrectionButtons/StockCorrectionButtons.js.map +1 -0
- package/lib/components/templates/stockCorrection/StockCorrectionHeader/StockCorrectionHeader.d.ts +5 -0
- package/lib/components/templates/stockCorrection/StockCorrectionHeader/StockCorrectionHeader.js +52 -0
- package/lib/components/templates/stockCorrection/StockCorrectionHeader/StockCorrectionHeader.js.map +1 -0
- package/lib/components/templates/stockCorrection/StockCorrectionProductCardInfo/StockCorrectionProductCardInfo.d.ts +5 -0
- package/lib/components/templates/stockCorrection/StockCorrectionProductCardInfo/StockCorrectionProductCardInfo.js +37 -0
- package/lib/components/templates/stockCorrection/StockCorrectionProductCardInfo/StockCorrectionProductCardInfo.js.map +1 -0
- package/lib/components/templates/stockCorrection/StockCorrectionQuantityCard/StockCorrectionQuantityCard.d.ts +9 -0
- package/lib/components/templates/stockCorrection/StockCorrectionQuantityCard/StockCorrectionQuantityCard.js +42 -0
- package/lib/components/templates/stockCorrection/StockCorrectionQuantityCard/StockCorrectionQuantityCard.js.map +1 -0
- package/lib/components/templates/stockCorrection/StockCorrectionReasonPicker/StockCorrectionReasonPicker.d.ts +7 -0
- package/lib/components/templates/stockCorrection/StockCorrectionReasonPicker/StockCorrectionReasonPicker.js +37 -0
- package/lib/components/templates/stockCorrection/StockCorrectionReasonPicker/StockCorrectionReasonPicker.js.map +1 -0
- package/lib/components/templates/stockCorrection/index.d.ts +5 -0
- package/lib/components/templates/stockCorrection/index.js +23 -0
- package/lib/components/templates/stockCorrection/index.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalButtons/SupplierArrivalButtons.d.ts +4 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalButtons/SupplierArrivalButtons.js +40 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalButtons/SupplierArrivalButtons.js.map +1 -0
- package/lib/components/{organisms → templates/supplierArrival}/SupplierArrivalCard/SupplierArrivalCard.js +1 -1
- package/lib/components/templates/supplierArrival/SupplierArrivalCard/SupplierArrivalCard.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalHeader/SupplierArrivalHeader.d.ts +4 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalHeader/SupplierArrivalHeader.js +43 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalHeader/SupplierArrivalHeader.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalLineButtons/SupplierArrivalLineButtons.d.ts +8 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalLineButtons/SupplierArrivalLineButtons.js +79 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalLineButtons/SupplierArrivalLineButtons.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalLineCard/SupplierArrivalLineCard.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalLineQuantityCard/SupplierArrivalLineQuantityCard.d.ts +7 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalLineQuantityCard/SupplierArrivalLineQuantityCard.js +53 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalLineQuantityCard/SupplierArrivalLineQuantityCard.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalMovementIndicationCard/SupplierArrivalMovementIndicationCard.d.ts +5 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalMovementIndicationCard/SupplierArrivalMovementIndicationCard.js +35 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalMovementIndicationCard/SupplierArrivalMovementIndicationCard.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalProductName/SupplierArrivalProductName.d.ts +4 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalProductName/SupplierArrivalProductName.js +38 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalProductName/SupplierArrivalProductName.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalTrackingNumberSelect/SupplierArrivalTrackingNumberSelect.d.ts +7 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalTrackingNumberSelect/SupplierArrivalTrackingNumberSelect.js +83 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalTrackingNumberSelect/SupplierArrivalTrackingNumberSelect.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalViewAllContainer/SupplierArrivalViewAllContainer.d.ts +2 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalViewAllContainer/SupplierArrivalViewAllContainer.js +99 -0
- package/lib/components/templates/supplierArrival/SupplierArrivalViewAllContainer/SupplierArrivalViewAllContainer.js.map +1 -0
- package/lib/components/templates/supplierArrival/SupplierProductInfo/SupplierProductInfo.d.ts +2 -0
- package/lib/components/templates/supplierArrival/SupplierProductInfo/SupplierProductInfo.js +57 -0
- package/lib/components/templates/supplierArrival/SupplierProductInfo/SupplierProductInfo.js.map +1 -0
- package/lib/components/templates/supplierArrival/index.d.ts +11 -0
- package/lib/components/templates/supplierArrival/index.js +29 -0
- package/lib/components/templates/supplierArrival/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +5 -5
- package/lib/features/asyncFunctions-index.js +5 -5
- package/lib/features/asyncFunctions-index.js.map +1 -1
- package/lib/features/customerDeliveryLineSlice.d.ts +22 -1
- package/lib/features/customerDeliveryLineSlice.js +59 -8
- package/lib/features/customerDeliveryLineSlice.js.map +1 -1
- package/lib/features/customerDeliverySlice.d.ts +11 -2
- package/lib/features/customerDeliverySlice.js +17 -16
- package/lib/features/customerDeliverySlice.js.map +1 -1
- package/lib/features/index.d.ts +1 -1
- package/lib/features/index.js +1 -1
- package/lib/features/index.js.map +1 -1
- package/lib/features/internalMoveLineSlice.d.ts +32 -0
- package/lib/features/internalMoveLineSlice.js +72 -4
- package/lib/features/internalMoveLineSlice.js.map +1 -1
- package/lib/features/internalMoveSlice.d.ts +12 -3
- package/lib/features/internalMoveSlice.js +19 -18
- package/lib/features/internalMoveSlice.js.map +1 -1
- package/lib/features/inventoryLineSlice.d.ts +22 -0
- package/lib/features/inventoryLineSlice.js +49 -4
- package/lib/features/inventoryLineSlice.js.map +1 -1
- package/lib/features/inventorySlice.js +6 -6
- package/lib/features/inventorySlice.js.map +1 -1
- package/lib/features/partnerSlice.js +5 -5
- package/lib/features/partnerSlice.js.map +1 -1
- package/lib/features/productIndicatorsSlice.js +2 -2
- package/lib/features/productIndicatorsSlice.js.map +1 -1
- package/lib/features/productSlice.js +3 -3
- package/lib/features/productSlice.js.map +1 -1
- package/lib/features/productVariantSlice.js +2 -2
- package/lib/features/productVariantSlice.js.map +1 -1
- package/lib/features/racksListSlice.js +1 -1
- package/lib/features/racksListSlice.js.map +1 -1
- package/lib/features/stockAppConfigSlice.js +1 -1
- package/lib/features/stockAppConfigSlice.js.map +1 -1
- package/lib/features/stockCorrectionReasonSlice.js +1 -1
- package/lib/features/stockCorrectionReasonSlice.js.map +1 -1
- package/lib/features/stockCorrectionSlice.d.ts +15 -5
- package/lib/features/stockCorrectionSlice.js +26 -19
- package/lib/features/stockCorrectionSlice.js.map +1 -1
- package/lib/features/stockLocationLineSlice.js +1 -1
- package/lib/features/stockLocationLineSlice.js.map +1 -1
- package/lib/features/stockLocationSlice.js +2 -2
- package/lib/features/stockLocationSlice.js.map +1 -1
- package/lib/features/supplierArrivalLineSlice.d.ts +12 -1
- package/lib/features/supplierArrivalLineSlice.js +35 -9
- package/lib/features/supplierArrivalLineSlice.js.map +1 -1
- package/lib/features/supplierArrivalSlice.d.ts +11 -2
- package/lib/features/supplierArrivalSlice.js +20 -19
- package/lib/features/supplierArrivalSlice.js.map +1 -1
- package/lib/features/supplierCatalogSlice.js +1 -1
- package/lib/features/supplierCatalogSlice.js.map +1 -1
- package/lib/features/trackingNumberSlice.js +4 -4
- package/lib/features/trackingNumberSlice.js.map +1 -1
- package/lib/features/unitSlice.js +1 -1
- package/lib/features/unitSlice.js.map +1 -1
- package/lib/hooks/use-stock-header-actions.d.ts +1 -0
- package/lib/hooks/use-stock-header-actions.js +163 -0
- package/lib/hooks/use-stock-header-actions.js.map +1 -0
- package/lib/i18n/en.json +61 -2
- package/lib/i18n/fr.json +60 -2
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/lib/models/objectFields.js +11 -0
- package/lib/models/objectFields.js.map +1 -1
- package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.js +18 -122
- package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.js.map +1 -1
- package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.js +32 -104
- package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.js.map +1 -1
- package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.js +31 -56
- package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.js.map +1 -1
- package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.js +7 -7
- package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.js.map +1 -1
- package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.js +5 -7
- package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.js.map +1 -1
- package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.js +8 -12
- package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.js.map +1 -1
- package/lib/screens/customerDeliveries/index.d.ts +1 -0
- package/lib/screens/customerDeliveries/index.js +1 -0
- package/lib/screens/customerDeliveries/index.js.map +1 -1
- package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.js +18 -72
- package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.js.map +1 -1
- package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js +76 -219
- package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js.map +1 -1
- package/lib/screens/internalMoves/InternalMoveLineListScreen.js +24 -50
- package/lib/screens/internalMoves/InternalMoveLineListScreen.js.map +1 -1
- package/lib/screens/internalMoves/InternalMoveListScreen.js +5 -12
- package/lib/screens/internalMoves/InternalMoveListScreen.js.map +1 -1
- package/lib/screens/internalMoves/InternalMoveSelectProductScreen.js +21 -17
- package/lib/screens/internalMoves/InternalMoveSelectProductScreen.js.map +1 -1
- package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.js +23 -19
- package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.js.map +1 -1
- package/lib/screens/internalMoves/index.d.ts +3 -0
- package/lib/screens/internalMoves/index.js +2 -0
- package/lib/screens/internalMoves/index.js.map +1 -1
- package/lib/screens/inventories/InventoryLineDetailsScreen.js +30 -56
- package/lib/screens/inventories/InventoryLineDetailsScreen.js.map +1 -1
- package/lib/screens/inventories/InventoryLineListScreen.js +13 -22
- package/lib/screens/inventories/InventoryLineListScreen.js.map +1 -1
- package/lib/screens/inventories/InventoryListScreen.js +5 -5
- package/lib/screens/inventories/InventoryListScreen.js.map +1 -1
- package/lib/screens/inventories/InventoryPlannedDetailsScreen.js +16 -55
- package/lib/screens/inventories/InventoryPlannedDetailsScreen.js.map +1 -1
- package/lib/screens/inventories/InventorySelectProductScreen.js +3 -3
- package/lib/screens/inventories/InventorySelectProductScreen.js.map +1 -1
- package/lib/screens/inventories/InventorySelectTrackingScreen.js +7 -9
- package/lib/screens/inventories/InventorySelectTrackingScreen.js.map +1 -1
- package/lib/screens/inventories/InventoryStartedDetailsScreen.js +13 -81
- package/lib/screens/inventories/InventoryStartedDetailsScreen.js.map +1 -1
- package/lib/screens/inventories/index.d.ts +3 -0
- package/lib/screens/inventories/index.js +2 -0
- package/lib/screens/inventories/index.js.map +1 -1
- package/lib/screens/products/ProductDetailsScreen.js +7 -87
- package/lib/screens/products/ProductDetailsScreen.js.map +1 -1
- package/lib/screens/products/ProductListScreen.js +4 -4
- package/lib/screens/products/ProductListScreen.js.map +1 -1
- package/lib/screens/products/ProductListVariantScreen.js +3 -2
- package/lib/screens/products/ProductListVariantScreen.js.map +1 -1
- package/lib/screens/products/ProductStockDetailsScreen.js +19 -121
- package/lib/screens/products/ProductStockDetailsScreen.js.map +1 -1
- package/lib/screens/products/ProductStockLocationDetailsScreen.js +1 -1
- package/lib/screens/products/ProductStockLocationDetailsScreen.js.map +1 -1
- package/lib/screens/products/index.d.ts +3 -0
- package/lib/screens/products/index.js +2 -0
- package/lib/screens/products/index.js.map +1 -1
- package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.d.ts +1 -2
- package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.js +77 -198
- package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.js.map +1 -1
- package/lib/screens/stockCorrections/StockCorrectionListScreen.js +7 -14
- package/lib/screens/stockCorrections/StockCorrectionListScreen.js.map +1 -1
- package/lib/screens/stockCorrections/index.d.ts +3 -0
- package/lib/screens/stockCorrections/index.js +2 -0
- package/lib/screens/stockCorrections/index.js.map +1 -1
- package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.js +7 -9
- package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.js.map +1 -1
- package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.js +16 -94
- package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.js.map +1 -1
- package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js +44 -114
- package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js.map +1 -1
- package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.js +27 -50
- package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.js.map +1 -1
- package/lib/screens/supplierArrivals/SupplierArrivalListScreen.js +4 -4
- package/lib/screens/supplierArrivals/SupplierArrivalListScreen.js.map +1 -1
- package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.js +7 -13
- package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.js.map +1 -1
- package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.js +9 -76
- package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.js.map +1 -1
- package/lib/screens/supplierArrivals/index.d.ts +1 -0
- package/lib/screens/supplierArrivals/index.js +1 -0
- package/lib/screens/supplierArrivals/index.js.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/inventory.d.ts +1 -0
- package/lib/types/inventory.js +5 -0
- package/lib/types/inventory.js.map +1 -1
- package/lib/types/stock-move-line.d.ts +16 -0
- package/lib/types/stock-move-line.js +54 -0
- package/lib/types/stock-move-line.js.map +1 -0
- package/lib/types/stock-move.d.ts +2 -0
- package/lib/types/stock-move.js +20 -0
- package/lib/types/stock-move.js.map +1 -1
- package/lib/utils/line-navigation.d.ts +16 -0
- package/lib/utils/line-navigation.js +55 -0
- package/lib/utils/line-navigation.js.map +1 -0
- package/package.json +3 -3
- package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.js.map +0 -1
- package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.js.map +0 -1
- package/lib/components/organisms/InternalMoveCard/InternalMoveCard.js.map +0 -1
- package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.js.map +0 -1
- package/lib/components/organisms/InventoryCard/InventoryCard.js.map +0 -1
- package/lib/components/organisms/InventoryHeader/InventoryHeader.js.map +0 -1
- package/lib/components/organisms/InventoryLineCard/InventoryLineCard.js.map +0 -1
- package/lib/components/organisms/ProductCard/ProductCard.js.map +0 -1
- package/lib/components/organisms/ProductCardInfo/ProductCardInfo.js.map +0 -1
- package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.js.map +0 -1
- package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.js.map +0 -1
- package/lib/components/organisms/ProductVariantCard/ProductVariantCard.js.map +0 -1
- package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.js.map +0 -1
- package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.js.map +0 -1
- /package/lib/components/{organisms → templates/customerDelivery}/CustomerDeliveryCard/CustomerDeliveryCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/customerDelivery}/CustomerDeliveryLineCard/CustomerDeliveryLineCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/internalMove}/InternalMoveCard/InternalMoveCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/internalMove}/InternalMoveLineCard/InternalMoveLineCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/inventory}/InventoryCard/InventoryCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/inventory}/InventoryHeader/InventoryHeader.d.ts +0 -0
- /package/lib/components/{organisms → templates/inventory}/InventoryLineCard/InventoryLineCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/inventory}/InventoryLineCard/InventoryLineCard.js +0 -0
- /package/lib/components/{organisms → templates/product}/ProductCard/ProductCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/product}/ProductCard/ProductCard.js +0 -0
- /package/lib/components/{organisms → templates/product}/ProductCardInfo/ProductCardInfo.d.ts +0 -0
- /package/lib/components/{organisms → templates/product}/ProductCharacteristics/ProductCharacteristics.d.ts +0 -0
- /package/lib/components/{organisms → templates/product}/ProductStockLocationCard/ProductStockLocationCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/product}/ProductStockLocationCard/ProductStockLocationCard.js +0 -0
- /package/lib/components/{organisms → templates/product}/ProductVariantCard/ProductVariantCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/supplierArrival}/SupplierArrivalCard/SupplierArrivalCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/supplierArrival}/SupplierArrivalLineCard/SupplierArrivalLineCard.d.ts +0 -0
- /package/lib/components/{organisms → templates/supplierArrival}/SupplierArrivalLineCard/SupplierArrivalLineCard.js +0 -0
|
@@ -2,13 +2,17 @@ export function searchDeliveryFilter({ searchValue, page }: {
|
|
|
2
2
|
searchValue?: any;
|
|
3
3
|
page?: number;
|
|
4
4
|
}): Promise<any>;
|
|
5
|
-
export function
|
|
5
|
+
export function fetchCustomerDelivery({ customerDeliveryId }: {
|
|
6
|
+
customerDeliveryId: any;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
export function addLineStockMove({ stockMoveId, productId, unitId, trackingNumberId, expectedQty, realQty, version, }: {
|
|
6
9
|
stockMoveId: any;
|
|
7
10
|
productId: any;
|
|
8
11
|
unitId: any;
|
|
9
12
|
trackingNumberId: any;
|
|
10
13
|
expectedQty: any;
|
|
11
14
|
realQty: any;
|
|
15
|
+
version: any;
|
|
12
16
|
}): Promise<any>;
|
|
13
17
|
export function realizeSockMove({ stockMoveId, version }: {
|
|
14
18
|
stockMoveId: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { axiosApiProvider, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
18
|
+
import { axiosApiProvider, createStandardFetch, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
19
|
import StockMove from '../types/stock-move';
|
|
20
20
|
const createSearchCriteria = searchValue => {
|
|
21
21
|
return [
|
|
@@ -56,7 +56,14 @@ export async function searchDeliveryFilter({ searchValue = null, page = 0 }) {
|
|
|
56
56
|
page,
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
export async function
|
|
59
|
+
export async function fetchCustomerDelivery({ customerDeliveryId }) {
|
|
60
|
+
return createStandardFetch({
|
|
61
|
+
model: 'com.axelor.apps.stock.db.StockMove',
|
|
62
|
+
id: customerDeliveryId,
|
|
63
|
+
fieldKey: 'stock_customerDelivery',
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export async function addLineStockMove({ stockMoveId, productId, unitId, trackingNumberId, expectedQty, realQty, version, }) {
|
|
60
67
|
return axiosApiProvider.post({
|
|
61
68
|
url: `/ws/aos/stock-move/add-line/${stockMoveId}`,
|
|
62
69
|
data: {
|
|
@@ -66,6 +73,7 @@ export async function addLineStockMove({ stockMoveId, productId, unitId, trackin
|
|
|
66
73
|
expectedQty: expectedQty,
|
|
67
74
|
realQty: realQty,
|
|
68
75
|
conformity: StockMove.conformity.None,
|
|
76
|
+
version: version,
|
|
69
77
|
},
|
|
70
78
|
});
|
|
71
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-delivery-api.js","sourceRoot":"","sources":["../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,CAAC;QAC3B,GAAG,EAAE,+BAA+B,WAAW,EAAE;QACjD,IAAI,EAAE;YACJ,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,MAAM;YACd,gBAAgB,EAAE,gBAAgB;YAClC,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE,OAAO;YAChB,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"customer-delivery-api.js","sourceRoot":"","sources":["../../src/api/customer-delivery-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,MAAM,oBAAoB,GAAG,WAAW,CAAC,EAAE;IACzC,OAAO;QACL;YACE,SAAS,EAAE,aAAa;YACxB,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,KAAK;SACb;QACD;YACE,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ;SAC/B;QACD;YACE,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE;gBACR;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO;iBAChC;gBACD;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,QAAQ;iBACjC;aACF;SACF;QACD,kBAAkB,CAAC,wBAAwB,EAAE,WAAW,CAAC;KAC1D,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EAAC,WAAW,GAAG,IAAI,EAAE,IAAI,GAAG,CAAC,EAAC;IACvE,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,oCAAoC;QAC3C,QAAQ,EAAE,oBAAoB,CAAC,WAAW,CAAC;QAC3C,QAAQ,EAAE,wBAAwB;QAClC,OAAO,EAAE,wBAAwB;QACjC,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,EAAC,kBAAkB,EAAC;IAC9D,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,oCAAoC;QAC3C,EAAE,EAAE,kBAAkB;QACtB,QAAQ,EAAE,wBAAwB;KACnC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACrC,WAAW,EACX,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,OAAO,GACR;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,+BAA+B,WAAW,EAAE;QACjD,IAAI,EAAE;YACJ,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,MAAM;YACd,gBAAgB,EAAE,gBAAgB;YAClC,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE,OAAO;YAChB,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,IAAI;YACrC,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,EAAC,WAAW,EAAE,OAAO,EAAC;IAC1D,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,8BAA8B,WAAW,EAAE;QAChD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { axiosApiProvider, createStandardSearch } from '@axelor/aos-mobile-core';
|
|
18
|
+
import { axiosApiProvider, createStandardFetch, createStandardSearch, } from '@axelor/aos-mobile-core';
|
|
19
19
|
export async function searchCustomerDeliveryLines({ page = 0, customerDeliveryId, }) {
|
|
20
20
|
return createStandardSearch({
|
|
21
21
|
model: 'com.axelor.apps.stock.db.StockMoveLine',
|
|
@@ -39,4 +39,11 @@ export async function updateLine({ stockMoveLineId, version, realQty }) {
|
|
|
39
39
|
},
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
+
export async function fetchCustomerDeliveryLine({ customerDeliveryLineId }) {
|
|
43
|
+
return createStandardFetch({
|
|
44
|
+
model: 'com.axelor.apps.stock.db.StockMoveLine',
|
|
45
|
+
id: customerDeliveryLineId,
|
|
46
|
+
fieldKey: 'stock_customerDeliveryLine',
|
|
47
|
+
});
|
|
48
|
+
}
|
|
42
49
|
//# sourceMappingURL=customer-delivery-line-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-delivery-line-api.js","sourceRoot":"","sources":["../../src/api/customer-delivery-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"customer-delivery-line-api.js","sourceRoot":"","sources":["../../src/api/customer-delivery-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,EAChD,IAAI,GAAG,CAAC,EACR,kBAAkB,GACnB;IACC,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,wCAAwC;QAC/C,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,cAAc;gBACzB,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,kBAAkB;aAC1B;SACF;QACD,QAAQ,EAAE,4BAA4B;QACtC,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAAC,eAAe,EAAE,OAAO,EAAE,OAAO,EAAC;IAClE,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,2BAA2B,eAAe,EAAE;QACjD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,EAAC,sBAAsB,EAAC;IACtE,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,wCAAwC;QAC/C,EAAE,EAAE,sBAAsB;QAC1B,QAAQ,EAAE,4BAA4B;KACvC,CAAC,CAAC;AACL,CAAC"}
|
package/lib/api/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { addLineStockMove as addCustomerDeliveryLine, searchDeliveryFilter, realizeSockMove as realizeCustomerDeliveryApi, } from './customer-delivery-api';
|
|
2
2
|
export { searchCustomerDeliveryLines, updateLine as updateCustomerDeliveryLineApi, } from './customer-delivery-line-api';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export { fetchInternalMove as fetchInternalMoveApi, searchInternalMoveFilter, realizeInternalMove as realizeInternalMoveApi, createInternalStockMove, } from './internal-move-api';
|
|
4
|
+
export { searchInternalMoveLines, updateInternalMoveLine as updateInternalMoveLineApi, } from './internal-move-line-api';
|
|
5
5
|
export * from './inventory-api';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './inventory-line-api';
|
|
7
7
|
export * from './partner-api';
|
|
8
8
|
export * from './product-api';
|
|
9
|
-
export
|
|
9
|
+
export { fetchStockCorrection as fetchStockCorrectionApi, createStockCorrection, updateStockCorrection, searchStockCorrection, } from './stock-correction-api';
|
|
10
10
|
export * from './stock-correction-reason-api';
|
|
11
11
|
export * from './stock-location-api';
|
|
12
12
|
export * from './stock-location-line-api';
|
package/lib/api/index.js
CHANGED
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export { addLineStockMove as addCustomerDeliveryLine, searchDeliveryFilter, realizeSockMove as realizeCustomerDeliveryApi, } from './customer-delivery-api';
|
|
19
19
|
export { searchCustomerDeliveryLines, updateLine as updateCustomerDeliveryLineApi, } from './customer-delivery-line-api';
|
|
20
|
-
export
|
|
21
|
-
export
|
|
20
|
+
export { fetchInternalMove as fetchInternalMoveApi, searchInternalMoveFilter, realizeInternalMove as realizeInternalMoveApi, createInternalStockMove, } from './internal-move-api';
|
|
21
|
+
export { searchInternalMoveLines, updateInternalMoveLine as updateInternalMoveLineApi, } from './internal-move-line-api';
|
|
22
22
|
export * from './inventory-api';
|
|
23
|
-
export * from './
|
|
23
|
+
export * from './inventory-line-api';
|
|
24
24
|
export * from './partner-api';
|
|
25
25
|
export * from './product-api';
|
|
26
|
-
export
|
|
26
|
+
export { fetchStockCorrection as fetchStockCorrectionApi, createStockCorrection, updateStockCorrection, searchStockCorrection, } from './stock-correction-api';
|
|
27
27
|
export * from './stock-correction-reason-api';
|
|
28
28
|
export * from './stock-location-api';
|
|
29
29
|
export * from './stock-location-line-api';
|
package/lib/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,IAAI,uBAAuB,EAC3C,oBAAoB,EACpB,eAAe,IAAI,0BAA0B,GAC9C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,EAC3B,UAAU,IAAI,6BAA6B,GAC5C,MAAM,8BAA8B,CAAC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,IAAI,uBAAuB,EAC3C,oBAAoB,EACpB,eAAe,IAAI,0BAA0B,GAC9C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,EAC3B,UAAU,IAAI,6BAA6B,GAC5C,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,iBAAiB,IAAI,oBAAoB,EACzC,wBAAwB,EACxB,mBAAmB,IAAI,sBAAsB,EAC7C,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,uBAAuB,EACvB,sBAAsB,IAAI,yBAAyB,GACpD,MAAM,0BAA0B,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,oBAAoB,IAAI,uBAAuB,EAC/C,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EACL,2BAA2B,EAC3B,gBAAgB,IAAI,sBAAsB,EAC1C,eAAe,IAAI,yBAAyB,GAC7C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAC1B,UAAU,IAAI,4BAA4B,GAC3C,MAAM,6BAA6B,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC"}
|
|
@@ -2,6 +2,9 @@ export function searchInternalMoveFilter({ searchValue, page }: {
|
|
|
2
2
|
searchValue?: any;
|
|
3
3
|
page?: number;
|
|
4
4
|
}): Promise<any>;
|
|
5
|
+
export function fetchInternalMove({ internalMoveId }: {
|
|
6
|
+
internalMoveId: any;
|
|
7
|
+
}): Promise<any>;
|
|
5
8
|
export function createInternalStockMove({ productId, companyId, originStockLocationId, destStockLocationId, unitId, trackingNumberId, movedQty, }: {
|
|
6
9
|
productId: any;
|
|
7
10
|
companyId: any;
|
|
@@ -11,10 +14,7 @@ export function createInternalStockMove({ productId, companyId, originStockLocat
|
|
|
11
14
|
trackingNumberId: any;
|
|
12
15
|
movedQty: any;
|
|
13
16
|
}): Promise<any>;
|
|
14
|
-
export function
|
|
15
|
-
|
|
17
|
+
export function realizeInternalMove({ stockMoveId, version }: {
|
|
18
|
+
stockMoveId: any;
|
|
16
19
|
version: any;
|
|
17
|
-
movedQty: any;
|
|
18
|
-
unitId: any;
|
|
19
|
-
status: any;
|
|
20
20
|
}): Promise<any>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { axiosApiProvider, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
18
|
+
import { axiosApiProvider, createStandardFetch, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
19
|
import StockLocation from '../types/stock-location';
|
|
20
20
|
import StockMove from '../types/stock-move';
|
|
21
21
|
const createSearchCriteria = searchValue => {
|
|
@@ -47,6 +47,13 @@ export async function searchInternalMoveFilter({ searchValue = null, page = 0 })
|
|
|
47
47
|
page,
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
+
export async function fetchInternalMove({ internalMoveId }) {
|
|
51
|
+
return createStandardFetch({
|
|
52
|
+
model: 'com.axelor.apps.stock.db.StockMove',
|
|
53
|
+
id: internalMoveId,
|
|
54
|
+
fieldKey: 'stock_internalMove',
|
|
55
|
+
});
|
|
56
|
+
}
|
|
50
57
|
export async function createInternalStockMove({ productId, companyId, originStockLocationId, destStockLocationId, unitId, trackingNumberId, movedQty, }) {
|
|
51
58
|
return axiosApiProvider.post({
|
|
52
59
|
url: 'ws/aos/stock-move/internal/',
|
|
@@ -61,14 +68,11 @@ export async function createInternalStockMove({ productId, companyId, originStoc
|
|
|
61
68
|
},
|
|
62
69
|
});
|
|
63
70
|
}
|
|
64
|
-
export async function
|
|
71
|
+
export async function realizeInternalMove({ stockMoveId, version }) {
|
|
65
72
|
return axiosApiProvider.put({
|
|
66
|
-
url: `/ws/aos/stock-move/
|
|
73
|
+
url: `/ws/aos/stock-move/realize/${stockMoveId}`,
|
|
67
74
|
data: {
|
|
68
75
|
version: version,
|
|
69
|
-
movedQty: movedQty,
|
|
70
|
-
unitId: unitId,
|
|
71
|
-
status: status,
|
|
72
76
|
},
|
|
73
77
|
});
|
|
74
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-move-api.js","sourceRoot":"","sources":["../../src/api/internal-move-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,aAAa,MAAM,yBAAyB,CAAC;AACpD,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,MAAM,oBAAoB,GAAG,WAAW,CAAC,EAAE;IACzC,OAAO;QACL;YACE,SAAS,EAAE,8BAA8B;YACzC,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,QAAQ;SACnC;QACD;YACE,SAAS,EAAE,4BAA4B;YACvC,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,QAAQ;SACnC;QACD;YACE,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ;SAC/B;QACD,kBAAkB,CAAC,oBAAoB,EAAE,WAAW,CAAC;KACtD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,EAAC,WAAW,GAAG,IAAI,EAAE,IAAI,GAAG,CAAC,EAAC;IAC3E,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,oCAAoC;QAC3C,QAAQ,EAAE,oBAAoB,CAAC,WAAW,CAAC;QAC3C,QAAQ,EAAE,oBAAoB;QAC9B,OAAO,EAAE,oBAAoB;QAC7B,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,EAC5C,SAAS,EACT,SAAS,EACT,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,EACN,gBAAgB,EAChB,QAAQ,GACT;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,6BAA6B;QAClC,IAAI,EAAE;YACJ,SAAS,EAAE,SAAS;YACpB,SAAS,EAAE,SAAS;YACpB,qBAAqB,EAAE,qBAAqB;YAC5C,mBAAmB,EAAE,mBAAmB;YACxC,MAAM,EAAE,MAAM;YACd,gBAAgB,EAAE,gBAAgB;YAClC,QAAQ,EAAE,QAAQ;SACnB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"internal-move-api.js","sourceRoot":"","sources":["../../src/api/internal-move-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,aAAa,MAAM,yBAAyB,CAAC;AACpD,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,MAAM,oBAAoB,GAAG,WAAW,CAAC,EAAE;IACzC,OAAO;QACL;YACE,SAAS,EAAE,8BAA8B;YACzC,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,QAAQ;SACnC;QACD;YACE,SAAS,EAAE,4BAA4B;YACvC,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,QAAQ;SACnC;QACD;YACE,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,GAAG;YACb,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;YACJ,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -2,3 +2,12 @@ export function searchInternalMoveLines({ internalMoveId, page }: {
|
|
|
2
2
|
internalMoveId: any;
|
|
3
3
|
page?: number;
|
|
4
4
|
}): Promise<any>;
|
|
5
|
+
export function updateInternalMoveLine({ stockMoveLineId, version, realQty, unitId, }: {
|
|
6
|
+
stockMoveLineId: any;
|
|
7
|
+
version: any;
|
|
8
|
+
realQty: any;
|
|
9
|
+
unitId: any;
|
|
10
|
+
}): Promise<any>;
|
|
11
|
+
export function fetchInternalMoveLine({ internalMoveLineId }: {
|
|
12
|
+
internalMoveLineId: any;
|
|
13
|
+
}): Promise<any>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { createStandardSearch } from '@axelor/aos-mobile-core';
|
|
18
|
+
import { axiosApiProvider, createStandardFetch, createStandardSearch, } from '@axelor/aos-mobile-core';
|
|
19
19
|
export async function searchInternalMoveLines({ internalMoveId, page = 0 }) {
|
|
20
20
|
return createStandardSearch({
|
|
21
21
|
model: 'com.axelor.apps.stock.db.StockMoveLine',
|
|
@@ -30,4 +30,21 @@ export async function searchInternalMoveLines({ internalMoveId, page = 0 }) {
|
|
|
30
30
|
page,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
+
export async function updateInternalMoveLine({ stockMoveLineId, version, realQty, unitId, }) {
|
|
34
|
+
return axiosApiProvider.put({
|
|
35
|
+
url: `/ws/aos/stock-move-line/${stockMoveLineId}`,
|
|
36
|
+
data: {
|
|
37
|
+
version: version,
|
|
38
|
+
realQty: realQty,
|
|
39
|
+
unitId: unitId,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export async function fetchInternalMoveLine({ internalMoveLineId }) {
|
|
44
|
+
return createStandardFetch({
|
|
45
|
+
model: 'com.axelor.apps.stock.db.StockMoveLine',
|
|
46
|
+
id: internalMoveLineId,
|
|
47
|
+
fieldKey: 'stock_internalMoveLine',
|
|
48
|
+
});
|
|
49
|
+
}
|
|
33
50
|
//# sourceMappingURL=internal-move-line-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-move-line-api.js","sourceRoot":"","sources":["../../src/api/internal-move-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"internal-move-line-api.js","sourceRoot":"","sources":["../../src/api/internal-move-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,EAAC,cAAc,EAAE,IAAI,GAAG,CAAC,EAAC;IACtE,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,wCAAwC;QAC/C,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,cAAc;gBACzB,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,cAAc;aACtB;SACF;QACD,QAAQ,EAAE,wBAAwB;QAClC,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,EAC3C,eAAe,EACf,OAAO,EACP,OAAO,EACP,MAAM,GACP;IACC,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,2BAA2B,eAAe,EAAE;QACjD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;YAChB,MAAM,EAAE,MAAM;SACf;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,EAAC,kBAAkB,EAAC;IAC9D,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,wCAAwC;QAC/C,EAAE,EAAE,kBAAkB;QACtB,QAAQ,EAAE,wBAAwB;KACnC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -16,3 +16,11 @@ export function createInventoryLine({ inventoryId, inventoryVersion, productId,
|
|
|
16
16
|
rack?: any;
|
|
17
17
|
realQty: any;
|
|
18
18
|
}): Promise<any>;
|
|
19
|
+
export function addTrackingNumber({ inventoryLineId, version, trackingNumber, }: {
|
|
20
|
+
inventoryLineId: any;
|
|
21
|
+
version: any;
|
|
22
|
+
trackingNumber: any;
|
|
23
|
+
}): Promise<any>;
|
|
24
|
+
export function fetchInventoryLine({ inventoryLineId }: {
|
|
25
|
+
inventoryLineId: any;
|
|
26
|
+
}): Promise<any>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { axiosApiProvider, createStandardSearch } from '@axelor/aos-mobile-core';
|
|
18
|
+
import { axiosApiProvider, createStandardSearch, createStandardFetch, } from '@axelor/aos-mobile-core';
|
|
19
19
|
export async function searchInventoryLines({ inventoryId, page = 0 }) {
|
|
20
20
|
return createStandardSearch({
|
|
21
21
|
model: 'com.axelor.apps.stock.db.InventoryLine',
|
|
@@ -53,4 +53,23 @@ export async function createInventoryLine({ inventoryId, inventoryVersion, produ
|
|
|
53
53
|
},
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
+
export async function addTrackingNumber({ inventoryLineId, version, trackingNumber, }) {
|
|
57
|
+
return axiosApiProvider.post({
|
|
58
|
+
url: `/ws/rest/com.axelor.apps.stock.db.InventoryLine/${inventoryLineId}`,
|
|
59
|
+
data: {
|
|
60
|
+
data: {
|
|
61
|
+
id: inventoryLineId,
|
|
62
|
+
version,
|
|
63
|
+
trackingNumber,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export async function fetchInventoryLine({ inventoryLineId }) {
|
|
69
|
+
return createStandardFetch({
|
|
70
|
+
model: 'com.axelor.apps.stock.db.InventoryLine',
|
|
71
|
+
id: inventoryLineId,
|
|
72
|
+
fieldKey: 'stock_inventoryLine',
|
|
73
|
+
});
|
|
74
|
+
}
|
|
56
75
|
//# sourceMappingURL=inventory-line-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-line-api.js","sourceRoot":"","sources":["../../src/api/inventory-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"inventory-line-api.js","sourceRoot":"","sources":["../../src/api/inventory-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EAAC,WAAW,EAAE,IAAI,GAAG,CAAC,EAAC;IAChE,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,wCAAwC;QAC/C,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,cAAc;gBACzB,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,WAAW;aACnB;SACF;QACD,QAAQ,EAAE,qBAAqB;QAC/B,IAAI;KACL,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;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,EACtC,eAAe,EACf,OAAO,EACP,cAAc,GACf;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,mDAAmD,eAAe,EAAE;QACzE,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,EAAE,EAAE,eAAe;gBACnB,OAAO;gBACP,cAAc;aACf;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,EAAC,eAAe,EAAC;IACxD,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,wCAAwC;QAC/C,EAAE,EAAE,eAAe;QACnB,QAAQ,EAAE,qBAAqB;KAChC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export function searchStockCorrection({ page }: {
|
|
2
2
|
page?: number;
|
|
3
3
|
}): Promise<any>;
|
|
4
|
+
export function fetchStockCorrection({ id }: {
|
|
5
|
+
id: any;
|
|
6
|
+
}): Promise<any>;
|
|
4
7
|
export function createStockCorrection({ productId, stockLocationId, reasonId, trackingNumberId, status, realQty, }: {
|
|
5
8
|
productId: any;
|
|
6
9
|
stockLocationId: any;
|
|
@@ -9,9 +12,10 @@ export function createStockCorrection({ productId, stockLocationId, reasonId, tr
|
|
|
9
12
|
status: any;
|
|
10
13
|
realQty: any;
|
|
11
14
|
}): Promise<any>;
|
|
12
|
-
export function updateStockCorrection({ stockCorrectionId, version, realQty, status, }: {
|
|
15
|
+
export function updateStockCorrection({ stockCorrectionId, version, realQty, status, reasonId, }: {
|
|
13
16
|
stockCorrectionId: any;
|
|
14
17
|
version: any;
|
|
15
18
|
realQty: any;
|
|
16
19
|
status: any;
|
|
20
|
+
reasonId: any;
|
|
17
21
|
}): Promise<any>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { axiosApiProvider, createStandardSearch } from '@axelor/aos-mobile-core';
|
|
18
|
+
import { axiosApiProvider, createStandardFetch, createStandardSearch, } from '@axelor/aos-mobile-core';
|
|
19
19
|
export async function searchStockCorrection({ page = 0 }) {
|
|
20
20
|
return createStandardSearch({
|
|
21
21
|
model: 'com.axelor.apps.stock.db.StockCorrection',
|
|
@@ -25,6 +25,13 @@ export async function searchStockCorrection({ page = 0 }) {
|
|
|
25
25
|
page,
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
+
export async function fetchStockCorrection({ id }) {
|
|
29
|
+
return createStandardFetch({
|
|
30
|
+
model: 'com.axelor.apps.stock.db.StockCorrection',
|
|
31
|
+
id: id,
|
|
32
|
+
fieldKey: 'stock_stockCorrection',
|
|
33
|
+
});
|
|
34
|
+
}
|
|
28
35
|
export async function createStockCorrection({ productId, stockLocationId, reasonId, trackingNumberId, status, realQty, }) {
|
|
29
36
|
return axiosApiProvider.post({
|
|
30
37
|
url: 'ws/aos/stock-correction/',
|
|
@@ -38,13 +45,14 @@ export async function createStockCorrection({ productId, stockLocationId, reason
|
|
|
38
45
|
},
|
|
39
46
|
});
|
|
40
47
|
}
|
|
41
|
-
export async function updateStockCorrection({ stockCorrectionId, version, realQty, status, }) {
|
|
48
|
+
export async function updateStockCorrection({ stockCorrectionId, version, realQty, status, reasonId, }) {
|
|
42
49
|
return axiosApiProvider.put({
|
|
43
50
|
url: `/ws/aos/stock-correction/${stockCorrectionId}`,
|
|
44
51
|
data: {
|
|
45
52
|
version: version,
|
|
46
53
|
realQty: realQty,
|
|
47
54
|
status: status,
|
|
55
|
+
reasonId: reasonId,
|
|
48
56
|
},
|
|
49
57
|
});
|
|
50
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stock-correction-api.js","sourceRoot":"","sources":["../../src/api/stock-correction-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"stock-correction-api.js","sourceRoot":"","sources":["../../src/api/stock-correction-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,EAAC,IAAI,GAAG,CAAC,EAAC;IACpD,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,0CAA0C;QACjD,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,uBAAuB;QACjC,OAAO,EAAE,uBAAuB;QAChC,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EAAC,EAAE,EAAC;IAC7C,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,0CAA0C;QACjD,EAAE,EAAE,EAAE;QACN,QAAQ,EAAE,uBAAuB;KAClC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,EAC1C,SAAS,EACT,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,OAAO,GACR;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,0BAA0B;QAC/B,IAAI,EAAE;YACJ,SAAS,EAAE,SAAS;YACpB,eAAe,EAAE,eAAe;YAChC,QAAQ,EAAE,QAAQ;YAClB,gBAAgB,EAAE,gBAAgB;YAClC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,EAC1C,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAQ,GACT;IACC,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,4BAA4B,iBAAiB,EAAE;QACpD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;YAChB,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,QAAQ;SACnB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -2,7 +2,10 @@ export function searchSupplierArrivalFilter({ searchValue, page }: {
|
|
|
2
2
|
searchValue: any;
|
|
3
3
|
page?: number;
|
|
4
4
|
}): Promise<any>;
|
|
5
|
-
export function
|
|
5
|
+
export function fetchSupplierArrival({ supplierArrivalId }: {
|
|
6
|
+
supplierArrivalId: any;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
export function addLineStockMove({ stockMoveId, productId, unitId, trackingNumberId, expectedQty, realQty, conformity, version, }: {
|
|
6
9
|
stockMoveId: any;
|
|
7
10
|
productId: any;
|
|
8
11
|
unitId: any;
|
|
@@ -10,6 +13,7 @@ export function addLineStockMove({ stockMoveId, productId, unitId, trackingNumbe
|
|
|
10
13
|
expectedQty: any;
|
|
11
14
|
realQty: any;
|
|
12
15
|
conformity?: number;
|
|
16
|
+
version: any;
|
|
13
17
|
}): Promise<any>;
|
|
14
18
|
export function realizeSockMove({ stockMoveId, version }: {
|
|
15
19
|
stockMoveId: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { axiosApiProvider, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
18
|
+
import { axiosApiProvider, createStandardFetch, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
19
|
import StockMove from '../types/stock-move';
|
|
20
20
|
const createSearchCriteria = searchValue => {
|
|
21
21
|
return [
|
|
@@ -56,7 +56,14 @@ export async function searchSupplierArrivalFilter({ searchValue, page = 0 }) {
|
|
|
56
56
|
page,
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
export async function
|
|
59
|
+
export async function fetchSupplierArrival({ supplierArrivalId }) {
|
|
60
|
+
return createStandardFetch({
|
|
61
|
+
model: 'com.axelor.apps.stock.db.StockMove',
|
|
62
|
+
id: supplierArrivalId,
|
|
63
|
+
fieldKey: 'stock_supplierArrival',
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export async function addLineStockMove({ stockMoveId, productId, unitId, trackingNumberId, expectedQty, realQty, conformity = StockMove.conformity.None, version, }) {
|
|
60
67
|
return axiosApiProvider.post({
|
|
61
68
|
url: `/ws/aos/stock-move/add-line/${stockMoveId}`,
|
|
62
69
|
data: {
|
|
@@ -66,6 +73,7 @@ export async function addLineStockMove({ stockMoveId, productId, unitId, trackin
|
|
|
66
73
|
expectedQty: expectedQty,
|
|
67
74
|
realQty: realQty,
|
|
68
75
|
conformity: conformity,
|
|
76
|
+
version,
|
|
69
77
|
},
|
|
70
78
|
});
|
|
71
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supplier-arrival-api.js","sourceRoot":"","sources":["../../src/api/supplier-arrival-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,MAAM,oBAAoB,GAAG,WAAW,CAAC,EAAE;IACzC,OAAO;QACL;YACE,SAAS,EAAE,aAAa;YACxB,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,KAAK;SACb;QACD;YACE,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ;SAC/B;QACD;YACE,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE;gBACR;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO;iBAChC;gBACD;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,QAAQ;iBACjC;aACF;SACF;QACD,kBAAkB,CAAC,uBAAuB,EAAE,WAAW,CAAC;KACzD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,EAAC,WAAW,EAAE,IAAI,GAAG,CAAC,EAAC;IACvE,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,oCAAoC;QAC3C,QAAQ,EAAE,oBAAoB,CAAC,WAAW,CAAC;QAC3C,QAAQ,EAAE,uBAAuB;QACjC,OAAO,EAAE,uBAAuB;QAChC,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACrC,WAAW,EACX,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"supplier-arrival-api.js","sourceRoot":"","sources":["../../src/api/supplier-arrival-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACn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W,EACX,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC,IAAI,EACtC,OAAO,GACR;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,+BAA+B,WAAW,EAAE;QACjD,IAAI,EAAE;YACJ,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,MAAM;YACd,gBAAgB,EAAE,gBAAgB;YAClC,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE,OAAO;YAChB,UAAU,EAAE,UAAU;YACtB,OAAO;SACR;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,EAAC,WAAW,EAAE,OAAO,EAAC;IAC1D,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,8BAA8B,WAAW,EAAE;QAChD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { axiosApiProvider, createStandardSearch } from '@axelor/aos-mobile-core';
|
|
18
|
+
import { axiosApiProvider, createStandardFetch, createStandardSearch, } from '@axelor/aos-mobile-core';
|
|
19
19
|
import StockMove from '../types/stock-move';
|
|
20
20
|
export async function searchSupplierArrivalLines({ supplierArrivalId, page = 0, }) {
|
|
21
21
|
return createStandardSearch({
|
|
@@ -34,11 +34,23 @@ export async function searchSupplierArrivalLines({ supplierArrivalId, page = 0,
|
|
|
34
34
|
export async function updateLine({ stockMoveLineId, version, realQty, conformity = StockMove.conformity.None, }) {
|
|
35
35
|
return axiosApiProvider.put({
|
|
36
36
|
url: `/ws/aos/stock-move-line/${stockMoveLineId}`,
|
|
37
|
-
data:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
data: conformity > StockMove.conformity.None
|
|
38
|
+
? {
|
|
39
|
+
version: version,
|
|
40
|
+
realQty: realQty,
|
|
41
|
+
conformity: conformity,
|
|
42
|
+
}
|
|
43
|
+
: {
|
|
44
|
+
version: version,
|
|
45
|
+
realQty: realQty,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export async function fetchSupplierArrivalLine({ supplierArrivalLineId }) {
|
|
50
|
+
return createStandardFetch({
|
|
51
|
+
model: 'com.axelor.apps.stock.db.StockMoveLine',
|
|
52
|
+
id: supplierArrivalLineId,
|
|
53
|
+
fieldKey: 'stock_supplierArrivalLine',
|
|
42
54
|
});
|
|
43
55
|
}
|
|
44
56
|
//# sourceMappingURL=supplier-arrival-line-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supplier-arrival-line-api.js","sourceRoot":"","sources":["../../src/api/supplier-arrival-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"supplier-arrival-line-api.js","sourceRoot":"","sources":["../../src/api/supplier-arrival-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,EAC/C,iBAAiB,EACjB,IAAI,GAAG,CAAC,GACT;IACC,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,wCAAwC;QAC/C,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,cAAc;gBACzB,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,iBAAiB;aACzB;SACF;QACD,QAAQ,EAAE,2BAA2B;QACrC,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAC/B,eAAe,EACf,OAAO,EACP,OAAO,EACP,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC,IAAI,GACvC;IACC,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,2BAA2B,eAAe,EAAE;QACjD,IAAI,EACF,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC,IAAI;YACpC,CAAC,CAAC;gBACE,OAAO,EAAE,OAAO;gBAChB,OAAO,EAAE,OAAO;gBAChB,UAAU,EAAE,UAAU;aACvB;YACH,CAAC,CAAC;gBACE,OAAO,EAAE,OAAO;gBAChB,OAAO,EAAE,OAAO;aACjB;KACR,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,EAAC,qBAAqB,EAAC;IACpE,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,wCAAwC;QAC/C,EAAE,EAAE,qBAAqB;QACzB,QAAQ,EAAE,2BAA2B;KACtC,CAAC,CAAC;AACL,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -5,8 +5,8 @@ interface QuantityCardProps {
|
|
|
5
5
|
defaultValue: number;
|
|
6
6
|
onValueChange: (value: number) => void;
|
|
7
7
|
editable: boolean;
|
|
8
|
-
actionQty
|
|
9
|
-
onPressActionQty
|
|
8
|
+
actionQty?: boolean;
|
|
9
|
+
onPressActionQty?: () => void;
|
|
10
10
|
}
|
|
11
11
|
declare const QuantityCard: ({ style, children, labelQty, defaultValue, onValueChange, editable, actionQty, onPressActionQty, }: QuantityCardProps) => JSX.Element;
|
|
12
12
|
export default QuantityCard;
|
|
@@ -19,14 +19,15 @@ import React, { useMemo } from 'react';
|
|
|
19
19
|
import { StyleSheet, View } from 'react-native';
|
|
20
20
|
import { Card, getCommonStyles, Icon, Increment, Text, useThemeColor, } from '@axelor/aos-mobile-ui';
|
|
21
21
|
import { useTranslator } from '@axelor/aos-mobile-core';
|
|
22
|
-
const QuantityCard = ({ style, children, labelQty, defaultValue, onValueChange, editable, actionQty = false, onPressActionQty = () => { }, }) => {
|
|
22
|
+
const QuantityCard = ({ style, children, labelQty, defaultValue = 0, onValueChange, editable, actionQty = false, onPressActionQty = () => { }, }) => {
|
|
23
23
|
const I18n = useTranslator();
|
|
24
24
|
const Colors = useThemeColor();
|
|
25
25
|
const commonStyles = useMemo(() => getCommonStyles(Colors), [Colors]);
|
|
26
|
+
const _defaultValue = useMemo(() => parseFloat(defaultValue.toString()).toFixed(2), [defaultValue]);
|
|
26
27
|
if (children == null || children.length === 0) {
|
|
27
28
|
return (<Card style={[styles.noChildrenContainer, style]}>
|
|
28
29
|
<Text style={styles.noChildrenTextField}>{labelQty}</Text>
|
|
29
|
-
{editable ? (<Increment value={
|
|
30
|
+
{editable ? (<Increment value={_defaultValue.toString()} decimalSpacer={I18n.t('Base_DecimalSpacer')} thousandSpacer={I18n.t('Base_ThousandSpacer')} onValueChange={onValueChange}/>) : (<Text style={styles.noChildrenTextValue}>{_defaultValue}</Text>)}
|
|
30
31
|
</Card>);
|
|
31
32
|
}
|
|
32
33
|
return (<Card style={[commonStyles.filter, styles.container]}>
|
|
@@ -38,7 +39,7 @@ const QuantityCard = ({ style, children, labelQty, defaultValue, onValueChange,
|
|
|
38
39
|
</View>
|
|
39
40
|
<View style={styles.container_down}>
|
|
40
41
|
<Text style={styles.textField}>{labelQty}</Text>
|
|
41
|
-
{editable ? (<Increment value={
|
|
42
|
+
{editable ? (<Increment value={_defaultValue.toString()} decimalSpacer={I18n.t('Base_DecimalSpacer')} thousandSpacer={I18n.t('Base_ThousandSpacer')} onValueChange={onValueChange}/>) : (<Text style={styles.textValue}>{_defaultValue}</Text>)}
|
|
42
43
|
</View>
|
|
43
44
|
</Card>);
|
|
44
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuantityCard.js","sourceRoot":"","sources":["../../../../src/components/organisms/QuantityCard/QuantityCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAatD,MAAM,YAAY,GAAG,CAAC,EACpB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,
|
|
1
|
+
{"version":3,"file":"QuantityCard.js","sourceRoot":"","sources":["../../../../src/components/organisms/QuantityCard/QuantityCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAatD,MAAM,YAAY,GAAG,CAAC,EACpB,KAAK,EACL,QAAQ,E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I;KACjB;CACF,CAAC,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
export { default as CardStockIndicator } from "./CardStockIndicator/CardStockIndicator";
|
|
2
|
-
export { default as CustomerDeliveryCard } from "./CustomerDeliveryCard/CustomerDeliveryCard";
|
|
3
|
-
export { default as CustomerDeliveryLineCard } from "./CustomerDeliveryLineCard/CustomerDeliveryLineCard";
|
|
4
2
|
export { default as DescriptionCard } from "./DescriptionCard/DescriptionCard";
|
|
5
|
-
export { default as InternalMoveCard } from "./InternalMoveCard/InternalMoveCard";
|
|
6
|
-
export { default as InternalMoveLineCard } from "./InternalMoveLineCard/InternalMoveLineCard";
|
|
7
|
-
export { default as InventoryCard } from "./InventoryCard/InventoryCard";
|
|
8
|
-
export { default as InventoryHeader } from "./InventoryHeader/InventoryHeader";
|
|
9
|
-
export { default as InventoryLineCard } from "./InventoryLineCard/InventoryLineCard";
|
|
10
|
-
export { default as ProductCard } from "./ProductCard/ProductCard";
|
|
11
|
-
export { default as ProductCardInfo } from "./ProductCardInfo/ProductCardInfo";
|
|
12
|
-
export { default as ProductCharacteristics } from "./ProductCharacteristics/ProductCharacteristics";
|
|
13
|
-
export { default as ProductStockLocationCard } from "./ProductStockLocationCard/ProductStockLocationCard";
|
|
14
|
-
export { default as ProductVariantCard } from "./ProductVariantCard/ProductVariantCard";
|
|
15
3
|
export { default as QuantityCard } from "./QuantityCard/QuantityCard";
|
|
16
4
|
export { default as SmallPropertyCard } from "./SmallPropertyCard/SmallPropertyCard";
|
|
17
5
|
export { default as StockMoveHeader } from "./StockMoveHeader/StockMoveHeader";
|
|
18
|
-
export { default as SupplierArrivalCard } from "./SupplierArrivalCard/SupplierArrivalCard";
|
|
19
|
-
export { default as SupplierArrivalLineCard } from "./SupplierArrivalLineCard/SupplierArrivalLineCard";
|