title = "actions/bag" url = "/actions/bag/:type?" layout = "platform_main" is_hidden = 0 [bagAction] == param("type"); $this["type"] = $this->param("type"); //$this["products"] = ''; //dump($catId); $this["stocksq"] = Romanah\Gokbakja\Models\Stock::orderBy("id", "desc")->where("type", 'bag')->get(); if($type){ $this["actions"] = Romanah\Gokbakja\Models\BagAction::orderBy("id", "desc") ->with(['stock']) ->where("type", $type) ->get(); }else{ $this["actions"] = Romanah\Gokbakja\Models\BagAction::orderBy("id", "desc") ->with(['stock']) ->get(); } } ?> == {% put styles %} {% endput %} {% set products = builderList.records %} {% set stocks = builderList2.records %}
{{type}}
| № | Görnüşi | Mukdary (sany) | Senesi | Sklad | Direktor | Bugalter | Bellik | Sazlamalar | ||
|---|---|---|---|---|---|---|---|---|---|---|
| {{key + 1}} | {% if record.type == 'inbox' %} GIRIŞ {% else %} ÇYKYŞ {% endif %} | {{record.amount|number_format}} | {{record.created_at|date('d.m.Y')}} | {{record.stock.name}} | {% if isDirector %}{% if record.status_director == 'accept' %} + {% else %} Tassyklanmadyk {% endif %} | {% else %}{% if record.status_director == 'accept' %} + {% else %} Tassyklanmadyk {% endif %} | {% endif %} {% if isAccountant %}{% if record.status_accountant == 'accept' %} + {% else %} Tassyklanmadyk {% endif %} | {% else %}{% if record.status_accountant == 'accept' %} + {% else %} Tassyklanmadyk {% endif %} | {% endif %}{{record.note}} |
{% if crudSewerProduction %}
{% if record.user_id != user.id %}
{% else %}
{% endif %}
{% endif %}
|
| № | Görnüşi | Mukdary (sany) | Senesi | Sklad | Direktor | Bugalter | Bellik | Sazlamalar |