Manage transfer process
It is possible to
- create transfer,
- issue,
- move from on item to another item / Batch / bincode
- create Po Return docuemtn
Only possible for lines, which the QCOrder/TransferLoad() function returns
Primary key is the BatchNumber and BinCode
If all items are booked, the system closes the transfer process automatically.
Load Transfer Lines
get QCOrder/TransferLoad(DocEntry)
This returns all lines, which are open
To post the Transfer (all document types) you must send the lines in follow way
post QCOrder
{"transfer":{
"DocEntry":1000,
"PostingDate":...,
"DocumentDate":...,
"Remarks":"...",
"Ref":"...",
"DocumentLines": [
{DistNumber":"...", "BinCode":"..","DocType":0-3,"Quantity":x,"Reijected":true/false,"ToQuantity":x,"ToItemCode","ToBinCode":"",ToDistNumber":"","ToWhsCode":""},{...}
]
}
Field |
Mandatory |
Description |
---|---|---|
DocEntry |
x |
QC order DocEntry |
PostingDate |
Posting Date / Tax Date |
|
DocumentDate |
Document Date |
|
Remarks |
Remarks / Notes |
|
Document Lines |
x |
Object Array It is mandatory to send DocumentLines in correct order: 1. DistNumber 2. BinCode (if bin warehouse related) 3. All other If other order is used, the system may work incorrectly or return an error message. If you send other properties, the system return an error. |
-> DistNumber |
x |
Distnumber/Batchnumber from Serial/Batch related item |
-> BinCode |
x |
BinCode, in case of Bin managed warehouse. Beas/SAP/WMS Bin managed warehouses are supported. |
-> DocType |
Transaction type. 0=transfer, 1=issue,2=edit,3=poReturn |
|
-> Quantity |
x |
Transfer / Move / Issue quantity |
-> ToQuantity, -> ToItemCode -> toVersion |
Target Item / Quantity / Warehouse If not defined, the system uses Standard. |
|
-> rejected |
Booelan: true for rejected (bad) quantity and false for good quantity |
It will return
{
"TransferDocEntry":x,
"TransferDocNumber":x,
"IssueDocEntry":x,
"IssueDocNumber":x,
"ReceiptDocEntry":x,
"ReceiptDocNumber":x,
"PoReturnDocEntry":x,
"PoReturnDocNumber":x
"CloseTransfer":true/false
}
Every entry only, if a document is created for this type.
Example: If only a transfer document was created, it return
{
"TransferDocEntry":x,
"TransferDocNumber":x,
"CloseTransfer":true
}
The System checks if all items transfered. If yes, it return"CloseTransfer":true otherwise false