Version 1.0.3
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit

- Modify planned payment
- minor bug fixes
This commit is contained in:
2025-01-26 14:53:16 +01:00
parent 34098c9757
commit 2d69a4b018
22 changed files with 618 additions and 107 deletions

View File

@@ -1,4 +1,4 @@
using System.Diagnostics;
using System.Globalization;
using WheresMyMoney.Maui.Core;
namespace WheresMyMoney.Maui;
@@ -13,7 +13,8 @@ public partial class AddPlannedPaymentPage : ContentPage
private async void Add_OnClicked(object? sender, EventArgs e)
{
if (!decimal.TryParse(AmountEntry.Text, out decimal amount)) return;
if (!decimal.TryParse(AmountEntry.Text, NumberStyles.Currency, CultureInfo.CurrentCulture,
out var amount)) return;
var isSubscription = SubscriptionSwitch.IsToggled;
var every = -1;
var reoccurenceType = (ReoccurenceType)RepeatPicker.SelectedIndex;
@@ -44,6 +45,6 @@ public partial class AddPlannedPaymentPage : ContentPage
private void EveryEntry_OnCompleted(object? sender, EventArgs e)
{
AmountEntry.Focus();
this.AmountEntry.Focus();
}
}