From 6e9305d4e6e319e18ba0ec0b15adcf83cb19975c Mon Sep 17 00:00:00 2001 From: despiegk Date: Sat, 19 Apr 2025 11:32:36 +0200 Subject: [PATCH] ... --- herodb/src/models/biz/invoice.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/herodb/src/models/biz/invoice.rs b/herodb/src/models/biz/invoice.rs index e4030c1..5c66257 100644 --- a/herodb/src/models/biz/invoice.rs +++ b/herodb/src/models/biz/invoice.rs @@ -27,15 +27,17 @@ pub struct Payment { pub amount: Currency, pub date: DateTime, pub method: String, + pub comment: String, } impl Payment { /// Create a new payment - pub fn new(amount: Currency, method: String) -> Self { + pub fn new(amount: Currency, method: String, comment: String) -> Self { Self { amount, date: Utc::now(), method, + comment, } } }