Skip to content

Commit

Permalink
Merge pull request civicrm#28459 from eileenmcnaughton/deprecate
Browse files Browse the repository at this point in the history
Stop using & deprectate `getSalesTaxTerm`
  • Loading branch information
mattwire authored Dec 4, 2023
2 parents cef269a + 83085da commit 0e4a484
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CRM/Financial/Form/SalesTaxTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ trait CRM_Financial_Form_SalesTaxTrait {

/**
* Assign the sales tax term to the template.
*
* @deprecated since 5.69 will be removed around 5.80
*/
public function assignSalesTaxTermToTemplate() {
CRM_Core_Error::deprecatedFunctionWarning('assign the setting');
$this->assign('taxTerm', $this->getSalesTaxTerm());
}

Expand Down Expand Up @@ -47,7 +50,7 @@ public function getSalesTaxTerm() {
*/
public function assignSalesTaxMetadataToTemplate() {
$this->assignSalesTaxRates();
$this->assignSalesTaxTermToTemplate();
$this->assign('taxTerm', $this->getSalesTaxTerm());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion CRM/Price/Page/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function browse(): void {
$this->assign('customOption', $customOption);
$this->assign('sid', $this->_sid);
$this->assign('isEvent', $isEvent);
$this->assignSalesTaxTermToTemplate();
$this->assign('taxTerm', $this->getSalesTaxTerm());
}

/**
Expand Down

0 comments on commit 0e4a484

Please sign in to comment.