addEditSupplySupplier
This method allows adding/editing:
- Data of the association between supply and supplier.
To add/edit each of these items, the standard documented below must be followed.
Java class | |
---|---|
Request | web\wwwroot\ws\java\supply\AddEditSupplySupplierRequestType.java |
Return | web\wwwroot\ws\java\supply\AddEditSupplySupplierResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
IDOBJECT | X | Supply ID #. |
IDCOMMERCIAL | X¹ | Supplier company ID. |
NMCOMPANY | X¹ | Supplier company name. |
IDCOMPANY | X² | Supplier code. |
IDINPUTSUPP | X | Supply reference in the supplier. |
DSINPUTSUPP | X | Description of the supply in the supplier. |
VLCOST | Cost. | |
FGDEFAULT | 1 - Defines that the supplier is preferential. 2 - Defines that the supplier is NOT preferential. When inserting, for a blank value or any other value different from 1, the record will be defined as 2. When editing, if a blank value or any other value different from 1 and 2 is entered, the field will not be changed, it will keep the value previously set. |
info
- X¹ - Field required if "Supplier code" is empty.
- X² - Field required if “Company ID” and/or “Company name” are empty.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sp">
<soapenv:Header/>
<soapenv:Body>
<urn:addEditSupplySupplier>
<!--You may enter the following 8 items in any order-->
<urn:IDOBJECT>?</urn:IDOBJECT>
<urn:IDCOMMERCIAL>?</urn:IDCOMMERCIAL>
<urn:NMCOMPANY>?</urn:NMCOMPANY>
<urn:IDCOMPANY>?</urn:IDCOMPANY>
<urn:IDINPUTSUPP>?</urn:IDINPUTSUPP>
<urn:DSINPUTSUPP>?</urn:DSINPUTSUPP>
<urn:VLCOST>?</urn:VLCOST>
<urn:FGDEFAULT>?</urn:FGDEFAULT>
</urn:addEditSupplySupplier>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | SUCCESS: 1. FAILURE: -1 |