You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Tax data is served from LaunchDarkly feature flags and displayed on invoices.
233
-
* Country-level tax IDs (like EU VAT, Japanese JCT, etc.) are always displayed
234
-
* when available, regardless of invoice date.
232
+
* Users who have identified their country as one of the ones targeted by
233
+
* one of our tax policies will have a `taxes` with at least a .date.
234
+
* Customers with no country, or from a country we don't have a tax policy
235
+
* for, will have a `taxes` of {}, and the following logic will skip them.
235
236
*
236
-
* Provincial/state-level tax IDs still use date filtering to determine when
237
-
* they should be applied based on local tax policy implementation dates.
237
+
* If taxes.date is defined, and the invoice we're about to print is after
238
+
* that date, we want to add the customer's tax ID to the invoice.
238
239
*
239
-
* The source of truth for all tax data is LaunchDarkly, with examples:
240
+
* If in addition to the above, taxes is defined, it means
241
+
* we have a corporate tax ID for the country and should display that in the left
242
+
* side of the header.
240
243
*
241
-
* EU VAT: Shows both EU VAT number and Switzerland VAT for B2B customers
242
-
* Japanese JCT: Shows Japan JCT tax ID and QI Registration number
243
-
* US/CA: Shows federal tax IDs and state-specific tax IDs when applicable
244
+
* The source of truth for all tax banners is LaunchDarkly, but as an example,
245
+
* as of 2/20/2020 we have the following cases:
246
+
*
247
+
* VAT: Applies only to EU countries; started from 6/1/2019 and we have an EU tax id
248
+
* - [M3-8277] For EU customers, invoices will include VAT for B2C transactions and exclude VAT for B2B transactions. Both VAT numbers will be shown on the invoice template for EU countries.
249
+
* GMT: Applies to both Australia and India, but we only have a tax ID for Australia.
0 commit comments