Bug 24156: Add columns_settings.yml changes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 12 Dec 2019 15:18:09 +0000 (16:18 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 25 Jun 2020 08:51:59 +0000 (10:51 +0200)
Modification of the structure of the yml file.
It was
  table:
    - column list
It now becomes
    table:
      default_display_length: X
      default_sort_order: Y
      columns:
        - column list

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

admin/columns_settings.yml

index 9923463..d957400 100644 (file)
@@ -72,49 +72,52 @@ modules:
 
     basket:
       orders:
-        -
-          columnname: basket_number
-        -
-          columnname: order_information
-        -
-          columnname: recommended_retail_price_tax_excluded
-        -
-          columnname: actual_cost_tax_excluded
-        -
-          columnname: budgeted_cost_price_tax_included
-        -
-          columnname: recommended_retail_price_tax_included
-          is_hidden: 1
-        -
-          columnname: actual_cost_tax_included
-          is_hidden: 1
-        -
-          columnname: budgeted_cost_tax_included
-        -
-          columnname: replacement_price
-        -
-          columnname: quantity
-        -
-          columnname: total_tax_excluded
-        -
-          columnname: total_tax_included
-          is_hidden: 1
-        -
-          columnname: goods_and_services_tax_percentage
-        -
-          columnname: goods_and_services_tax
-        -
-          columnname: fund
-        -
-          columnname: supplier_report
-        -
-          columnname: modify
-          cannot_be_toggled: 1
-          cannot_be_modified: 1
-        -
-          columnname: cancel
-          cannot_be_toggled: 1
-          cannot_be_modified: 1
+        default_display_length: 20
+        default_sort_order: 0
+        columns:
+            -
+              columnname: basket_number
+            -
+              columnname: order_information
+            -
+              columnname: recommended_retail_price_tax_excluded
+            -
+              columnname: actual_cost_tax_excluded
+            -
+              columnname: budgeted_cost_price_tax_included
+            -
+              columnname: recommended_retail_price_tax_included
+              is_hidden: 1
+            -
+              columnname: actual_cost_tax_included
+              is_hidden: 1
+            -
+              columnname: budgeted_cost_tax_included
+            -
+              columnname: replacement_price
+            -
+              columnname: quantity
+            -
+              columnname: total_tax_excluded
+            -
+              columnname: total_tax_included
+              is_hidden: 1
+            -
+              columnname: goods_and_services_tax_percentage
+            -
+              columnname: goods_and_services_tax
+            -
+              columnname: fund
+            -
+              columnname: supplier_report
+            -
+              columnname: modify
+              cannot_be_toggled: 1
+              cannot_be_modified: 1
+            -
+              columnname: cancel
+              cannot_be_toggled: 1
+              cannot_be_modified: 1
 
     suggestions:
       suggestions: