from server 26.11

This commit is contained in:
Shohrat 2023-11-26 17:04:31 +05:00
parent ab41a972b7
commit 03e289ba9d
9 changed files with 18 additions and 16 deletions

View File

@ -57,9 +57,9 @@ return [
'engine' => 'InnoDB', 'engine' => 'InnoDB',
'host' => 'localhost', 'host' => 'localhost',
'port' => 3306, 'port' => 3306,
'database' => 'gok_bakja_stock', 'database' => 'gok_bakja',
'username' => 'root', 'username' => 'root',
'password' => 'bt110226', 'password' => '',
'charset' => 'utf8mb4', 'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci', 'collation' => 'utf8mb4_unicode_ci',
'prefix' => '', 'prefix' => '',

1
old Submodule

@ -0,0 +1 @@
Subproject commit b321aad179c8f657324887a63e4eb1f838913edf

View File

@ -117,7 +117,7 @@ class Production extends ComponentBase
for ($i = 0; $i < count($productionsFiltered[$x]->pivot_production); $i++) { for ($i = 0; $i < count($productionsFiltered[$x]->pivot_production); $i++) {
$html_data .= '<td> <a href="#">' . number_format($productionsFiltered[$x]->pivot_production[$i]->amount_percentage) . '% </a></td>'; $html_data .= '<td> <a href="#">' . number_format($productionsFiltered[$x]->pivot_production[$i]->amount_percentage, 2) . '% </a></td>';
} }
$html_data .= '<td style="font-weight: bold;color: #0005c5;">' . $productionsFiltered[$x]->note . '</td> $html_data .= '<td style="font-weight: bold;color: #0005c5;">' . $productionsFiltered[$x]->note . '</td>
@ -494,7 +494,7 @@ class Production extends ComponentBase
$createProduction->shift_id = $data["shift_id"]; $createProduction->shift_id = $data["shift_id"];
$createProduction->save(); $createProduction->save();
$products = ProductModel::where("report", "simple")->get(); $products = ProductModel::where("report", "simple")->orderBy('order', 'ASC')->get();
for ($x = 0; $x < count($products); $x++) { for ($x = 0; $x < count($products); $x++) {
$fieldName = "product_" . $products[$x]->id; $fieldName = "product_" . $products[$x]->id;

View File

@ -16,7 +16,8 @@ class PivotProduction extends Model
public $hasMany = [ public $hasMany = [
'pivot_production_calculate' => [ 'pivot_production_calculate' => [
'Romanah\Gokbakja\Models\ProductionCalculate', 'Romanah\Gokbakja\Models\ProductionCalculate',
'key' => 'prev_pivot_id' 'key' => 'prev_pivot_id',
'softDelete' => true
] ]
]; ];

View File

@ -4,10 +4,10 @@ columns:
type: number type: number
start: start:
label: start label: start
type: text type: time
end: end:
label: end label: end
type: text type: time
desc: desc:
label: desc label: desc
type: text type: text

View File

@ -9,7 +9,7 @@ function onStart() {
$this["month"] = $this->param("month"); $this["month"] = $this->param("month");
$year = $this->param("year"); $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'){ if($this["month"] == 'default'){
$this["month"] = $currentDate->month; $this["month"] = $currentDate->month;
@ -110,7 +110,7 @@ function onStart() {
<th>Senesi</th> <th>Senesi</th>
<th>Hemmesi</th> <th>Hemmesi</th>
{% for key, record in reportProducts %} {% for key, record in reportProducts %}
<th>{{record.name}}</th> <th>{{record.code}}</th>
{% endfor %} {% endfor %}
<th>Bellik</th> <th>Bellik</th>
<!-- <th>Настройки</th> --> <!-- <th>Настройки</th> -->
@ -159,7 +159,7 @@ function onStart() {
<th>Senesi</th> <th>Senesi</th>
<th>Hemmesi</th> <th>Hemmesi</th>
{% for key, record in reportProducts %} {% for key, record in reportProducts %}
<th>{{record.name}}</th> <th>{{record.code}}</th>
{% endfor %} {% endfor %}
<th>Bellik</th> <th>Bellik</th>
</tr> </tr>

View File

@ -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(){
<th>Aýlar</th> <th>Aýlar</th>
<th>Işlenen çig mal</th> <th>Işlenen çig mal</th>
{% for key, record in reportProducts %} {% for key, record in reportProducts %}
<th>{{record.name}}</th> <th>{{record.code}}</th>
{% endfor %} {% endfor %}
<th>Bellik</th> <th>Bellik</th>
<!-- <th>Настройки</th> --> <!-- <th>Настройки</th> -->
@ -86,7 +86,7 @@ function onStart(){
<th>Aýlar</th> <th>Aýlar</th>
<th>Işlenen çig mal</th> <th>Işlenen çig mal</th>
{% for key, record in reportProducts %} {% for key, record in reportProducts %}
<th>{{record.name}}</th> <th>{{record.code}}</th>
{% endfor %} {% endfor %}
<th>Bellik</th> <th>Bellik</th>
</tr> </tr>

BIN
vendor.zip Normal file

Binary file not shown.