from server 26.11
This commit is contained in:
parent
ab41a972b7
commit
03e289ba9d
|
|
@ -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' => '',
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit b321aad179c8f657324887a63e4eb1f838913edf
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
@ -178,4 +178,4 @@ function onStart() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% partial 'dataTableJs' %}
|
{% partial 'dataTableJs' %}
|
||||||
|
|
@ -455,4 +455,4 @@ function onStart(){
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% endput %}
|
{% endput %}
|
||||||
|
|
@ -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>
|
||||||
|
|
@ -102,4 +102,4 @@ function onStart(){
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% partial 'dataTableJs' %}
|
{% partial 'dataTableJs' %}
|
||||||
Binary file not shown.
Loading…
Reference in New Issue