createUpdateDeleteReceiving
This method allows adding, editing, or deleting:
- Data of a receiving.
To insert each of these items, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web\wwwroot\ws\java\inspection\CreateUpdateDeleteReceivingRequestType.java |
Return | web\wwwroot\ws\java\inspection\CreateUpdateDeleteReceivingResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
FGOPTION | X | Action option: 3 - Add; 4 - Edit; 5 - Delete. |
IDCONFIGURATION | X¹ | Inspection form ID # |
IDCOMMERCIAL | X² | Supplier company ID |
IDLOT | X³ | Lot number |
IDINVOICE | X³ | Invoice number |
DTINVOICE | X³ | Invoice date |
IDORDER | X³ | Order number |
DTORDER | X³ | Order date |
IDSO | X³ | Request order number |
DTSO | X³ | Request order date |
#IDPOS | X³ | Production order number |
DTPO | X³ | Production order date |
DTRECVEST | X³ | Estimated date |
QTRECVTIMEEST | X³ | Estimated time |
DTRECVACT | X³ | Actual date |
QTRECVTIMEACT | X³ | Actual time |
VLQTYEST | X³ | Expected amount |
VLQTYACT | X³ | Actual quantity |
VLCOSTEST | X³ | Estimated cost |
VLCOSTACT | X³ | Actual cost |
IDWORKFLOW | X⁴ | Inspection flow ID # |
DSRECEIVING | X³ | Comments |
FGEXECUTE | Send to the next step (only for editing): 1 - Send to the next step; 2 - Do not send to the next step. | |
IDWFPROCESS | X⁵ | Workflow instance ID # |
IDRECEIVING | X⁶ | Receiving ID # (number) |
info
- X¹ - Required for insertion; ignored for other actions.
- X² - Required for inspections of Supplies, Services, and External finished products; ignored for other object types.
- X³ - Required, not required, or ignored, depending on the inspection form type configurations.
- X⁴ - Required if the "Allow editing flow during receiving" option is checked on the inspection form tab, or ignored otherwise.
- X⁵ - Required if the inspection object is a Workflow process instance, or ignored otherwise.
- X⁶ - Required for editing and deletion.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:inspection">
<soapenv:Header/>
<soapenv:Body>
<urn:createUpdateDeleteReceiving>
<!--You may enter the following 25 items in any order-->
<urn:FGOPTION>?</urn:FGOPTION>
<urn:IDCONFIGURATION>?</urn:IDCONFIGURATION>
<urn:IDCOMMERCIAL>?</urn:IDCOMMERCIAL>
<urn:IDLOT>?</urn:IDLOT>
<urn:IDINVOICE>?</urn:IDINVOICE>
<urn:DTINVOICE>?</urn:DTINVOICE>
<urn:IDORDER>?</urn:IDORDER>
<urn:DTORDER>?</urn:DTORDER>
<urn:IDSO>?</urn:IDSO>
<urn:DTSO>?</urn:DTSO>
<urn:IDPO>?</urn:IDPO>
<urn:DTPO>?</urn:DTPO>
<urn:DTRECVEST>?</urn:DTRECVEST>
<urn:QTRECVTIMEEST>?</urn:QTRECVTIMEEST>
<urn:DTRECVACT>?</urn:DTRECVACT>
<urn:QTRECVTIMEACT>?</urn:QTRECVTIMEACT>
<urn:VLQTYEST>?</urn:VLQTYEST>
<urn:VLQTYACT>?</urn:VLQTYACT>
<urn:VLCOSTEST>?</urn:VLCOSTEST>
<urn:VLCOSTACT>?</urn:VLCOSTACT>
<urn:IDWORKFLOW>?</urn:IDWORKFLOW>
<urn:FGEXECUTE>?</urn:FGEXECUTE>
<urn:IDWFPROCESS>?</urn:IDWFPROCESS>
<urn:IDRECEIVING>?</urn:IDRECEIVING>
<urn:DSRECEIVING>?</urn:DSRECEIVING>
</urn:createUpdateDeleteReceiving>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | Returns Status, Code, and Detail ▪ Status can be SUCCESS or FAILURE. ▪ Code returns 1 for success, or 0 for failure. ▪ Detail returns error description in case of failure. |