Skip to content
Snippets Groups Projects
Commit 52b4af29 authored by Prasad's avatar Prasad
Browse files

Merge branch '284' into 'master'

#284 - Inventory entity with 2 (or more) same service / product included, mistake taxes

#284 - Inventory entity with 2 (or more) same service / product included, mistake taxes

Issue: #284

See merge request !92
parents bf8ffa67 b02cbe67
No related branches found
No related tags found
No related merge requests found
......@@ -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'];
......
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