From a13647b9e2f06f511c3f2332eaf9fe12c45835af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Talbot?= <108630700+fetchfern@users.noreply.github.com> Date: Sat, 4 Oct 2025 00:29:22 +0100 Subject: [PATCH] Negate refund amount (#4481) --- apps/labrinth/src/routes/internal/billing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/labrinth/src/routes/internal/billing.rs b/apps/labrinth/src/routes/internal/billing.rs index 4aefcafb..6ab23bd3 100644 --- a/apps/labrinth/src/routes/internal/billing.rs +++ b/apps/labrinth/src/routes/internal/billing.rs @@ -290,7 +290,7 @@ pub async fn refund_charge( currency_code: charge.currency_code.clone(), accounting_time: Utc::now(), accounting_time_zone: anrok::AccountingTimeZone::Utc, - line_items: vec![anrok::LineItem::new_including_tax_amount(tax_id, refund_amount)], + line_items: vec![anrok::LineItem::new_including_tax_amount(tax_id, -refund_amount)], } } ).await;