Skip to content

Commit

Permalink
fixed #284
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Mar 30, 2018
1 parent 778006d commit a57f446
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 26 deletions.
6 changes: 6 additions & 0 deletions public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,12 @@ ul.add-new.nav.navbar-nav.pull-left {
}
}

@media only screen and (min-width : 768px) {
.amount-space {
padding-right: 30px !important;
}
}

.text-disabled {
opacity: 0.4;
}
Expand Down
4 changes: 2 additions & 2 deletions resources/views/banking/accounts/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<tr>
<th class="col-md-4">@sortablelink('name', trans('general.name'))</th>
<th class="col-md-3 hidden-xs">@sortablelink('number', trans('accounts.number'))</th>
<th class="col-md-3">@sortablelink('opening_balance', trans('accounts.current_balance'))</th>
<th class="col-md-3 text-right amount-space">@sortablelink('opening_balance', trans('accounts.current_balance'))</th>
<th class="col-md-1 hidden-xs">@sortablelink('enabled', trans_choice('general.statuses', 1))</th>
<th class="col-md-1 text-center">{{ trans('general.actions') }}</th>
</tr>
Expand All @@ -43,7 +43,7 @@
<tr>
<td><a href="{{ url('banking/accounts/' . $item->id . '/edit') }}">{{ $item->name }}</a></td>
<td class="hidden-xs">{{ $item->number }}</td>
<td>@money($item->balance, $item->currency_code, true)</td>
<td class="text-right amount-space">@money($item->balance, $item->currency_code, true)</td>
<td class="hidden-xs">
@if ($item->enabled)
<span class="label label-success">{{ trans('general.enabled') }}</span>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/banking/transactions/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<th class="col-md-2">@sortablelink('type', trans_choice('general.types', 1))</th>
<th class="col-md-2">@sortablelink('category_name', trans_choice('general.categories', 1))</th>
<th class="col-md-2">@sortablelink('description', trans('general.description'))</th>
<th class="col-md-2">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-2 text-right amount-space">@sortablelink('amount', trans('general.amount'))</th>
</tr>
</thead>
<tbody>
Expand All @@ -43,7 +43,7 @@
<td>{{ $item->type }}</td>
<td>{{ $item->category_name }}</td>
<td>{{ $item->description }}</td>
<td>@money($item->amount, $item->currency_code, true)</td>
<td class="text-right amount-space">@money($item->amount, $item->currency_code, true)</td>
</tr>
@endforeach
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/banking/transfers/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<th class="col-md-3">@sortablelink('payment.paid_at', trans('general.date'))</th>
<th class="col-md-3">@sortablelink('payment.name', trans('transfers.from_account'))</th>
<th class="col-md-3">@sortablelink('revenue.name', trans('transfers.to_account'))</th>
<th class="col-md-3">@sortablelink('payment.amount', trans('general.amount'))</th>
<th class="col-md-3 text-right amount-space">@sortablelink('payment.amount', trans('general.amount'))</th>
</tr>
</thead>
<tbody>
Expand All @@ -44,7 +44,7 @@
<td>{{ Date::parse($item->paid_at)->format($date_format) }}</td>
<td>{{ $item->from_account }}</td>
<td>{{ $item->to_account }}</td>
<td>@money($item->amount, $item->currency_code, true)</td>
<td class="text-right amount-space">@money($item->amount, $item->currency_code, true)</td>
</tr>
@endforeach
</tbody>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/expenses/bills/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<thead>
<tr>
<th class="col-md-2">@sortablelink('bill_number', trans_choice('general.numbers', 1))</th>
<th class="col-md-3">@sortablelink('vendor_name', trans_choice('general.vendors', 1))</th>
<th class="col-md-1">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-2">@sortablelink('vendor_name', trans_choice('general.vendors', 1))</th>
<th class="col-md-2 text-right amount-space">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-2">@sortablelink('billed_at', trans('bills.bill_date'))</th>
<th class="col-md-2">@sortablelink('due_at', trans('bills.due_date'))</th>
<th class="col-md-1">@sortablelink('bill_status_code', trans_choice('general.statuses', 1))</th>
Expand All @@ -48,7 +48,7 @@
<tr>
<td><a href="{{ url('expenses/bills/' . $item->id . ' ') }}">{{ $item->bill_number }}</a></td>
<td>{{ $item->vendor_name }}</td>
<td>@money($item->amount, $item->currency_code, true)</td>
<td class="text-right amount-space">@money($item->amount, $item->currency_code, true)</td>
<td>{{ Date::parse($item->billed_at)->format($date_format) }}</td>
<td>{{ Date::parse($item->due_at)->format($date_format) }}</td>
<td><span class="label {{ $item->status->label }}">{{ $item->status->name }}</span></td>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/expenses/payments/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<thead>
<tr>
<th class="col-md-2">@sortablelink('paid_at', trans('general.date'))</th>
<th class="col-md-2">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-2 text-right amount-space">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-3 hidden-xs">@sortablelink('vendor.name', trans_choice('general.vendors', 1))</th>
<th class="col-md-2 hidden-xs">@sortablelink('category.name', trans_choice('general.categories', 1))</th>
<th class="col-md-2 hidden-xs">@sortablelink('account.name', trans_choice('general.accounts', 1))</th>
Expand All @@ -46,7 +46,7 @@
@foreach($payments as $item)
<tr>
<td><a href="{{ url('expenses/payments/' . $item->id . '/edit') }}">{{ Date::parse($item->paid_at)->format($date_format) }}</a></td>
<td>@money($item->amount, $item->currency_code, true)</td>
<td class="text-right amount-space">@money($item->amount, $item->currency_code, true)</td>
<td class="hidden-xs">{{ !empty($item->vendor->name) ? $item->vendor->name : trans('general.na') }}</td>
<td class="hidden-xs">{{ $item->category->name }}</td>
<td class="hidden-xs">{{ $item->account->name }}</td>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/incomes/invoices/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<thead>
<tr>
<th class="col-md-2">@sortablelink('invoice_number', trans_choice('general.numbers', 1))</th>
<th class="col-md-3">@sortablelink('customer_name', trans_choice('general.customers', 1))</th>
<th class="col-md-1">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-2">@sortablelink('customer_name', trans_choice('general.customers', 1))</th>
<th class="col-md-2 text-right amount-space">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-2">@sortablelink('invoiced_at', trans('invoices.invoice_date'))</th>
<th class="col-md-2">@sortablelink('due_at', trans('invoices.due_date'))</th>
<th class="col-md-1">@sortablelink('invoice_status_code', trans_choice('general.statuses', 1))</th>
Expand All @@ -47,7 +47,7 @@
<tr>
<td><a href="{{ url('incomes/invoices/' . $item->id . ' ') }}">{{ $item->invoice_number }}</a></td>
<td>{{ $item->customer_name }}</td>
<td>@money($item->amount, $item->currency_code, true)</td>
<td class="text-right amount-space">@money($item->amount, $item->currency_code, true)</td>
<td>{{ Date::parse($item->invoiced_at)->format($date_format) }}</td>
<td>{{ Date::parse($item->due_at)->format($date_format) }}</td>
<td><span class="label {{ $item->status->label }}">{{ $item->status->name }}</span></td>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/incomes/revenues/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<thead>
<tr>
<th class="col-md-2">@sortablelink('paid_at', trans('general.date'))</th>
<th class="col-md-2">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-2 text-right amount-space">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-3 hidden-xs">@sortablelink('customer.name', trans_choice('general.customers', 1))</th>
<th class="col-md-2 hidden-xs">@sortablelink('category.name', trans_choice('general.categories', 1))</th>
<th class="col-md-2 hidden-xs">@sortablelink('account.name', trans_choice('general.accounts', 1))</th>
Expand All @@ -46,7 +46,7 @@
@foreach($revenues as $item)
<tr>
<td><a href="{{ url('incomes/revenues/' . $item->id . '/edit') }}">{{ Date::parse($item->paid_at)->format($date_format) }}</a></td>
<td>@money($item->amount, $item->currency_code, true)</td>
<td class="text-right amount-space">@money($item->amount, $item->currency_code, true)</td>
<td class="hidden-xs">{{ !empty($item->customer->name) ? $item->customer->name : trans('general.na') }}</td>
<td class="hidden-xs">{{ $item->category->name }}</td>
<td class="hidden-xs">{{ $item->account->name }}</td>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/items/items/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<th class="col-md-3">@sortablelink('name', trans('general.name'))</th>
<th class="col-md-1 hidden-xs">@sortablelink('category', trans_choice('general.categories', 1))</th>
<th class="col-md-1 hidden-xs">@sortablelink('quantity', trans_choice('items.quantities', 1))</th>
<th class="col-md-2">@sortablelink('sale_price', trans('items.sales_price'))</th>
<th class="col-md-2 hidden-xs">@sortablelink('purchase_price', trans('items.purchase_price'))</th>
<th class="col-md-2 text-right amount-space">@sortablelink('sale_price', trans('items.sales_price'))</th>
<th class="col-md-2 hidden-xs text-right amount-space">@sortablelink('purchase_price', trans('items.purchase_price'))</th>
<th class="col-md-1 hidden-xs">@sortablelink('enabled', trans_choice('general.statuses', 1))</th>
<th class="col-md-1 text-center">{{ trans('general.actions') }}</th>
</tr>
Expand All @@ -50,8 +50,8 @@
<td><a href="{{ url('items/items/' . $item->id . '/edit') }}">{{ $item->name }}</a></td>
<td class="hidden-xs">{{ $item->category ? $item->category->name : trans('general.na') }}</td>
<td class="hidden-xs">{{ $item->quantity }}</td>
<td>{{ money($item->sale_price, setting('general.default_currency'), true) }}</td>
<td class="hidden-xs">{{ money($item->purchase_price, setting('general.default_currency'), true) }}</td>
<td class="text-right amount-space">{{ money($item->sale_price, setting('general.default_currency'), true) }}</td>
<td class="hidden-xs text-right amount-space">{{ money($item->purchase_price, setting('general.default_currency'), true) }}</td>
<td class="hidden-xs">
@if ($item->enabled)
<span class="label label-success">{{ trans('general.enabled') }}</span>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/partials/admin/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-green-light.min.css') }}">
@else
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-black.min.css') }}">
<link rel="stylesheet" href="{{ asset('public/css/skin-black.css?v=1.0') }}">
<link rel="stylesheet" href="{{ asset('public/css/skin-black.css?v=1.2') }}">
@endif
<!-- Select2 -->
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/plugins/select2/select2.min.css') }}">
<!-- App style -->
<link rel="stylesheet" href="{{ asset('public/css/app.css?v=1.0') }}">
<link rel="stylesheet" href="{{ asset('public/css/akaunting-green.css?v=1.0') }}">
<link rel="stylesheet" href="{{ asset('public/css/app.css?v=1.2') }}">
<link rel="stylesheet" href="{{ asset('public/css/akaunting-green.css?v=1.2') }}">

<link rel="shortcut icon" href="{{ asset('public/img/favicon.ico') }}">

Expand Down
6 changes: 3 additions & 3 deletions resources/views/partials/customer/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-green-light.min.css') }}">
@else
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-black.min.css') }}">
<link rel="stylesheet" href="{{ asset('public/css/skin-black.css?v=1.0') }}">
<link rel="stylesheet" href="{{ asset('public/css/skin-black.css?v=1.2') }}">
@endif
<!-- Data Tables -->
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/plugins/datatables/dataTables.bootstrap.css') }}">
<!-- Select2 -->
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/plugins/select2/select2.min.css') }}">
<!-- App style -->
<link rel="stylesheet" href="{{ asset('public/css/app.css?v=1.0') }}">
<link rel="stylesheet" href="{{ asset('public/css/akaunting-green.css?v=1.0') }}">
<link rel="stylesheet" href="{{ asset('public/css/app.css?v=1.2') }}">
<link rel="stylesheet" href="{{ asset('public/css/akaunting-green.css?v=1.2') }}">

<link rel="shortcut icon" href="{{ asset('public/img/favicon.ico') }}">

Expand Down

0 comments on commit a57f446

Please sign in to comment.