[Vtigercrm-commits] [vtiger-commits] r9321 - in /vtigercrm/trunk/Smarty/templates/Inventory: ProductDetails.tpl ProductDetailsEditView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Sep 6 07:52:10 EDT 2006
Author: saraj
Date: Wed Sep 6 05:52:04 2006
New Revision: 9321
Log:
* Modified to calculate the group taxes when we change the discount
Modified:
vtigercrm/trunk/Smarty/templates/Inventory/ProductDetails.tpl
vtigercrm/trunk/Smarty/templates/Inventory/ProductDetailsEditView.tpl
Modified: vtigercrm/trunk/Smarty/templates/Inventory/ProductDetails.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/ProductDetails.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/ProductDetails.tpl Wed Sep 6 05:52:04 2006
@@ -294,16 +294,16 @@
<td align="right"><img src="{$IMAGE_PATH}close.gif" border="0" onClick="fnHidePopDiv('discount_div_final')" style="cursor:pointer;"></td>
</tr>
<tr>
- <td align="left" class="lineOnTop"><input type="radio" name="discount_final" checked onclick="setDiscount(this,'_final')"> {$APP.LBL_ZERO_DISCOUNT}</td>
+ <td align="left" class="lineOnTop"><input type="radio" name="discount_final" checked onclick="setDiscount(this,'_final'); calcGroupTax();"> {$APP.LBL_ZERO_DISCOUNT}</td>
<td class="lineOnTop"> </td>
</tr>
<tr>
- <td align="left"><input type="radio" name="discount_final" onclick="setDiscount(this,'_final')"> % {$APP.LBL_OF_PRICE}</td>
- <td align="right"><input type="text" class="small" size="2" id="discount_percentage_final" name="discount_percentage_final" value="0" style="visibility:hidden" onBlur="setDiscount(this,'_final')"> %</td>
+ <td align="left"><input type="radio" name="discount_final" onclick="setDiscount(this,'_final'); calcGroupTax();"> % {$APP.LBL_OF_PRICE}</td>
+ <td align="right"><input type="text" class="small" size="2" id="discount_percentage_final" name="discount_percentage_final" value="0" style="visibility:hidden" onBlur="setDiscount(this,'_final'); calcGroupTax();"> %</td>
</tr>
<tr>
- <td align="left" nowrap><input type="radio" name="discount_final" onclick="setDiscount(this,'_final')"> {$APP.LBL_DIRECT_PRICE_REDUCTION}</td>
- <td align="right"><input type="text" id="discount_amount_final" name="discount_amount_final" size="5" value="0" style="visibility:hidden" onBlur="setDiscount(this,'_final')"></td>
+ <td align="left" nowrap><input type="radio" name="discount_final" onclick="setDiscount(this,'_final'); calcGroupTax();"> {$APP.LBL_DIRECT_PRICE_REDUCTION}</td>
+ <td align="right"><input type="text" id="discount_amount_final" name="discount_amount_final" size="5" value="0" style="visibility:hidden" onBlur="setDiscount(this,'_final'); calcGroupTax();"></td>
</tr>
</table>
</div>
Modified: vtigercrm/trunk/Smarty/templates/Inventory/ProductDetailsEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/ProductDetailsEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/ProductDetailsEditView.tpl Wed Sep 6 05:52:04 2006
@@ -345,16 +345,16 @@
<td align="right"><img src="{$IMAGE_PATH}close.gif" border="0" onClick="fnHidePopDiv('discount_div_final')" style="cursor:pointer;"></td>
</tr>
<tr>
- <td align="left" class="lineOnTop"><input type="radio" name="discount_final" checked onclick="setDiscount(this,'_final')"> {$APP.LBL_ZERO_DISCOUNT}</td>
+ <td align="left" class="lineOnTop"><input type="radio" name="discount_final" checked onclick="setDiscount(this,'_final'); calcGroupTax();"> {$APP.LBL_ZERO_DISCOUNT}</td>
<td class="lineOnTop"> </td>
</tr>
<tr>
- <td align="left"><input type="radio" name="discount_final" onclick="setDiscount(this,'_final')" {$FINAL.checked_discount_percentage_final}> % {$APP.LBL_OF_PRICE}</td>
- <td align="right"><input type="text" class="small" size="2" id="discount_percentage_final" name="discount_percentage_final" value="{$FINAL.discount_percentage_final}" {$FINAL.style_discount_percentage_final} onBlur="setDiscount(this,'_final')"> %</td>
+ <td align="left"><input type="radio" name="discount_final" onclick="setDiscount(this,'_final'); calcGroupTax();" {$FINAL.checked_discount_percentage_final}> % {$APP.LBL_OF_PRICE}</td>
+ <td align="right"><input type="text" class="small" size="2" id="discount_percentage_final" name="discount_percentage_final" value="{$FINAL.discount_percentage_final}" {$FINAL.style_discount_percentage_final} onBlur="setDiscount(this,'_final'); calcGroupTax();"> %</td>
</tr>
<tr>
- <td align="left" nowrap><input type="radio" name="discount_final" onclick="setDiscount(this,'_final')" {$FINAL.checked_discount_amount_final}> {$APP.LBL_DIRECT_PRICE_REDUCTION}</td>
- <td align="right"><input type="text" id="discount_amount_final" name="discount_amount_final" size="5" value="{$FINAL.discount_amount_final}" {$FINAL.style_discount_amount_final} onBlur="setDiscount(this,'_final')"></td>
+ <td align="left" nowrap><input type="radio" name="discount_final" onclick="setDiscount(this,'_final'); calcGroupTax();" {$FINAL.checked_discount_amount_final}> {$APP.LBL_DIRECT_PRICE_REDUCTION}</td>
+ <td align="right"><input type="text" id="discount_amount_final" name="discount_amount_final" size="5" value="{$FINAL.discount_amount_final}" {$FINAL.style_discount_amount_final} onBlur="setDiscount(this,'_final'); calcGroupTax();"></td>
</tr>
</table>
</div>
More information about the vtigercrm-commits
mailing list