sum up expenses and withdrawals

This commit is contained in:
2016-04-20 16:16:32 +02:00
parent b0d73927e5
commit 9749a849f0
4 changed files with 48 additions and 14 deletions
@@ -34,8 +34,14 @@
</tr>
<tr>
<td align='right'>Auslage:</td>
<td><label class='userLabel'><input name='expenseBy' type='radio' checked='checked' />Keine</label> <label
ng-repeat="user in accountUsers" class='userLabel'><input name='expenseBy' type='radio' />{{user.name}}</label></td>
<td>
<!-- label class='userLabel'><input name='expenseBy' ng-model='transaction.creditor' ng-value='none' type='radio' checked='checked' />Keine</label -->
<!-- label ng-repeat="user in accountUsers" class='userLabel'><input name='expenseBy' ng-model='$parent.transaction.creditor' ng-value='{{user.name}}' type='radio' />{{user.name}}</label -->
<label class='userLabel'><input id='noCreditorRadioButton' name='expenseBy' ng-model='transaction.creditor' type='radio' value='' checked='checked' />Keine</label>
<label class='userLabel' ng-repeat="user in accountUsers"><input name='expenseBy' ng-model='$parent.transaction.creditor' type='radio' value="{{user._links.self.href}}" />{{user.name}}</label>
</td>
</tr>
<tr>
<td align='center' colspan='2'><input type="submit" ng-disabled="form.amount.$error.pattern" /></td>
@@ -58,8 +64,8 @@
</tr>
</table>
<div style="margin: auto; width: 30 em; text-align: center;">
<span ng-repeat="user in accountUsers">{{user.name}} {{user.outstandings}}&nbsp;<br/></span>
<div style="margin-top: 2em; text-align: center;">
<span ng-repeat="user in accountUsers">{{user.name}} {{user.outstandings | number : 2}}&nbsp;<br/></span>
</div>
<!-- div>