Skip to main content
Version: 2.2.3

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
Requestweb\wwwroot\ws\java\supply\AddEditSupplySupplierRequestType.java
Returnweb\wwwroot\ws\java\supply\AddEditSupplySupplierResponseType.java

Request:

ID #RequiredDescription
IDOBJECTXSupply ID #.
IDCOMMERCIALSupplier company ID.
NMCOMPANYSupplier company name.
IDCOMPANYSupplier code.
IDINPUTSUPPXSupply reference in the supplier.
DSINPUTSUPPXDescription of the supply in the supplier.
VLCOSTCost.
FGDEFAULT1 - 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
returnSUCCESS: 1.
FAILURE: -1