mirror of
https://github.com/bitwarden/server.git
synced 2025-07-07 10:55:43 -05:00
Billing addr line1 fix, pr feedback
This commit is contained in:
@ -26,9 +26,13 @@
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(BillingAddressCountry) ||
|
||||
string.IsNullOrWhiteSpace(TaxIdNumber))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(_taxIdType))
|
||||
{
|
||||
return _taxIdType;
|
||||
}
|
||||
|
||||
switch (BillingAddressCountry)
|
||||
{
|
||||
@ -44,7 +48,9 @@
|
||||
case "CA":
|
||||
// May break for those in Québec given the assumption of QST
|
||||
if (BillingAddressState?.Contains("bec") ?? false)
|
||||
{
|
||||
_taxIdType = "ca_qst";
|
||||
}
|
||||
_taxIdType = "ca_bn";
|
||||
break;
|
||||
case "CL":
|
||||
|
Reference in New Issue
Block a user