sgrAtualizarDocumentosEntregas
Updates the fields in a document.
PARAMETERS
Field | Type | Required? | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdPAS | integer | Yes | PAS code, returned by the sgrListPASUser method |
cdCli | integer | Yes | Customer code, returned by the sgrListCompaniesPASUser method. |
cdDoc | integer | Yes | Document code, returned by the sgrReturnDocuments method |
nrControl1 | string | No | Customer control |
nrControl2 | string | No | Customer control |
nrControl3 | string | No | Client control |
nrControl4 | string | No | Client control |
nrControl5 | string | No | Client control |
nrControl6 | string | No | Client control |
valueDoc | string | No | Total document value. |
weightV | string | No | Total document weight. |
load | string | No | Load 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:
Error | Resolution |
---|---|
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. |