Commit 4f1e2b0 1 parent 8388f33 commit 4f1e2b0 Copy full SHA for 4f1e2b0
File tree 4 files changed +0
-33
lines changed
4 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,4 @@ public function yearlyInvoiceReportExport(Request $request)
202
202
203
203
return $ this ->service ->yearlyInvoiceReportExport ($ filters , $ request );
204
204
}
205
-
206
- public function createCustomInvoice ()
207
- {
208
- return view ('invoice::create-custom-invoice ' , $ this ->service ->create ());
209
- }
210
205
}
Original file line number Diff line number Diff line change 32
32
<div class =" d-flex justify-content-between" >
33
33
<h4 class =" m-1 p-1 fz-28" >Invoices</h4 >
34
34
<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 >
37
35
<a href =" {{ route (' invoice.create' ) } }" class =" btn btn-success text-white m-1 align-self-center" ><i
38
36
class =" fa fa-plus mr-1" ></i >Add Invoice</a >
39
37
</span >
Original file line number Diff line number Diff line change 29
29
Route::get ('/tax-report ' , 'InvoiceController@taxReport ' )->name ('invoice.tax-report ' );
30
30
Route::get ('/tax-report-export ' , 'InvoiceController@taxReportExport ' )->name ('invoice.tax-report-export ' );
31
31
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 ' );
34
32
Route::get ('/dashboard ' , 'InvoiceController@dashboard ' )->name ('invoice.dashboard ' );
35
33
Route::post ('/send-invoice-mail ' , 'InvoiceController@sendInvoice ' )->name ('invoice.send-invoice-mail ' );
36
34
Route::post ('/ ' , 'InvoiceController@store ' )->name ('invoice.store ' );
Original file line number Diff line number Diff line change @@ -133,30 +133,6 @@ public function defaultFilters()
133
133
];
134
134
}
135
135
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
-
160
136
public function store ($ data )
161
137
{
162
138
$ data ['receivable_date ' ] = $ data ['due_on ' ];
You can’t perform that action at this time.
0 commit comments