♿ (billing) Add HU VAT option
This commit is contained in:
@ -340,7 +340,14 @@ export const taxIdTypes = [
|
||||
code: 'HU TIN',
|
||||
name: 'Hungary',
|
||||
emoji: '🇭🇺',
|
||||
placeholder: '12345678',
|
||||
placeholder: '13804079-2-13',
|
||||
},
|
||||
{
|
||||
type: 'hu_vat',
|
||||
code: 'HU VAT',
|
||||
name: 'Hungary',
|
||||
emoji: '🇭🇺',
|
||||
placeholder: 'HU12345678',
|
||||
},
|
||||
{
|
||||
type: 'id_npwp',
|
||||
|
@ -24,24 +24,27 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
if (!workspaceId) return badRequest(res)
|
||||
const typebotIds = req.query.typebotIds as string[]
|
||||
const typebots = await prisma.typebot.findMany({
|
||||
where: {
|
||||
OR: [
|
||||
{
|
||||
workspace: { members: { some: { userId: user.id } } },
|
||||
id: { in: typebotIds },
|
||||
isArchived: { not: true },
|
||||
},
|
||||
{
|
||||
id: { in: typebotIds },
|
||||
collaborators: {
|
||||
some: {
|
||||
userId: user.id,
|
||||
},
|
||||
where:
|
||||
process.env.ADMIN_EMAIL === user.email
|
||||
? undefined
|
||||
: {
|
||||
OR: [
|
||||
{
|
||||
workspace: { members: { some: { userId: user.id } } },
|
||||
id: { in: typebotIds },
|
||||
isArchived: { not: true },
|
||||
},
|
||||
{
|
||||
id: { in: typebotIds },
|
||||
collaborators: {
|
||||
some: {
|
||||
userId: user.id,
|
||||
},
|
||||
},
|
||||
isArchived: { not: true },
|
||||
},
|
||||
],
|
||||
},
|
||||
isArchived: { not: true },
|
||||
},
|
||||
],
|
||||
},
|
||||
orderBy: { createdAt: 'desc' },
|
||||
select: { name: true, id: true, groups: true, variables: true },
|
||||
})
|
||||
|
@ -826,6 +826,9 @@
|
||||
"additionalInformation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
@ -1146,9 +1149,13 @@
|
||||
"Equal to",
|
||||
"Not equal",
|
||||
"Contains",
|
||||
"Does not contain",
|
||||
"Greater than",
|
||||
"Less than",
|
||||
"Is set"
|
||||
"Is set",
|
||||
"Is empty",
|
||||
"Starts with",
|
||||
"Ends with"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
@ -1584,9 +1591,13 @@
|
||||
"Equal to",
|
||||
"Not equal",
|
||||
"Contains",
|
||||
"Does not contain",
|
||||
"Greater than",
|
||||
"Less than",
|
||||
"Is set"
|
||||
"Is set",
|
||||
"Is empty",
|
||||
"Starts with",
|
||||
"Ends with"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
@ -3521,6 +3532,9 @@
|
||||
"additionalInformation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
|
Reference in New Issue
Block a user