aboutsummaryrefslogtreecommitdiff
path: root/src/controller
diff options
context:
space:
mode:
authorJoris2021-10-10 21:21:06 +0200
committerJoris2021-10-10 21:21:34 +0200
commit99466c6ceb848cf8147645f25deea89804b7b279 (patch)
treeba184c40a8d30bfc76dcb2882420822c5518e199 /src/controller
parent6e695bf7a0253b4f6d1db78fa4310616d8a1357f (diff)
downloadbudget-99466c6ceb848cf8147645f25deea89804b7b279.tar.gz
budget-99466c6ceb848cf8147645f25deea89804b7b279.tar.bz2
budget-99466c6ceb848cf8147645f25deea89804b7b279.zip
Filter payments by start and end date
Diffstat (limited to 'src/controller')
-rw-r--r--src/controller/payments.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/controller/payments.rs b/src/controller/payments.rs
index 66ec056..42d3e3c 100644
--- a/src/controller/payments.rs
+++ b/src/controller/payments.rs
@@ -106,6 +106,8 @@ pub async fn create(
highlight: Some(id),
user: None,
category: None,
+ start_date: None,
+ end_date: None,
};
utils::redirect(&format!(
"/{}",
@@ -189,6 +191,8 @@ pub async fn update(
highlight: Some(id),
user: None,
category: None,
+ start_date: None,
+ end_date: None,
};
utils::redirect(&format!("/{}", queries::payments_url(query)))
} else {