beginning of everything. tried some stuff but yea. something is up

This commit is contained in:
akemidx
2025-06-04 15:10:16 -04:00
parent 3c0121c1d0
commit 5ec52f7471
2 changed files with 19 additions and 8 deletions
+8 -8
View File
@@ -72,14 +72,6 @@ class ConsumablePresenter extends Presenter
'searchable' => true,
'sortable' => true,
'title' => trans('admin/consumables/general.item_no'),
], [
'field' => 'min_amt',
'searchable' => false,
'sortable' => true,
'title' => trans('general.min_amt'),
'visible' => true,
'formatter' => 'minAmtFormatter',
'class' => 'text-right text-padding-number-cell',
], [
'field' => 'qty',
'searchable' => false,
@@ -96,6 +88,14 @@ class ConsumablePresenter extends Presenter
'visible' => true,
'class' => 'text-right text-padding-number-cell',
'footerFormatter' => 'qtySumFormatter',
], [
'field' => 'min_amt',
'searchable' => false,
'sortable' => true,
'title' => trans('general.min_amt'),
'visible' => true,
'formatter' => 'minAmtFormatter',
'class' => 'text-right text-padding-number-cell',
], [
'field' => 'location',
'searchable' => true,
@@ -189,6 +189,17 @@
</div>
@endif
<!-- total -->
@if ($consumable->qty)
<div class="row">
<div class="col-md-3">
{{ trans('admin/components/general.total') }}
</div>
<div class="col-md-9">
{{ $consumable->qty }}
</div>
</div>
@endif
<!-- remaining -->
@if ($consumable->numRemaining())