Bugfix for autoselection of creditor
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.tilman</groupId>
|
<groupId>de.tilman</groupId>
|
||||||
<artifactId>next-transactions</artifactId>
|
<artifactId>next-transactions</artifactId>
|
||||||
<version>1.5.7</version>
|
<version>1.5.8</version>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$routePara
|
|||||||
// get outstandings (expenses and withdrawals) for all users of the account
|
// get outstandings (expenses and withdrawals) for all users of the account
|
||||||
var promises = new Array($scope.accountUsers.length);
|
var promises = new Array($scope.accountUsers.length);
|
||||||
for (i = 0; i < $scope.accountUsers.length; i++) {
|
for (i = 0; i < $scope.accountUsers.length; i++) {
|
||||||
var resource = $resource('/api/transactions/search/outstandings', { accountId: $scope.account.id, userId: $scope.accountUsers[i].id }).get();
|
var resource = $resource('/api/transactions/search/outstandings', { accountId: $scope.account.id, userId: $scope.accountUsers[i].id, size: 500 }).get();
|
||||||
promises[i] = resource.$promise;
|
promises[i] = resource.$promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,13 +106,7 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$routePara
|
|||||||
|
|
||||||
// if this is selected to be a withdrawal, preselect the current user and disable "no creditor" radio button
|
// if this is selected to be a withdrawal, preselect the current user and disable "no creditor" radio button
|
||||||
if ($scope.transaction.category.name === 'Private Entnahme') {
|
if ($scope.transaction.category.name === 'Private Entnahme') {
|
||||||
var userLabels = document.getElementsByClassName('userLabel');
|
$scope.transaction.creditor = $scope.userinfo._links.self.href;
|
||||||
|
|
||||||
for (i = 0; i < userLabels.length; i++) {
|
|
||||||
if (userLabels[i].innerHTML.indexOf($scope.userinfo.name) >= 0) {
|
|
||||||
userLabels[i].getElementsByTagName('INPUT')[0].checked = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
document.getElementById('noCreditorRadioButton').disabled = true;
|
document.getElementById('noCreditorRadioButton').disabled = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -465,13 +459,9 @@ transactionControllers.controller('ImportListCtrl', [ '$scope', '$resource', '$l
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('$scope.csv.length: ' + $scope.csv.length);
|
|
||||||
|
|
||||||
for (i = 0; i < $scope.csv.length; i++) {
|
for (i = 0; i < $scope.csv.length; i++) {
|
||||||
var j = 0;
|
var j = 0;
|
||||||
|
|
||||||
console.log($scope.csv[i]);
|
|
||||||
|
|
||||||
while (j < $scope.matchers.length) {
|
while (j < $scope.matchers.length) {
|
||||||
var match = true;
|
var match = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user