Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SetOrderSoldBy

Sets the SoldBy of the specified Sales Order to the provided UserID. The user must have type Employee. This service can only be called on Orders that have not been invoiced yet. As SoldBy is a line-level property this service will update all lines on the order that have not been invoiced yet.

Hierarchy

  • SetOrderSoldBy

Index

Properties

OrderID

OrderID: number

The Order to set the SoldBy for. Must be an Order of type Sales. Entity type: Order

Optional OrderLineID

OrderLineID: undefined | number

If specified the SoldBy will only be set for the given OrderLine. If SetOrderSoldBy is again called at a later time for the whole order (so without specifying an OrderLineID) then this value is not preserved.

When the SoldBy has been set on an individual OrderLine then that SoldBy is not automatically set on newly created OrderLines. Entity type: OrderLine

UserID

UserID: number

The User that will become the SoldBy. Must be of type Employee. Entity type: User