1
0
mirror of https://github.com/bitwarden/server synced 2026-01-16 23:43:22 +00:00
Files
server/src/Sql/dbo/Stored Procedures/TaxRate_ReadByLocation.sql
Addison Beck b877c25234 Implemented tax collection for subscriptions (#1017)
* Implemented tax collection for subscriptions

* Cleanup for Sales Tax

* Cleanup for Sales Tax

* Changes a constraint to an index for checking purposes

* Added and implemented a ReadById method for TaxRate

* Code review fixes for Tax Rate implementation

* Code review fixes for Tax Rate implementation

* Made the SalesTax migration script rerunnable
2020-12-04 12:05:16 -05:00

13 lines
267 B
Transact-SQL

CREATE PROCEDURE [dbo].[TaxRate_ReadByLocation]
@Country VARCHAR(50),
@PostalCode VARCHAR(10)
AS
BEGIN
SET NOCOUNT ON
SELECT * FROM [dbo].[TaxRate]
WHERE Active = 1
AND [Country] = @Country
AND [PostalCode] = @PostalCode
END