diff --git a/include/utils/EditViewUtils.php b/include/utils/EditViewUtils.php
index 8317f75db1ed5bb79679b2d20ebd123ff268eaf4..3637b37c11f7d432533114fbaa8e61b62c85a5a2 100755
--- a/include/utils/EditViewUtils.php
+++ b/include/utils/EditViewUtils.php
@@ -312,8 +312,9 @@ function getAssociatedProducts($module,$focus,$seid='')
 		}
 		$product_Detail[$i]['netPrice'.$i] = $netPrice;
 
+		$taxMode = ($focus->id) ? 'available_associated' : 'all';
 		//First we will get all associated taxes as array
-		$tax_details = getTaxDetailsForProduct($hdnProductId,'all');
+		$tax_details = getTaxDetailsForProduct($hdnProductId, $taxMode);
 		//Now retrieve the tax values from the current query with the name
 		for($tax_count=0;$tax_count<count($tax_details);$tax_count++)
 		{
diff --git a/modules/Inventory/models/Record.php b/modules/Inventory/models/Record.php
index 4a911f428c8839e97811c9f081468e8fe538a801..f3cb379c3578c84cc8eb5567a3374a3b271b4332 100644
--- a/modules/Inventory/models/Record.php
+++ b/modules/Inventory/models/Record.php
@@ -62,6 +62,7 @@ class Inventory_Record_Model extends Vtiger_Record_Model {
 
 		//Updating Tax details
 		$taxtype = $relatedProducts[1]['final_details']['taxtype'];
+		$taxMode = ($this->getId()) ? 'available_associated' : 'all';
 
 		$subTotal = 0;
 		for ($i=1;$i<=$productsCount; $i++) {
@@ -70,7 +71,7 @@ class Inventory_Record_Model extends Vtiger_Record_Model {
 			$totalAfterDiscount = $product['totalAfterDiscount'.$i];
 
 			if ($taxtype == 'individual') {
-				$taxDetails = getTaxDetailsForProduct($productId, 'all');
+				$taxDetails = getTaxDetailsForProduct($productId, $taxMode);
 				$taxCount = count($taxDetails);
 				$taxTotal = '0';