Skip to main content

sgrAtualizarDocumentosEntregas

Updates the fields in a document.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdPASintegerYesPAS code, returned by the sgrListPASUser method
cdCliintegerYesCustomer code, returned by the sgrListCompaniesPASUser method.
cdDocintegerYesDocument code, returned by the sgrReturnDocuments method
nrControl1stringNoCustomer control
nrControl2stringNoCustomer control
nrControl3stringNoClient control
nrControl4stringNoClient control
nrControl5stringNoClient control
nrControl6stringNoClient control
valueDocstringNoTotal document value.
weightVstringNoTotal document weight.
loadstringNoLoad control number.

METHOD RETURN:

If the parameters are correct, the returnDescription property has the value “OK”, indicating that the document data has been successfully updated.

If the returnDescription property indicates ERROR, the dataset will indicate the problem:

ErrorResolution
Load control value is the same as the previous one.A different value must be entered to make the change.
Control value (1, 2, 3, 4, 5 or 6) is the same as the previous one.
Weight value is the same as the previous one.
Document value is the same as the previous one.
Error when saving the load control: Check the data entered and try again. If the problem persists, pass on the parameters, along with the issue time and customer code, to the following e-mail address: [email protected] to validate the error.
Error when saving customer control (1, 2, 3, 4, 5 or 6):
Error saving weight:
Error saving value:
Error saving product value:
Document does not have a linked trip, it is not possible to change the load control. Since the controls entered are related to the trip, it is only possible to enter the fields when there is an associated trip.
Document does not have a linked trip, it is not possible to change the weight of the load.