diff --git a/config/database.php b/config/database.php
index abd6a3e..30db3e9 100644
--- a/config/database.php
+++ b/config/database.php
@@ -57,9 +57,9 @@ return [
'engine' => 'InnoDB',
'host' => 'localhost',
'port' => 3306,
- 'database' => 'gok_bakja_stock',
+ 'database' => 'gok_bakja',
'username' => 'root',
- 'password' => 'bt110226',
+ 'password' => '',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
diff --git a/old b/old
new file mode 160000
index 0000000..b321aad
--- /dev/null
+++ b/old
@@ -0,0 +1 @@
+Subproject commit b321aad179c8f657324887a63e4eb1f838913edf
diff --git a/plugins/romanah/gokbakja/components/Production.php b/plugins/romanah/gokbakja/components/Production.php
index 464bef6..686cf6b 100644
--- a/plugins/romanah/gokbakja/components/Production.php
+++ b/plugins/romanah/gokbakja/components/Production.php
@@ -117,7 +117,7 @@ class Production extends ComponentBase
for ($i = 0; $i < count($productionsFiltered[$x]->pivot_production); $i++) {
- $html_data .= '
' . number_format($productionsFiltered[$x]->pivot_production[$i]->amount_percentage) . '% | ';
+ $html_data .= ' ' . number_format($productionsFiltered[$x]->pivot_production[$i]->amount_percentage, 2) . '% | ';
}
$html_data .= '' . $productionsFiltered[$x]->note . ' |
@@ -494,7 +494,7 @@ class Production extends ComponentBase
$createProduction->shift_id = $data["shift_id"];
$createProduction->save();
- $products = ProductModel::where("report", "simple")->get();
+ $products = ProductModel::where("report", "simple")->orderBy('order', 'ASC')->get();
for ($x = 0; $x < count($products); $x++) {
$fieldName = "product_" . $products[$x]->id;
diff --git a/plugins/romanah/gokbakja/models/PivotProduction.php b/plugins/romanah/gokbakja/models/PivotProduction.php
index 90d266b..afc6b81 100644
--- a/plugins/romanah/gokbakja/models/PivotProduction.php
+++ b/plugins/romanah/gokbakja/models/PivotProduction.php
@@ -16,7 +16,8 @@ class PivotProduction extends Model
public $hasMany = [
'pivot_production_calculate' => [
'Romanah\Gokbakja\Models\ProductionCalculate',
- 'key' => 'prev_pivot_id'
+ 'key' => 'prev_pivot_id',
+ 'softDelete' => true
]
];
diff --git a/plugins/romanah/gokbakja/models/shift/columns.yaml b/plugins/romanah/gokbakja/models/shift/columns.yaml
index 1bf0a1d..18803a3 100644
--- a/plugins/romanah/gokbakja/models/shift/columns.yaml
+++ b/plugins/romanah/gokbakja/models/shift/columns.yaml
@@ -4,10 +4,10 @@ columns:
type: number
start:
label: start
- type: text
+ type: time
end:
label: end
- type: text
+ type: time
desc:
label: desc
type: text
diff --git a/themes/gokbakja/pages/production/all-production-month.htm b/themes/gokbakja/pages/production/all-production-month.htm
index 2923723..f186d0a 100644
--- a/themes/gokbakja/pages/production/all-production-month.htm
+++ b/themes/gokbakja/pages/production/all-production-month.htm
@@ -9,7 +9,7 @@ function onStart() {
$this["month"] = $this->param("month");
$year = $this->param("year");
- $this["reportProducts"] = Romanah\Gokbakja\Models\Product::where("report", "simple")->get();
+ $this["reportProducts"] = Romanah\Gokbakja\Models\Product::where("report", "simple")->orderBy('order', 'ASC')->get();
if($this["month"] == 'default'){
$this["month"] = $currentDate->month;
@@ -110,7 +110,7 @@ function onStart() {
Senesi |
Hemmesi |
{% for key, record in reportProducts %}
- {{record.name}} |
+ {{record.code}} |
{% endfor %}
Bellik |
@@ -159,7 +159,7 @@ function onStart() {
Senesi |
Hemmesi |
{% for key, record in reportProducts %}
- {{record.name}} |
+ {{record.code}} |
{% endfor %}
Bellik |
@@ -178,4 +178,4 @@ function onStart() {
-{% partial 'dataTableJs' %}
+{% partial 'dataTableJs' %}
\ No newline at end of file
diff --git a/themes/gokbakja/pages/production/production.htm b/themes/gokbakja/pages/production/production.htm
index 392a12e..a1c7998 100644
--- a/themes/gokbakja/pages/production/production.htm
+++ b/themes/gokbakja/pages/production/production.htm
@@ -455,4 +455,4 @@ function onStart(){
-{% endput %}
+{% endput %}
\ No newline at end of file
diff --git a/themes/gokbakja/pages/production/report-production.htm b/themes/gokbakja/pages/production/report-production.htm
index d8a036c..fa84703 100644
--- a/themes/gokbakja/pages/production/report-production.htm
+++ b/themes/gokbakja/pages/production/report-production.htm
@@ -14,7 +14,7 @@ function onStart(){
}
- $this["reportProducts"] = Romanah\Gokbakja\Models\Product::where("report", "simple")->get();
+ $this["reportProducts"] = Romanah\Gokbakja\Models\Product::where("report", "simple")->orderBy('order', 'ASC')->get();
}
?>
==
@@ -56,7 +56,7 @@ function onStart(){
Aýlar |
Işlenen çig mal |
{% for key, record in reportProducts %}
- {{record.name}} |
+ {{record.code}} |
{% endfor %}
Bellik |
@@ -86,7 +86,7 @@ function onStart(){
Aýlar |
Işlenen çig mal |
{% for key, record in reportProducts %}
- {{record.name}} |
+ {{record.code}} |
{% endfor %}
Bellik |
@@ -102,4 +102,4 @@ function onStart(){
-{% partial 'dataTableJs' %}
+{% partial 'dataTableJs' %}
\ No newline at end of file
diff --git a/vendor.zip b/vendor.zip
new file mode 100644
index 0000000..9377c28
Binary files /dev/null and b/vendor.zip differ