diff --git a/include/utils/EditViewUtils.php b/include/utils/EditViewUtils.php index 857e05d40a5a0dcd5448ae44794fc93793714350..8317f75db1ed5bb79679b2d20ebd123ff268eaf4 100755 --- a/include/utils/EditViewUtils.php +++ b/include/utils/EditViewUtils.php @@ -324,10 +324,12 @@ function getAssociatedProducts($module,$focus,$seid='') //condition to avoid this function call when create new PO/SO/Quotes/Invoice from Product module if($focus->id != '') { - if($taxtype == 'individual')//if individual then show the entered tax percentage - $tax_value = getInventoryProductTaxValue($focus->id, $hdnProductId, $tax_name); - else//if group tax then we have to show the default value when change to individual tax + if($taxtype == 'individual') {//if individual then show the entered tax percentage + $tax_value = ($adb->query_result($result, $i-1, $tax_name)); + $tax_value = ($tax_value) ? $tax_value : 0; + } else {//if group tax then we have to show the default value when change to individual tax $tax_value = $tax_details[$tax_count]['percentage']; + } } else//if the above function not called then assign the default associated value of the product $tax_value = $tax_details[$tax_count]['percentage'];