Postman collection
Suppliers Write

pixiSupplierOrderLineLocQtyDelete

Deletes a location quantity record of a supplier order line and returns a status row with ReturnCode and ErrorMessage.

Removes one location quantity entry (SupplierOrderLineLocQty) of a supplier order (purchase order) line. The supplier order is updated accordingly by the internal procedure.

Steps:

  1. Opens its own transaction, or sets a savepoint if a transaction is already open.
  2. Resolves the user: if UserId is empty, the user ID is looked up by UserName. If that name does not exist, the user pixiAdministration is used.
  3. Treats NULL for ConsiderPackageUnits and ConsiderMinOrderQty as 0.
  4. Calls the internal procedure pixi.SupplierOrderLineLocQtyDelete with the user, the record ID and both flags. This procedure does the actual deletion.
  5. Checks whether the record with SupplierOrderLineLocQtyId still exists. If so, the result is WARNING with a message.
  6. Commits and returns one row with ReturnCode (SUCCESS or WARNING) and ErrorMessage.

If an error occurs, the transaction (or the savepoint) is rolled back. A row with ReturnCode = ERROR and the SQL error text is returned.

Notes

  • The deletion logic, including how package units and minimum order quantities are considered and how the supplier order is updated, is in pixi.SupplierOrderLineLocQtyDelete. That procedure is not attached, so its exact behaviour and the tables it changes are not documented here.
  • AppName is required but not used by the code.
  • The existence check after the deletion reads pixi.SupplierOrderLineLocQty with NOLOCK.
  • On success or warning, the status row is only returned if the call opened its own transaction. If the call runs inside an outer transaction, no row is returned on success. Error rows are always returned.
  • A WARNING does not roll back anything. Whatever the internal procedure changed is committed.

Tables used

SupplierOrderLineLocQty · Write UCS_USERS · Read
SQL object:
dbo.pipiSupplierOrderLineLocQtyDelete
Updated at 2026-10-30