Skip to content

Commit 4f1e2b0

Browse files
more cleanups and removals
1 parent 8388f33 commit 4f1e2b0

File tree

4 files changed

+0
-33
lines changed

4 files changed

+0
-33
lines changed

Modules/Invoice/Http/Controllers/InvoiceController.php

-5
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,4 @@ public function yearlyInvoiceReportExport(Request $request)
202202

203203
return $this->service->yearlyInvoiceReportExport($filters, $request);
204204
}
205-
206-
public function createCustomInvoice()
207-
{
208-
return view('invoice::create-custom-invoice', $this->service->create());
209-
}
210205
}

Modules/Invoice/Resources/views/index.blade.php

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
<div class="d-flex justify-content-between">
3333
<h4 class="m-1 p-1 fz-28">Invoices</h4>
3434
<span class=d-flex>
35-
<a href="{{ route('invoice.create-custom-invoice') }}"
36-
class="btn btn-info text-white m-1 align-self-center">Custom Invoice</a>
3735
<a href="{{ route('invoice.create') }}" class="btn btn-success text-white m-1 align-self-center"><i
3836
class="fa fa-plus mr-1"></i>Add Invoice</a>
3937
</span>

Modules/Invoice/Routes/web.php

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
Route::get('/tax-report', 'InvoiceController@taxReport')->name('invoice.tax-report');
3030
Route::get('/tax-report-export', 'InvoiceController@taxReportExport')->name('invoice.tax-report-export');
3131
Route::get('/create', 'InvoiceController@create')->name('invoice.create');
32-
Route::get('/create-custom-invoice', 'InvoiceController@createCustomInvoice')->name('invoice.create-custom-invoice');
33-
Route::get('/preview-custom-invoice', 'InvoiceController@previewCustomInvoice')->name('invoice.preview-custom-invoice');
3432
Route::get('/dashboard', 'InvoiceController@dashboard')->name('invoice.dashboard');
3533
Route::post('/send-invoice-mail', 'InvoiceController@sendInvoice')->name('invoice.send-invoice-mail');
3634
Route::post('/', 'InvoiceController@store')->name('invoice.store');

Modules/Invoice/Services/InvoiceService.php

-24
Original file line numberDiff line numberDiff line change
@@ -133,30 +133,6 @@ public function defaultFilters()
133133
];
134134
}
135135

136-
public function create()
137-
{
138-
return [
139-
'clients' => $this->getClientsForInvoice(),
140-
'countries' => Country::all(),
141-
'sendInvoiceEmailSubject' => optional(Setting::where([
142-
'module' => 'invoice',
143-
'setting_key' => config('invoice.templates.setting-key.send-invoice.subject'),
144-
])->first())->setting_value,
145-
'sendInvoiceEmailBody' => optional(Setting::where([
146-
'module' => 'invoice',
147-
'setting_key' => config('invoice.templates.setting-key.send-invoice.body'),
148-
])->first())->setting_value,
149-
'invoiceReminderEmailSubject' => optional(Setting::where([
150-
'module' => 'invoice',
151-
'setting_key' => config('invoice.templates.setting-key.invoice-reminder.subject'),
152-
])->first())->setting_value,
153-
'invoiceReminderEmailBody' => optional(Setting::where([
154-
'module' => 'invoice',
155-
'setting_key' => config('invoice.templates.setting-key.invoice-reminder.body'),
156-
])->first())->setting_value,
157-
];
158-
}
159-
160136
public function store($data)
161137
{
162138
$data['receivable_date'] = $data['due_on'];

0 commit comments

Comments
 (0)