Invoice items say what the service is
'Sorsfonalak – Páros' does not identify the service, as the VAT act (169. § e) asks. The item is now e.g. 'Asztrológiai elemzéscsomag – Páros', unit 'csomag', with the package's contents as its comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -210,9 +210,10 @@ async fn complete(state: &AppState, session: &stripe::Session) -> Result<bool, A
|
||||
// to the tax authority).
|
||||
if live {
|
||||
let buyer = invoices::Buyer::from_stripe(session.customer_details.as_ref().unwrap_or(&Value::Null), None);
|
||||
let item = format!("Sorsfonalak – {}", package.name);
|
||||
let (item, comment) = package.invoice_item();
|
||||
let gross = amount_huf.unwrap_or(i64::from(price_huf));
|
||||
invoices::queue(&mut tx, &session.id, user_id, &buyer, &item, gross, state.config.invoice_vat).await?;
|
||||
invoices::queue(&mut tx, &session.id, user_id, &buyer, (&item, &comment), gross, state.config.invoice_vat)
|
||||
.await?;
|
||||
}
|
||||
tx.commit().await?;
|
||||
tracing::info!(user = ?user_id, package = %package_id, session = %session.id, "package paid");
|
||||
|
||||
Reference in New Issue
Block a user