mirror of
https://github.com/modrinth/code.git
synced 2026-07-31 21:26:40 +00:00
Negate refund amount (#4481)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user