The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add VAT reverse charge
Kiran Kbb6f6590070a
diff --git a/apps/web/app/(ee)/app.dub.co/invoices/[invoiceId]/route.tsx b/apps/web/app/(ee)/app.dub.co/invoices/[invoiceId]/route.tsxindex d28bd1fcaf..1d7c3a0a4d 100644--- a/apps/web/app/(ee)/app.dub.co/invoices/[invoiceId]/route.tsx+++ b/apps/web/app/(ee)/app.dub.co/invoices/[invoiceId]/route.tsx@@ -5,6 +5,7 @@ import { prisma } from "@dub/prisma";import {currencyFormatter,DUB_WORDMARK,+ EU_COUNTRY_CODES,formatDate,OG_AVATAR_URL,} from "@dub/utils";@@ -148,6 +149,18 @@ export const GET = withSession(async ({ session, params }) => {maximumFractionDigits: 2,}),},+ // if customer is in EU, add VAT reverse charge note:+ // Reverse charge: VAT to be accounted for by the recipient under Article 196 of Directive 2006/112/EC.+ ...(customer?.address?.country &&+ EU_COUNTRY_CODES.includes(customer.address.country)+ ? [+ {+ label: "VAT reverse charge",+ value:+ "VAT to be accounted for by the recipient under Article 196 of Directive 2006/112/EC.",+ },+ ]+ : []),];const addresses = [