Set version to 1.12.1, and fixed false positive with duplicate detection when editing existing transactions.

This commit is contained in:
Andrew Lalis 2024-05-30 16:04:54 -04:00
parent e4783e5a47
commit 20eed2108f
5 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
<groupId>com.andrewlalis</groupId>
<artifactId>perfin</artifactId>
<version>1.12.0</version>
<version>1.12.1</version>
<properties>
<maven.compiler.source>21</maven.compiler.source>

View File

@ -24,7 +24,7 @@ module_path="$module_path:target/modules/h2-2.2.224.jar"
jpackage \
--name "Perfin" \
--app-version "1.11.0" \
--app-version "1.12.1" \
--description "Desktop application for personal finance. Add your accounts, track transactions, and store receipts, invoices, and more." \
--icon design/perfin-logo_256.png \
--vendor "Andrew Lalis" \

View File

@ -12,7 +12,7 @@ $modulePath = "$modulePath;target\modules\h2-2.2.224.jar"
jpackage `
--name "Perfin" `
--app-version "1.11.0" `
--app-version "1.12.1" `
--description "Desktop application for personal finance. Add your accounts, track transactions, and store receipts, invoices, and more." `
--icon design\perfin-logo_256.ico `
--vendor "Andrew Lalis" `

View File

@ -348,7 +348,7 @@ public class EditTransactionController implements RouteSelectionListener {
}
});
AsyncValidationFunction<BasicTransactionInfo> validationFunction = info -> {
if (info == null) return CompletableFuture.completedFuture(ValidationResult.valid());
if (info == null || transaction != null) return CompletableFuture.completedFuture(ValidationResult.valid());
return Profile.getCurrent().dataSource().mapRepoAsync(
TransactionRepository.class,
repo -> repo.findDuplicates(info.timestamp(), info.amount(), info.currency())

View File

@ -27,7 +27,7 @@
<!-- App footer -->
<bottom>
<HBox styleClass="std-padding,std-spacing">
<Label text="Perfin Version 1.11.0"/>
<Label text="Perfin Version 1.12.1"/>
<AnchorPane>
<Label text="© 2024 Andrew Lalis" styleClass="small-font,secondary-color-text-fill" AnchorPane.topAnchor="0" AnchorPane.bottomAnchor="0"/>
</AnchorPane>