mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Fix Invoice/Estimate template issues and Add Payment Receipt, Custom Payment Modes and Item units
This commit is contained in:
committed by
Mohit Panjwani
parent
56a955befd
commit
4c33a5d88c
@ -145,6 +145,10 @@ Route::group(['middleware' => 'api'], function () {
|
||||
'uses' => 'UsersController@getBootstrap'
|
||||
]);
|
||||
|
||||
Route::resource('payment-methods', 'PaymentMethodController');
|
||||
|
||||
Route::resource('units', 'UnitController');
|
||||
|
||||
|
||||
// Dashboard
|
||||
//----------------------------------
|
||||
@ -190,6 +194,11 @@ Route::group(['middleware' => 'api'], function () {
|
||||
'uses' => 'InvoicesController@sendInvoice'
|
||||
]);
|
||||
|
||||
Route::post('/invoices/clone', [
|
||||
'as' => 'invoices.send',
|
||||
'uses' => 'InvoicesController@cloneInvoice'
|
||||
]);
|
||||
|
||||
Route::post('/invoices/mark-as-paid', [
|
||||
'as' => 'invoices.paid',
|
||||
'uses' => 'InvoicesController@markAsPaid'
|
||||
@ -285,6 +294,11 @@ Route::group(['middleware' => 'api'], function () {
|
||||
'uses' => 'PaymentController@delete'
|
||||
]);
|
||||
|
||||
Route::post('/payments/send', [
|
||||
'as' => 'payments.send',
|
||||
'uses' => 'PaymentController@sendPayment'
|
||||
]);
|
||||
|
||||
Route::resource('payments', 'PaymentController');
|
||||
|
||||
|
||||
@ -373,6 +387,11 @@ Route::group(['middleware' => 'api'], function () {
|
||||
'uses' => 'EnvironmentController@saveMailEnvironment'
|
||||
]);
|
||||
|
||||
Route::post('/test/mail', [
|
||||
'as' => 'admin.test.mail.config',
|
||||
'uses' => 'SettingsController@testEmailConfig'
|
||||
]);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@ -49,6 +49,7 @@ Route::group(['prefix' => 'reports'], function () {
|
||||
|
||||
});
|
||||
|
||||
|
||||
// download invoice pdf with a unique_hash $id
|
||||
// -------------------------------------------------
|
||||
Route::get('/invoices/pdf/{id}', [
|
||||
@ -64,6 +65,14 @@ Route::get('/estimates/pdf/{id}', [
|
||||
'uses' => 'FrontendController@getEstimatePdf'
|
||||
]);
|
||||
|
||||
|
||||
// download payment pdf with a unique_hash $id
|
||||
// -------------------------------------------------
|
||||
Route::get('/payments/pdf/{id}', [
|
||||
'as' => 'get.payment.pdf',
|
||||
'uses' => 'FrontendController@getPaymentPdf'
|
||||
]);
|
||||
|
||||
Route::get('/customer/invoices/pdf/{id}', [
|
||||
'as' => 'get.invoice.pdf',
|
||||
'uses' => 'FrontendController@getCustomerInvoicePdf'
|
||||
|
||||
Reference in New Issue
Block a user