25 lines
2.3 KiB
Smarty
25 lines
2.3 KiB
Smarty
{*<!--
|
|
/*+***********************************************************************************
|
|
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
|
|
* ("License"); You may not use this file except in compliance with the License
|
|
* The Original Code is: vtiger CRM Open Source
|
|
* The Initial Developer of the Original Code is vtiger.
|
|
* Portions created by vtiger are Copyright (C) vtiger.
|
|
* All Rights Reserved.
|
|
************************************************************************************/
|
|
-->*}
|
|
|
|
<div class ="col-lg-12" style="margin-top:20px;">
|
|
{assign var=CALCULATION_INFO value="{ucfirst(vtranslate('LBL_IN', $MODULE))} <strong>{getCurrencyName($USER_MODEL->get('currency_id'), false)}</strong><br /><br /> <table class = 'table table-bordered'><thead><th width='40%'>{vtranslate('LBL_PRODUCT_NAME', $MODULE)} </th><th width='35%'>{vtranslate('LBL_PRICE_QUANTITY', $MODULE)}</th><th width = 25%>{vtranslate('LBL_TOTAL', $MODULE)}</th></thead>{foreach item=SUB_PRODUCT_COST_INFO key=SUB_PRODUCT_ID from=$SUB_PRODUCTS_COSTS_INFO}<tr><td>{$SUB_PRODUCT_COST_INFO.productName}</td><td>{$SUB_PRODUCT_COST_INFO.actualPrice} X {$SUB_PRODUCT_COST_INFO.quantityInBundle}</td> <td align='right'> {$SUB_PRODUCT_COST_INFO.priceInUserFormat}</td></tr>{/foreach}<tr></table><br /><div class = 'pull-right' style = 'padding-right:5px'><strong>{vtranslate('LBL_BUNDLE_TOTAL_COST', $MODULE)} : {$SUB_PRODUCTS_TOTAL_COST}</strong></div>"}
|
|
<label>{vtranslate('LBL_BUNDLE_TOTAL_COST', $MODULE)} : <a class ="totalCostCalculationInfo" role="button" data-trigger="focus" title = "{vtranslate('LBL_BUNDLE_TOTAL_COST', $MODULE)}" tabindex="0" data-toggle="popover" data-content="{$CALCULATION_INFO}"><span class="subProductsTotalCost">{$SUB_PRODUCTS_TOTAL_COST}</span></a>
|
|
</label>
|
|
{assign var=PRODUCT_ACTUAL_PRICE value="{CurrencyField::convertToUserFormat((float)$PARENT_RECORD->get('unit_price'), '', true, true)}"}
|
|
|
|
<button type="button" id ="updatePrice" class="btn btn-sm btn-dark btn-default"
|
|
{if $SUB_PRODUCTS_TOTAL_COST eq $PRODUCT_ACTUAL_PRICE && $USER_MODEL->get('currency_id') eq $PARENT_RECORD->get('currency_id')}
|
|
disabled
|
|
{/if}>
|
|
<i class="fa fa-refresh"><strong> {vtranslate('LBL_UPDATE_BUNDLE_PRICE', $MODULE)}</strong></i>
|
|
</button>
|
|
</div>
|