Get a list of rounding types catalog.enum.getRoundTypes

We are still updating this page

Some data may be missing — we will fill it in shortly.

Scope: catalog

Who can execute the method: any user

Description

catalog.enum.getRoundTypes()
        

The method returns a list of rounding types.

Parameters

No parameters.

Examples

try
        {
        	const response = await $b24.callMethod(
        		'catalog.enum.getRoundTypes',
        		{}
        	);
        	
        	const result = response.getData().result;
        	if(result.error())
        	{
        		console.error(result.error().ex);
        	}
        	else
        	{
        		console.log(result);
        	}
        }
        catch(error)
        {
        	console.error('Error:', error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'catalog.enum.getRoundTypes',
                    []
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            if ($result->error()) {
                error_log($result->error()->ex);
            } else {
                echo 'Success: ' . print_r($result->data(), true);
            }
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error getting round types: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'catalog.enum.getRoundTypes',
            {},
            function(result)
            {
                if(result.error())
                    console.error(result.error().ex);
                else
                    console.log(result.data());
            }
        );
        

How to Use Examples in Documentation