-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(journal): allow users to edit transaction type (#1616)
This commit allows a user to edit the transaction type in the Posting Journal. Editing the Transaction Type is important to make proper reports. Editing is supported via a dropdown on the Posting Journal page.
- Loading branch information
1 parent
0856853
commit 6bc89ba
Showing
6 changed files
with
94 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
client/src/modules/journal/templates/transaction_type.edit.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="ui-grid-cell-contents"> | ||
<div ng-show="grid.appScope.transactions.isEditing()"> | ||
<!--remove the transaction type--> | ||
<a ng-click="grid.appScope.removeTransactionType(row.entity)" class="text-danger pull-right" href=""> | ||
<i class="fa fa-trash"></i> | ||
</a> | ||
|
||
<!--select transaction type--> | ||
<ui-select | ||
style="width: 90%;" | ||
name="type_id" | ||
ng-model="row.entity.origin_id" | ||
ng-change="grid.appScope.editTransactionType(row.entity)" | ||
append-to-body="true"> | ||
|
||
<ui-select-match placeholder="{{ 'FORM.SELECT.TRANSFER_TYPE' | translate }}"> | ||
<span translate>{{$select.selected.text}}</span> | ||
</ui-select-match> | ||
|
||
<ui-select-choices | ||
ui-select-focus-patch | ||
repeat="item.id as item in grid.appScope.typeList | filter:{ 'hrText' : $select.search }" | ||
group-by="'type'"> | ||
<div ng-bind-html="item.hrText | highlight: $select.search"></div> | ||
</ui-select-choices> | ||
</ui-select> | ||
</div> | ||
|
||
<div ng-hide="grid.appScope.transactions.isEditing()"> | ||
{{ grid.appScope.mapOrigins[row.entity.origin_id] }} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="ui-grid-cell-contents"> | ||
{{ grid.appScope.mapOrigins[row.entity.origin_id] }} | ||
</div> |