close #58 Fixed: Bill & Invoice payment delete not working
This commit is contained in:
parent
dabf76a14a
commit
731be89883
@ -228,7 +228,7 @@
|
||||
{!! Form::open([
|
||||
'id' => 'invoice-payment-' . $payment->id,
|
||||
'method' => 'DELETE',
|
||||
'url' => ['incomes/invoices/paymentDestroy', $payment->id],
|
||||
'url' => ['incomes/invoices/payment', $payment->id],
|
||||
'style' => 'display:inline'
|
||||
]) !!}
|
||||
{!! Form::button('<i class="fa fa-trash-o" aria-hidden="true"></i> ' . trans('general.delete'), array(
|
||||
|
@ -229,7 +229,7 @@
|
||||
{!! Form::open([
|
||||
'id' => 'bill-payment-' . $payment->id,
|
||||
'method' => 'DELETE',
|
||||
'url' => ['expenses/bills/paymentDestroy', $payment->id],
|
||||
'url' => ['expenses/bills/payment', $payment->id],
|
||||
'style' => 'display:inline'
|
||||
]) !!}
|
||||
{!! Form::button('<i class="fa fa-trash-o" aria-hidden="true"></i> ' . trans('general.delete'), array(
|
||||
|
@ -232,7 +232,7 @@
|
||||
{!! Form::open([
|
||||
'id' => 'invoice-payment-' . $payment->id,
|
||||
'method' => 'DELETE',
|
||||
'url' => ['incomes/invoices/paymentDestroy', $payment->id],
|
||||
'url' => ['incomes/invoices/payment', $payment->id],
|
||||
'style' => 'display:inline'
|
||||
]) !!}
|
||||
{!! Form::button('<i class="fa fa-trash-o" aria-hidden="true"></i> ' . trans('general.delete'), array(
|
||||
|
@ -47,7 +47,7 @@ Route::group(['middleware' => 'language'], function () {
|
||||
Route::get('invoices/{id}/print', 'Incomes\Invoices@printInvoice');
|
||||
Route::get('invoices/{id}/pdf', 'Incomes\Invoices@pdfInvoice');
|
||||
Route::post('invoices/payment', 'Incomes\Invoices@payment');
|
||||
Route::delete('invoices/{id}/paymentDestroy', 'Incomes\Invoices@paymentDestroy');
|
||||
Route::delete('invoices/payment/{payment}', 'Incomes\Invoices@paymentDestroy');
|
||||
Route::resource('invoices', 'Incomes\Invoices');
|
||||
Route::resource('revenues', 'Incomes\Revenues');
|
||||
});
|
||||
@ -57,7 +57,7 @@ Route::group(['middleware' => 'language'], function () {
|
||||
Route::get('bills/{id}/print', 'Expenses\Bills@printBill');
|
||||
Route::get('bills/{id}/pdf', 'Expenses\Bills@pdfBill');
|
||||
Route::post('bills/payment', 'Expenses\Bills@payment');
|
||||
Route::delete('bills/{id}/paymentDestroy', 'Expenses\Bills@paymentDestroy');
|
||||
Route::delete('bills/payment/{payment}', 'Expenses\Bills@paymentDestroy');
|
||||
Route::resource('bills', 'Expenses\Bills');
|
||||
Route::get('vendors/currency', 'Expenses\Vendors@currency');
|
||||
Route::resource('vendors', 'Expenses\Vendors');
|
||||
|
Loading…
x
Reference in New Issue
Block a user