Postman collection
Suppliers Write

pixiSupplierOrderLineLocQtyUpdate

Updates the quantity and/or undelivered quantity of one location quantity record of a supplier order line.

Updates a single supplier order line location quantity record, identified by SupplierOrderLineLocQtyId. The actual update is done by the internal procedure pixi.SupplierOrderLineLocQtyUpdate. This wrapper does the following:

  1. Opens a transaction. If the caller already has an open transaction, it sets a savepoint instead.
  2. Resolves the user. If UserId is given, it is used as is. Otherwise the user is looked up by UserName in UCS_USERS. If no user has that name, the user pixiAdministration is used.
  3. Normalises the parameters:
    • ConsiderPackageUnits and ConsiderMinOrderQty become 0 when they are NULL.
    • Qty and UndeliveredQty become NULL when they are NULL or 0.
  4. Calls pixi.SupplierOrderLineLocQtyUpdate with these values. It always passes ReturnUpdatedIds = 1, so the internal procedure is asked to return the IDs it updated.
  5. Commits the transaction if this call opened it.

On any error the transaction or savepoint is rolled back. The call then returns one row with ReturnCode = 'ERROR' and the SQL error message.

Notes

  • Internal procedure not attached: the definition of pixi.SupplierOrderLineLocQtyUpdate is not available. It is therefore unknown:
    • which tables it changes,
    • which validations it performs,
    • which columns its success result set has,
    • how it handles NULL for Qty or UndeliveredQty (probably "leave unchanged").
  • Value 0 cannot be set: because of the check ISNULL(@Qty, '') = '', the value 0 is treated like "not provided" and passed on as NULL. The same applies to UndeliveredQty. Setting a quantity to 0 is therefore not possible through this call.
  • Unused parameter: AppName is required but not used by the code.
  • Rollback on error: if an error makes the transaction uncommittable, the code rolls back to the savepoint. SQL Server does not allow this for uncommittable transactions and may raise a further error.

Tables used

UCS_USERS · Read
SQL object:
dbo.pipiSupplierOrderLineLocQtyUpdate
Updated at 2026-10-30