sgrEditarProgramacao
Edit the Schedule that has been included in the system.
PARAMETERS:
Field | Type | Req. | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
cdcliente | integer | Yes | Customer code, returned by the sgrListaEmpresasPASUsuario method. |
programming | object | Yes | Object containing the programming and recipient data. The fields that must be entered can be found in the Programming item. |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the dataset will display:
Field | Type | Description |
---|---|---|
cdProgramacao | int | Code of the schedule posted in the system. |
cdDestinatarioProgramacao | List | List with the codes of the posted recipients. |
ReturnDescription: If there is an error in the execution of the method, the property will be displayed:
Error | Description |
---|---|
Loading location not found. | No recipient has been entered in the “schedule” parameter. |
Carrier not found. | The carrier informed in the “programming” parameter must be linked to the customer informed. |
Consignee not found. | The consignee informed in the “programming” parameter was not found in the system. Check that it is registered, or register it using the sgrAddDestinatarioProgramacao method. Note: This field will only be validated if the [Require CNPJ of delivery locations] parameter is checked. |