Skip to content
Snippets Groups Projects
Commit b02cbe67 authored by Satish's avatar Satish
Browse files

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

parent 45ca8bdd
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