add notes

This commit is contained in:
JMARyA 2024-09-21 01:38:22 +02:00
parent b468aab088
commit 30b6f6a7b3
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
5 changed files with 15 additions and 3 deletions

View file

@ -21,6 +21,7 @@ pub struct SupplyForm {
price: String,
origin: Option<String>,
location: Option<String>,
note: Option<String>,
}
/// Route for supply action. Creates a new Transaction for the specified Item Variant.
@ -47,6 +48,7 @@ pub async fn supply_route(
.map_err(|()| api_error("Price malformed"))?,
form.origin.as_deref(),
form.location.as_deref(),
form.note.as_deref(),
)
.await;