Skip to content

Commit

Permalink
Add function to convert Tax Scheme to string. Used by autocustomergro…
Browse files Browse the repository at this point in the history
…up module.
  • Loading branch information
gwharton committed Feb 11, 2025
1 parent 92f200e commit cc70124
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Model/TaxScheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,4 +504,12 @@ public function getSchemeExchangeRate(?int $storeId): float
$storeId
);
}

/**
* @return string
*/
public function __toString(): string
{
return $this->getSchemeId();
}
}

0 comments on commit cc70124

Please sign in to comment.