Fix Invoice/Estimate template issues and Add Payment Receipt, Custom Payment Modes and Item units

This commit is contained in:
Jay Makwana
2020-01-05 07:22:36 +00:00
committed by Mohit Panjwani
parent 56a955befd
commit 4c33a5d88c
112 changed files with 5050 additions and 331 deletions

View File

@ -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'
]);
});
});

View File

@ -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'