sgrAdicionarProdutoPedido
Method for adding products to customer orders.
PARAMETERS
Field | Type | Required? | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
cdproduct | integer | Yes | Product code, returned by the sgrListProducts method. |
cdunitmeasure | integer | Yes | Unit of measure code, returned by the sgrListUnitMeasure method. |
vlproduct | money | Yes | product unit value |
vlqtde | t_value | Yes | product quantity |
vlweight | t_value | Yes | product unit weight in kg |
vlcubage | t_value | Yes | individual product cubage |
vlvolume | t_value | Yes | individual product volume |
METHOD RETURN
If the parameters are valid, the record will be added and will return ReturnDescription = OK.
ReturnDescription: If there is an error when executing the method (if the product is not found, does not belong to the customer or if the product already exists in the order), the property will show the reason for the error.