Skip to content

Firefly III: a personal finances manager

Fix #1670

James Cole38d58f0354e7
diff --git a/app/Api/V1/Requests/PiggyBankRequest.php b/app/Api/V1/Requests/PiggyBankRequest.php
index 30bf4e8dfe..3024b0eac9 100644
--- a/app/Api/V1/Requests/PiggyBankRequest.php
+++ b/app/Api/V1/Requests/PiggyBankRequest.php
@@ -77,7 +77,7 @@ class PiggyBankRequest extends Request
'target_amount' => 'required|numeric|more:0',
'current_amount' => 'numeric|more:0|lte:target_amount',
'start_date' => 'date|nullable',
- 'target_date' => 'date|nullable',
+ 'target_date' => 'date|nullable|after:start_date',
'notes' => 'max:65000',
];