Skip to content

Commit

Permalink
Merge pull request #81 from snags88/fix-constant
Browse files Browse the repository at this point in the history
[Bugfix] Replace `Constants` namespace with correct constant
  • Loading branch information
ted-spence-avalara authored Sep 10, 2018
2 parents 9227a1d + ab263d5 commit d4e6188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TransactionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function withCommit()
*/
public function withDiagnostics()
{
$this->_model['debugLevel'] = Constants::TAXDEBUGLEVEL_DIAGNOSTIC;
$this->_model['debugLevel'] = TaxDebugLevel::C_DIAGNOSTIC;
return $this;
}

Expand Down Expand Up @@ -354,7 +354,7 @@ public function withTaxOverride($type, $reason, $taxAmount, $taxDate)
public function withLineTaxOverride($type, $reason, $taxAmount, $taxDate)
{
// Address the DateOverride constraint.
if (($type == Constants::TAXOVERRIDETYPE_TAXDATE) && (empty($taxDate))) {
if (($type == TaxOverrideType::C_TAXDATE) && (empty($taxDate))) {
throw new Exception("A valid date is required for a Tax Date Tax Override.");
}

Expand Down

0 comments on commit d4e6188

Please sign in to comment.