Bugfix for amountToNumber()
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.tilman</groupId>
|
||||
<artifactId>next-transactions</artifactId>
|
||||
<version>1.5.8</version>
|
||||
<version>1.5.9</version>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
var transactionControllers = angular.module('transactionControllers', ['ngResource']);
|
||||
|
||||
function amountToNumber(amount) {
|
||||
var number = amount.toString().replace(',', '.');
|
||||
var number = amount.toString().replace('.', '').replace(',', '.');
|
||||
if (number.charAt(0) !== '+' && number.charAt(0) !== '-') {
|
||||
number = '-' + number;
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<tr>
|
||||
<th style="width: 5%;">Wertstellung</th>
|
||||
<th style="width: 8%;">Typ</th>
|
||||
<th style="width: 41%;">Text</th>
|
||||
<th style="width: 5%;">Betrag</th>
|
||||
<th style="width: 40%;">Text</th>
|
||||
<th style="width: 6%;">Betrag</th>
|
||||
<th class="spacer"></th>
|
||||
<th style="width: 14%;">Kategorie</th>
|
||||
<th style="width: 14%;">Notiz</th>
|
||||
@@ -20,7 +20,7 @@
|
||||
<td>{{line[1]}}</td>
|
||||
<td>{{line[2]}}</td>
|
||||
<td>{{line[3]}}</td>
|
||||
<td align="right">{{line[4]}} €</td>
|
||||
<td align="right">{{line[4]}} €</td>
|
||||
<td class="spacer"></td>
|
||||
<td>
|
||||
<select
|
||||
|
||||
Reference in New Issue
Block a user