Fluent Commerce Logo
Docs
Sign In

UpdateOnHand

Rule

Changed on:

13 Nov 2023

Overview

Update the onHand value of the Inventory Position according to the event attribute {InventoryPositionOnHandCalculated}

Plugin NameInventory Reference Module
Namespace{{accountId}}.globalinventory

The Inventory Reference Module is the foundation for inventory related implementations. It provides reference Workflows for inventory ingestion and processing. Extensible by design, use this Module as a base to build a solution to the needs of your customers.

The inventory Modules includes the following areas:

  • Inventory Catalogue workflow
  • Virtual Catalogue workflow
  • Control Group workflow
  • Product Catalogue workflow

UI Description

Update the onHand value of the Inventory Position according to the event attribute {InventoryPositionOnHandCalculated}

Accepts

  • INVENTORY_POSITION

Actions

  • This rule produces a MutationAction that will update the given inventory's position onHand based on the above event attribute {InventoryPositionOnHandCalculated}

Rule parameters

This rule doesn't need any Input Parameters

Event attributes

Parameter

Description

Data Type

Required?

InventoryPositionOnHandCalculated

The value for the new onHand

Integer

Required

Exceptions

If the event attribute 

`{InventoryPositionOnHandCalculated}`
 is missing, an exception EventAttributeNotFoundException will be thrown.

Configuration example

1{
2  "name": "FLUENTRETAIL.globalinventory.UpdateOnHand"
3}

Language: json

Detailed Technical Description

The Inventory Positions 

`onHand`
 value will be updated by a 
`MutationAction`
 using the 
`{InventoryPositionOnHandCalculated}`
 value given in the event attributes.

Version History

2023-08-03

v2.0.0

refers to plugin

Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.

Fluent Logo