Skip to content
Snippets Groups Projects
Commit 84529082 authored by chaitanya's avatar chaitanya
Browse files

E_ALL cleanups in Services module

parent 88619ded
No related branches found
No related tags found
2 merge requests!1233E_ALL fixes across modules for PHP 8.x,!1205E_All cleanups in Service module
......@@ -184,8 +184,7 @@ class Products_Record_Model extends Vtiger_Record_Model {
$taxTotal = 0;
for($i=0; $i<$taxCount; $i++) {
$taxValue = isset($productTaxes[$i]['percentage']) ? $productTaxes[$i]['percentage'] : array();
$taxValue = isset($productTaxes[$i]['percentage']) && is_numeric($productTaxes[$i]['percentage']) ? $productTaxes[$i]['percentage'] : 0;
$taxAmount = $totalAfterDiscount * $taxValue / 100;
$taxTotal = $taxTotal + $taxAmount;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment