Skip to content

Firefly III: a personal finances manager

Fix #12965

James Cole1da8a034de26
diff --git a/changelog.md b/changelog.md
index 96224c0a37..d459f89c3c 100644
--- a/changelog.md
+++ b/changelog.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
+## v6.7.8 - 2026-10-xx
+
+### Fixed
+
+- #12965
+
## v6.7.7 - 2026-10-04
<!-- summary: This release fixes various bugs in the new layout. -->
diff --git a/resources/assets/v3/js/pages/transactions/shared/changed-amount.js b/resources/assets/v3/js/pages/transactions/shared/changed-amount.js
index 42186e0b2a..41b4b1e5d6 100644
--- a/resources/assets/v3/js/pages/transactions/shared/changed-amount.js
+++ b/resources/assets/v3/js/pages/transactions/shared/changed-amount.js
@@ -22,13 +22,15 @@ export function changedAmount(e) {
if (null !== e) {
let index = parseInt(e.target.dataset.index);
let value = e.target.value;
+ if('-' === value.charAt(0)) {
+ value = value.substring(1);
+ }
// switch commas for dots.
let len = (value.match(/,/g) || []).length;
if (1 === len) {
value = value.replace(",", ".");
- this.entries[index].amount = value;
}
-
+ this.entries[index].amount = value;
}
this.groupProperties.totalAmount = 0;
diff --git a/resources/assets/v3/js/pages/transactions/shared/changed-foreign-amount.js b/resources/assets/v3/js/pages/transactions/shared/changed-foreign-amount.js
index 4341c3cb96..ce7bece9bc 100644
--- a/resources/assets/v3/js/pages/transactions/shared/changed-foreign-amount.js
+++ b/resources/assets/v3/js/pages/transactions/shared/changed-foreign-amount.js
@@ -22,12 +22,14 @@ export function changedForeignAmount(e) {
if (null !== e) {
let index = parseInt(e.target.dataset.index);
let value = e.target.value;
+ if('-' === value.charAt(0)) {
+ value = value.substring(1);
+ }
// switch commas for dots.
let len = (value.match(/,/g) || []).length;
if (1 === len) {
value = value.replace(",", ".");
- this.entries[index].foreign_amount = value;
}
-
+ this.entries[index].foreign_amount = value;
}
}
diff --git a/resources/views/partials/form/transaction/amount.blade.php b/resources/views/partials/form/transaction/amount.blade.php
index c3a39482c4..156fdd22d8 100644
--- a/resources/views/partials/form/transaction/amount.blade.php
+++ b/resources/views/partials/form/transaction/amount.blade.php
@@ -6,7 +6,7 @@
<!-- actual amount -->
<div class="col-sm-9">
<div class="input-group">
- <input type="number" step="any" min="0"
+ <input type="text" step="any" min="0" inputmode="decimal"
:id="'amount_' + index"
:data-index="index"
x-bind:disabled="transaction.reconciled"
diff --git a/resources/views/partials/form/transaction/foreign-amount.blade.php b/resources/views/partials/form/transaction/foreign-amount.blade.php
index 147396316d..70677f3bcd 100644
--- a/resources/views/partials/form/transaction/foreign-amount.blade.php
+++ b/resources/views/partials/form/transaction/foreign-amount.blade.php
@@ -26,7 +26,7 @@
<label class="small form-label">{{ __('firefly.amount_destination_account') }}</label>
</template>
<div class="input-group">
- <input type="number" step="any" min="0"
+ <input type="text" step="any" min="0" inputmode="decimal"
:id="'foreign_amount_' + index"
:data-index="index"
x-bind:disabled="transaction.reconciled"