-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Individual) add getInventoryDetailsSQL event handler
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
modules/coreBOSTax/changesets/addTaxCalculationgetInventoryDetailsSQL.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/************************************************************************************************* | ||
* Copyright 2024 JPL TSolucio, S.L. -- This file is a part of TSOLUCIO coreBOS Customizations. | ||
* Licensed under the vtiger CRM Public License Version 1.1 (the "License"); you may not use this | ||
* file except in compliance with the License. You can redistribute it and/or modify it | ||
* under the terms of the License. JPL TSolucio, S.L. reserves all rights not expressly | ||
* granted by the License. coreBOS distributed by JPL TSolucio S.L. is distributed in | ||
* the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Unless required by | ||
* applicable law or agreed to in writing, software distributed under the License is | ||
* distributed on an "AS IS" BASIS, WITHOUT ANY WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. You may obtain a copy of the License | ||
* at <http://corebos.org/documentation/doku.php?id=en:devel:vpl11> | ||
*************************************************************************************************/ | ||
|
||
class addTaxCalculationgetInventoryDetailsSQL extends cbupdaterWorker { | ||
|
||
public function applyChange() { | ||
if ($this->hasError()) { | ||
$this->sendError(); | ||
} | ||
if ($this->isApplied()) { | ||
$this->sendMsg('Changeset '.get_class($this).' already applied!'); | ||
} else { | ||
require_once 'include/events/include.inc'; | ||
include_once 'vtlib/Vtiger/Module.php'; | ||
global $adb; | ||
$em = new VTEventsManager($adb); | ||
$em->registerHandler('corebos.filter.TaxCalculation.getInventoryDetailsSQL', 'modules/coreBOSTax/coreBOSTaxHandler.php', 'coreBOSTaxEvents'); | ||
$this->sendMsg('Changeset '.get_class($this).' applied!'); | ||
$this->markApplied(false); | ||
} | ||
$this->finishExecution(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters