Skip to content

Commit

Permalink
Revenue/Payment js file enhancement and fixed show page delete button.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Aug 18, 2021
1 parent 2507a86 commit de9a060
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 82 deletions.
2 changes: 1 addition & 1 deletion resources/assets/js/views/banking/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import BulkAction from './../../plugins/bulk-action';
Vue.use(DashboardPlugin);

const app = new Vue({
el: '#app',
el: '#main-body',

mixins: [
Global
Expand Down
34 changes: 0 additions & 34 deletions resources/assets/js/views/purchases/payments.js

This file was deleted.

34 changes: 0 additions & 34 deletions resources/assets/js/views/sales/revenues.js

This file was deleted.

4 changes: 2 additions & 2 deletions resources/views/purchases/payments/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="card">
{!! Form::open([
'route' => 'payments.store',
'id' => 'payment',
'id' => 'transaction',
'@submit.prevent' => 'onSubmit',
'@keydown' => 'form.errors.clear($event.target.name)',
'files' => true,
Expand Down Expand Up @@ -56,5 +56,5 @@
@endsection

@push('scripts_start')
<script src="{{ asset('public/js/purchases/payments.js?v=' . version('short')) }}"></script>
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
@endpush
4 changes: 2 additions & 2 deletions resources/views/purchases/payments/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'files' => true,
'route' => ['payments.update', $payment->id],
'role' => 'form',
'id' => 'payment',
'id' => 'transaction',
'@submit.prevent' => 'onSubmit',
'@keydown' => 'form.errors.clear($event.target.name)',
'class' => 'form-loading-button',
Expand Down Expand Up @@ -80,5 +80,5 @@
@endsection

@push('scripts_start')
<script src="{{ asset('public/js/purchases/payments.js?v=' . version('short')) }}"></script>
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
@endpush
2 changes: 1 addition & 1 deletion resources/views/purchases/payments/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@
@endsection

@push('scripts_start')
<script src="{{ asset('public/js/purchases/payments.js?v=' . version('short')) }}"></script>
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
@endpush
4 changes: 2 additions & 2 deletions resources/views/sales/revenues/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="card">
{!! Form::open([
'route' => 'revenues.store',
'id' => 'revenue',
'id' => 'transaction',
'@submit.prevent' => 'onSubmit',
'@keydown' => 'form.errors.clear($event.target.name)',
'files' => true,
Expand Down Expand Up @@ -56,5 +56,5 @@
@endsection

@push('scripts_start')
<script src="{{ asset('public/js/sales/revenues.js?v=' . version('short')) }}"></script>
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
@endpush
4 changes: 2 additions & 2 deletions resources/views/sales/revenues/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'files' => true,
'route' => ['revenues.update', $revenue->id],
'role' => 'form',
'id' => 'revenue',
'id' => 'transaction',
'@submit.prevent' => 'onSubmit',
'@keydown' => 'form.errors.clear($event.target.name)',
'class' => 'form-loading-button',
Expand Down Expand Up @@ -80,5 +80,5 @@
@endsection

@push('scripts_start')
<script src="{{ asset('public/js/sales/revenues.js?v=' . version('short')) }}"></script>
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
@endpush
4 changes: 2 additions & 2 deletions resources/views/sales/revenues/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<td class="col-md-2 col-lg-3 col-xl-3 d-none d-md-block text-left">
{{ $item->contact->name }}

@if($item->invoice)
@if ($item->invoice)
@if ($item->invoice->status == 'paid')
<el-tooltip content="{{ $item->invoice->document_number }} / {{ trans('documents.statuses.paid') }}"
effect="success"
Expand Down Expand Up @@ -125,5 +125,5 @@
@endsection

@push('scripts_start')
<script src="{{ asset('public/js/sales/revenues.js?v=' . version('short')) }}"></script>
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
@endpush
2 changes: 0 additions & 2 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ mix
.js('resources/assets/js/views/common/reports.js', 'public/js/common')

// Sales
.js('resources/assets/js/views/sales/revenues.js', 'public/js/sales')
.js('resources/assets/js/views/sales/customers.js', 'public/js/sales')

// Purchases
.js('resources/assets/js/views/purchases/payments.js', 'public/js/purchases')
.js('resources/assets/js/views/purchases/vendors.js', 'public/js/purchases')

// Install
Expand Down

0 comments on commit de9a060

Please sign in to comment.