================================================================================
DecimalPlaces property with simple format
================================================================================

page 50100 "Test Page"
{
    layout
    {
        area(content)
        {
            field(Amount; Amount)
            {
                DecimalPlaces = 2;
            }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (page_declaration
    (page_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (layout_section
      (layout_keyword)
      (area_section
        (area_keyword)
        (page_field
          name: (identifier)
          source: (identifier)
          (property
            name: (property_name)
            value: (integer)))))))

================================================================================
DecimalPlaces property with precision and scale
================================================================================

page 50100 "Test Page"
{
    layout
    {
        area(content)
        {
            field(Amount; Amount)
            {
                DecimalPlaces = 2:5;
            }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (page_declaration
    (page_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (layout_section
      (layout_keyword)
      (area_section
        (area_keyword)
        (page_field
          name: (identifier)
          source: (identifier)
          (property
            name: (property_name)
            value: (decimal_range_value
              min: (integer)
              max: (integer))))))))

================================================================================
DecimalPlaces property with precision only (edge case)
================================================================================

page 50100 "Test Page"
{
    layout
    {
        area(content)
        {
            field("From Value"; Rec."From Value")
            {
                DecimalPlaces = 0 :;
            }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (page_declaration
    (page_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (layout_section
      (layout_keyword)
      (area_section
        (area_keyword)
        (page_field
          name: (quoted_identifier)
          source: (member_expression
            object: (identifier)
            member: (quoted_identifier))
          (property
            name: (property_name)
            value: (decimal_range_value
              min: (integer))))))))

================================================================================
Multiple fields with different DecimalPlaces formats
================================================================================

page 50100 "Test Page"
{
    layout
    {
        area(content)
        {
            field(SimpleFormat; Value1)
            {
                DecimalPlaces = 3;
            }
            field(PrecisionScale; Value2)
            {
                DecimalPlaces = 1:2;
            }
            field(EdgeCase; Value3)
            {
                DecimalPlaces = 0 :;
            }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (page_declaration
    (page_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (layout_section
      (layout_keyword)
      (area_section
        (area_keyword)
        (page_field
          name: (identifier)
          source: (identifier)
          (property
            name: (property_name)
            value: (integer)))
        (page_field
          name: (identifier)
          source: (identifier)
          (property
            name: (property_name)
            value: (decimal_range_value
              min: (integer)
              max: (integer))))
        (page_field
          name: (identifier)
          source: (identifier)
          (property
            name: (property_name)
            value: (decimal_range_value
              min: (integer))))))))
