From 30cf0850a62730515d15d361878f96d83823d17f Mon Sep 17 00:00:00 2001 From: Shohrat Date: Wed, 22 Nov 2023 01:16:35 +0500 Subject: [PATCH] fix bugs --- .../gokbakja/models/product/columns.yaml | 3 ++ .../gokbakja/models/product/fields.yaml | 4 ++ ...able_update_romanah_gokbakja_product_3.php | 23 ++++++++ plugins/romanah/gokbakja/updates/version.yaml | 3 ++ .../gokbakja/pages/production/production.htm | 53 ++++++++++++++++--- .../pages/production/report-dynamic.htm | 4 +- 6 files changed, 82 insertions(+), 8 deletions(-) create mode 100644 plugins/romanah/gokbakja/updates/builder_table_update_romanah_gokbakja_product_3.php diff --git a/plugins/romanah/gokbakja/models/product/columns.yaml b/plugins/romanah/gokbakja/models/product/columns.yaml index 37b1282..b9bcb9e 100644 --- a/plugins/romanah/gokbakja/models/product/columns.yaml +++ b/plugins/romanah/gokbakja/models/product/columns.yaml @@ -20,3 +20,6 @@ columns: report: label: Hasabat type: text + order: + label: Yzygiderlilik + type: number diff --git a/plugins/romanah/gokbakja/models/product/fields.yaml b/plugins/romanah/gokbakja/models/product/fields.yaml index 297fd6f..88fe1e3 100644 --- a/plugins/romanah/gokbakja/models/product/fields.yaml +++ b/plugins/romanah/gokbakja/models/product/fields.yaml @@ -20,3 +20,7 @@ fields: span: auto default: simple type: balloon-selector + order: + label: 'Ysy giderliligi' + span: auto + type: number diff --git a/plugins/romanah/gokbakja/updates/builder_table_update_romanah_gokbakja_product_3.php b/plugins/romanah/gokbakja/updates/builder_table_update_romanah_gokbakja_product_3.php new file mode 100644 index 0000000..e6f559f --- /dev/null +++ b/plugins/romanah/gokbakja/updates/builder_table_update_romanah_gokbakja_product_3.php @@ -0,0 +1,23 @@ +integer('order')->default(0); + }); + } + + public function down() + { + Schema::table('romanah_gokbakja_product', function($table) + { + $table->dropColumn('order'); + }); + } +} diff --git a/plugins/romanah/gokbakja/updates/version.yaml b/plugins/romanah/gokbakja/updates/version.yaml index fff16e2..bc031b2 100644 --- a/plugins/romanah/gokbakja/updates/version.yaml +++ b/plugins/romanah/gokbakja/updates/version.yaml @@ -387,3 +387,6 @@ 1.0.130: - 'Updated table romanah_gokbakja_rulon_action' - builder_table_update_romanah_gokbakja_rulon_action_2.php +1.0.131: + - 'Updated table romanah_gokbakja_product' + - builder_table_update_romanah_gokbakja_product_3.php diff --git a/themes/gokbakja/pages/production/production.htm b/themes/gokbakja/pages/production/production.htm index 65856a4..392a12e 100644 --- a/themes/gokbakja/pages/production/production.htm +++ b/themes/gokbakja/pages/production/production.htm @@ -12,6 +12,8 @@ noRecordsMessage = "No records found" detailsPage = "-" detailsUrlParameter = "id" pageNumber = "{{ :page }}" +sortColumn = "order" +sortDirection = "asc" [production] == @@ -62,8 +64,8 @@ function onStart(){ {% if crudExtrudor %}
-