pixiCheckPickListNr
Checks whether a pick list number exists and has not expired, and returns its box range, 1SS flag, scan state and number of open orders.
Validates a pick list (PLHeader) by its key PickListNr. The call delegates all work to the internal procedure Pixi_CheckPickListNr and always returns exactly one row.
Steps:
- Scan state: It checks whether at least one item of the pick list (
PLitem) refers to an order line with statusEIN. If so,PicklistNotScannedYetis0. If there is no such line, it is1. - Number of orders: It counts the distinct order numbers of the pick list whose order lines are not expired (
Expired = 0). Orders that already have a box inboxeswithWaitForSend = 'N'are left out. - Validity: A pick list is valid if a
PLHeaderrow withPLHkey = PickListNrexists and itsPLHexpiryDateis later than the current server time.- Invalid or expired pick list: the row contains
ReturnValue = 0and all other columns are0. - Valid pick list: the row contains
ReturnValue = 1, the box rangePLHfromBox/PLHtoBox, the1SSflag (NULLbecomes0), and the values from steps 1 and 2.
- Invalid or expired pick list: the row contains
Notes
- All reads use
NOLOCK. Values may reflect uncommitted changes made at the same time. - In the invalid branch the box columns are named
PLHFromBox/PLHToBox. In the valid branch they are namedPLHfromBox/PLHtoBox. XML element names are case-sensitive, so clients should read them case-insensitively. - The column name
1SSstarts with a digit. In the SOAP/DataSet XML it is typically encoded as_x0031_SS. - A non-existing pick list cannot be told apart from an expired one; both return
ReturnValue = 0. - Expiry is compared with the database server time (
GETDATE()).
Tables used
| Parameter | Type | Default | Description |
|---|---|---|---|
PickListNr
Required
|
int | – |
Key of the pick list ( Example: |
Result set 1 · Always; exactly one row. If the pick list is missing or expired, all values are 0.
Validation result for the pick list.
| Column | Type | Description |
|---|---|---|
ReturnValue
|
int |
|
PLHfromBox
Nullable |
int |
First box number of the pick list ( |
PLHtoBox
Nullable |
int |
Last box number of the pick list ( |
1SS
|
bit boolean |
Value of the |
PicklistNotScannedYet
|
bit boolean |
|
NumberOfOrders
|
int |
Number of distinct orders on the pick list with non-expired order lines and no box with |
Response example
<SqlRowSet1>
<row>
<ReturnValue>1</ReturnValue>
<PLHfromBox>1</PLHfromBox>
<PLHtoBox>24</PLHtoBox>
<_x0031_SS>false</_x0031_SS>
<PicklistNotScannedYet>true</PicklistNotScannedYet>
<NumberOfOrders>18</NumberOfOrders>
</row>
</SqlRowSet1>
| Status | Message | Cause |
|---|---|---|
| 0 | ReturnValue = 0 | No `PLHeader` row with this key exists, or its `PLHexpiryDate` is not later than the current time. Pass the key of an existing, non-expired pick list. |
POST https://apigateway.descartes.com/tms/pixi/
Content-Type: text/xml; charset=utf-8
Authorization: Basic BASE64(USERNAME:PASSWORD)
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://apigateway.descartes.com/tms/pixi/">
<SOAP-ENV:Body>
<ns1:pixiCheckPickListNr>
<PickListNr>104523</PickListNr>
</ns1:pixiCheckPickListNr>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
curl -X POST 'https://apigateway.descartes.com/tms/pixi/' \
--user 'USERNAME:PASSWORD' \
--header 'Content-Type: text/xml; charset=utf-8' \
--data-binary @- <<'XML'
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://apigateway.descartes.com/tms/pixi/">
<SOAP-ENV:Body>
<ns1:pixiCheckPickListNr>
<PickListNr>104523</PickListNr>
</ns1:pixiCheckPickListNr>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML
<?php
$soapClient = new SoapClient(null, [
'login' => 'USERNAME',
'password' => 'PASSWORD',
'location' => 'https://apigateway.descartes.com/tms/pixi/',
'uri' => 'https://apigateway.descartes.com/tms/pixi/',
]);
$arguments = [
'PickListNr' => '104523',
];
$soapArguments = [];
foreach ($arguments as $name => $value) {
$soapArguments[] = new SoapVar($value, XSD_STRING, '', '', $name);
}
$response = $soapClient->__soapCall('pixiCheckPickListNr', $soapArguments);
- SQL object:
- dbo.pipiCheckPickListNr