Table of Contents

Crm.Pos.LocationProducts Entity

Namespace: Crm.Pos

The listed products for sale for each POS location. Entity: Pos_Location_Products (Introduced in version 26.2.0.74)

Default Visualization

Default Display Text Format:
{Location.PosLocationCode}
Default Search Members:
Location.PosLocationCode
Name Data Member:
Location.PosLocationCode
Category: Definitions
Show in UI: ShownByDefault
API access: ReadWrite

Track Changes

Min level: 0 - Do not track changes
Max level: 4 - Track object attribute and blob changes

Aggregate

An aggregate is a cluster of domain objects that can be treated as a single unit.

Aggregate Parent:
Crm.Pos.Locations
Aggregate Root:
Crm.Pos.Locations

Attributes

Name Type Description
DisplayText string Uses the repository DisplayTextFormat to build the display text from the attributes and references of current object.
Id guid
MaxQuantity decimal (10, 3) nullable Maximum target on-hand quantity for this product in this POS location. Used to calculate replenishment need (MaxQuantity - CurrentOnHand).
MinQuantity decimal (10, 3) nullable Minimum desired on-hand quantity for this product in this POS location. Used for basic replenishment and stock alerts.
ObjectVersion int32 The latest version of the extensible data object for the aggregate root for the time the object is loaded from the database. Can be used for optimistic locking.
Placement string (254) nullable Free-text description of default placement.
Status Status Listing state. Required Filter(multi eq)
ValidFrom date nullable Begining of validity. Filter(eq;ge;le)
ValidTo date nullable End of validity. Filter(eq;ge;le)

References

Name Type Description
Location Locations The location for which the product is listed. Required Filter(multi eq) Owner
Product Products The listed product. Required Filter(multi eq)

Attribute Details

DisplayText

Uses the repository DisplayTextFormat to build the display text from the attributes and references of current object.

Type: string
Category: Calculated Attributes
Supported Filters: NotFilterable
Supports Order By: ****
Show in UI: HiddenByDefault

Id

Type: guid
Indexed: True
Category: System
Supported Filters: Equals, EqualsIn
Default Value: NewGuid
Show in UI: ShownByDefault

MaxQuantity

Maximum target on-hand quantity for this product in this POS location. Used to calculate replenishment need (MaxQuantity - CurrentOnHand).

Type: decimal (10, 3) nullable
Category: System
Supported Filters: NotFilterable
Supports Order By: False
Show in UI: ShownByDefault

MinQuantity

Minimum desired on-hand quantity for this product in this POS location. Used for basic replenishment and stock alerts.

Type: decimal (10, 3) nullable
Category: System
Supported Filters: NotFilterable
Supports Order By: False
Show in UI: ShownByDefault

ObjectVersion

The latest version of the extensible data object for the aggregate root for the time the object is loaded from the database. Can be used for optimistic locking.

Type: int32
Category: Extensible Data Object
Supported Filters: NotFilterable
Supports Order By: ****
Show in UI: HiddenByDefault

Placement

Free-text description of default placement.

Type: string (254) nullable
Category: System
Supported Filters: NotFilterable
Supports Order By: False
Maximum Length: 254
Show in UI: ShownByDefault

Status

Listing state. Required Filter(multi eq)

Type: Status
Category: System
Allowed values for the Status(Crm.Pos.LocationProducts.md#status) data attribute
Allowed Values (Crm.Pos.LocationProductsRepository.Status Enum Members)

Value Description
Active Active; product can be sold in this location.. Stored as 'ACT'.
Database Value: 'ACT'
Model Value: 0
Domain API Value: 'Active'
Inactive Inactive; product temporarily unavailable or not to be offered.. Stored as 'INA'.
Database Value: 'INA'
Model Value: 1
Domain API Value: 'Inactive'
Blocked Blocked; product must not be sold due to issues or restrictions.. Stored as 'BLK'.
Database Value: 'BLK'
Model Value: 2
Domain API Value: 'Blocked'

Supported Filters: Equals, EqualsIn
Supports Order By: False
Show in UI: ShownByDefault

ValidFrom

Begining of validity. Filter(eq;ge;le)

Type: date nullable
Category: System
Supported Filters: Equals, GreaterThanOrLessThan
Supports Order By: False
Show in UI: ShownByDefault

ValidTo

End of validity. Filter(eq;ge;le)

Type: date nullable
Category: System
Supported Filters: Equals, GreaterThanOrLessThan
Supports Order By: False
Show in UI: ShownByDefault

Reference Details

Location

The location for which the product is listed. Required Filter(multi eq) Owner

Type: Locations
Indexed: True
Category: System
Supported Filters: Equals, EqualsIn
Filterable Reference: True
Show in UI: ShownByDefault

Product

The listed product. Required Filter(multi eq)

Type: Products
Category: System
Supported Filters: Equals, EqualsIn
Show in UI: ShownByDefault

API Methods

Methods that can be invoked in public APIs.

GetAllowedCustomPropertyValues

Gets the allowed values for the specified custom property for this entity object. If supported the result is ordered by property value. Some property value sources do not support ordering - in that case the result is not ordered.
Return Type: Collection Of CustomPropertyValue
Declaring Type: EntityObject
Domain API Request: GET

Parameters

  • customPropertyCode
    The code of the custom property
    Type: string

  • search
    The search text - searches by value or description. Can contain wildcard character %.
    Type: string
    Optional: True
    Default Value: null

  • exactMatch
    If true the search text should be equal to the property value
    Type: boolean
    Optional: True
    Default Value: False

  • orderByDescription
    If true the result is ordered by Description instead of Value. Note that ordering is not always possible.
    Type: boolean
    Optional: True
    Default Value: False

  • top
    The top clause - default is 10
    Type: int32
    Optional: True
    Default Value: 10

  • skip
    The skip clause - default is 0
    Type: int32
    Optional: True
    Default Value: 0

CreateNotification

Create a notification immediately in a separate transaction, and send a real-time event to the user.
Return Type: void
Declaring Type: EntityObject
Domain API Request: POST

Parameters

  • user
    The user.
    Type: Users

  • notificationClass
    The notification class.
    Type: string

  • subject
    The notification subject.
    Type: string

  • priority
    The notification priority.
    Type: Systems.Core.NotificationsRepository.Priority
    Allowed values for the Priority(Systems.Core.Notifications.md#priority) data attribute
    Allowed Values (Systems.Core.NotificationsRepository.Priority Enum Members)

    Value Description
    Background Background value. Stored as 1.
    Model Value: 1
    Domain API Value: 'Background'
    Low Low value. Stored as 2.
    Model Value: 2
    Domain API Value: 'Low'
    Normal Normal value. Stored as 3.
    Model Value: 3
    Domain API Value: 'Normal'
    High High value. Stored as 4.
    Model Value: 4
    Domain API Value: 'High'
    Urgent Urgent value. Stored as 5.
    Model Value: 5
    Domain API Value: 'Urgent'

    Optional: True
    Default Value: Normal

CreateCopy

Duplicates the object and its child objects belonging to the same aggregate. The duplicated objects are not saved to the data source but remain in the same transaction as the original object.
Return Type: EntityObject
Declaring Type: EntityObject
Domain API Request: POST

Business Rules

None

Front-End Business Rules

None

API

Domain API Entity Set: Crm_Pos_LocationProducts

Domain API Entity Type: Crm_Pos_LocationProduct

Domain API Query: https://testdb.my.erp.net/api/domain/odata/Crm_Pos_LocationProducts?$top=10

Domain API Query Builder: https://testdb.my.erp.net/api/domain/querybuilder#Crm_Pos_LocationProducts?$top=10