mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Remove transactions now works.
This commit is contained in:
parent
11280e473d
commit
78ab1e200a
@ -37,8 +37,8 @@ class TransactionJournal implements TransactionJournalInterface, CUD, CommonData
|
|||||||
*/
|
*/
|
||||||
public function destroy(Ardent $model)
|
public function destroy(Ardent $model)
|
||||||
{
|
{
|
||||||
// TODO: Implement destroy() method.
|
$model->delete();
|
||||||
throw new NotImplementedException;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,13 +23,13 @@
|
|||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<input type="submit" name="submit" value="Delete transaction" class="btn btn-danger" />
|
<input type="submit" name="submit" value="Delete transaction" class="btn btn-danger" />
|
||||||
@if($journal->transactiontype->type == 'Withdrawal')
|
@if($journal->transactiontype->type == 'Withdrawal')
|
||||||
<a href="{{route('transactions.expenses')}}" class="btn-default btn">Cancel</a>
|
<a href="{{route('transactions.index','withdrawal')}}" class="btn-default btn">Cancel</a>
|
||||||
@endif
|
@endif
|
||||||
@if($journal->transactiontype->type == 'Deposit')
|
@if($journal->transactiontype->type == 'Deposit')
|
||||||
<a href="{{route('transactions.revenue')}}" class="btn-default btn">Cancel</a>
|
<a href="{{route('transactions.index','deposit')}}" class="btn-default btn">Cancel</a>
|
||||||
@endif
|
@endif
|
||||||
@if($journal->transactiontype->type == 'Transfer')
|
@if($journal->transactiontype->type == 'Transfer')
|
||||||
<a href="{{route('transactions.transfers')}}" class="btn-default btn">Cancel</a>
|
<a href="{{route('transactions.index','transfers')}}" class="btn-default btn">Cancel</a>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user