diff options
Diffstat (limited to 'lib/vendors/repository.ts')
| -rw-r--r-- | lib/vendors/repository.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vendors/repository.ts b/lib/vendors/repository.ts index 41ac468b..c5362ccf 100644 --- a/lib/vendors/repository.ts +++ b/lib/vendors/repository.ts @@ -355,3 +355,9 @@ export async function countRfqHistory( return count; } +export const getTaxIdByVendorId = async (id: string): Promise<string | null> => { + const numericId = Number(id); + const vendor = await getVendorById(numericId); + if (!vendor) return null; + return vendor.taxId; +}
\ No newline at end of file |
