mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 17:10:11 +00:00
Stock-Journal: API, Summary, Done By (#989)
* Stockjournal: Add "Done by" * Add API for Stock-Journal * Add "Journal-Summary" * Use ALTER TABLE * Moved the "Jounral summary" button to the stock journal page * Changed icon & context menu position for new stock journal summary page Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
committed by
GitHub
parent
7498d8f13d
commit
0454c128f0
47
views/stockjournalsummary.blade.php
Normal file
47
views/stockjournalsummary.blade.php
Normal file
@@ -0,0 +1,47 @@
|
||||
@extends('layout.default')
|
||||
|
||||
@section('title', $__t('Stock journal summary'))
|
||||
@section('activeNav', '')
|
||||
@section('viewJsName', 'stockjournalsummary')
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h2 class="title">@yield('title')</h2>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table id="journal-summary-table"
|
||||
class="table table-sm table-striped dt-responsive">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ $__t('Product') }}</th>
|
||||
<th>{{ $__t('Booking type') }}</th>
|
||||
<th>{{ $__t('User') }}</th>
|
||||
<th>{{ $__t('Amount') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="d-none">
|
||||
@foreach($entries as $journalEntry)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $journalEntry->product_name }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $__t($journalEntry->transaction_type) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $journalEntry->user_display_name }}
|
||||
</td>
|
||||
<td>
|
||||
<span class="locale-number locale-number-quantity-amount">{{ $journalEntry->amount }}</span> {{ $__n($journalEntry->amount, $journalEntry->qu_name, $journalEntry->qu_name_plural) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
Reference in New Issue
Block a user